changeset 9:b62e23f84a36

to top comment
author KAMURA Sota <c109047@e.koeki-u.ac.jp>
date Fri, 10 Feb 2012 15:27:26 +0900
parents 2ebeaae57e96
children 83a2c410b901
files xsotter_mail.rb
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xsotter_mail.rb	Tue Feb 07 23:26:41 2012 +0900
+++ b/xsotter_mail.rb	Fri Feb 10 15:27:26 2012 +0900
@@ -22,8 +22,9 @@
   end
 end
 
-post = subject + body
-post = $& if /.{140}/me=~post
+body = body.split(/^-+$/e)
+post = body[0] + subject + body[0]
+
 com=["-T", NKF.nkf('-e',post)]
 #com=["-T", "test"]
 xsotter=Xsotter.new("/home/irhome/c109/c109047/xsotter/c109047_token")

yatex.org