Mercurial > hgrepos > hgweb.cgi > xsotter
changeset 10:83a2c410b901
debug
author | KAMURA Sota <c109047@e.koeki-u.ac.jp> |
---|---|
date | Fri, 10 Feb 2012 15:43:37 +0900 |
parents | b62e23f84a36 |
children | 4dcbbfa7f191 |
files | xsotter_mail.rb |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/xsotter_mail.rb Fri Feb 10 15:27:26 2012 +0900 +++ b/xsotter_mail.rb Fri Feb 10 15:43:37 2012 +0900 @@ -1,5 +1,4 @@ #!/home/irhome/c109/c109047/sun4v/ruby/bin/ruby -# #! /usr/bin/env ruby # -*- coding: euc-jp -*- require '/home/irhome/c109/c109047/xsotter/xsotter_class' @@ -22,9 +21,13 @@ end end -body = body.split(/^-+$/e) -post = body[0] + subject + body[0] - +if body.split(/^-+$/e).size >= 2 + body = body.split(/^-+$/e) + post = body[1] + subject + body[0] +else + post = subject + body +end +post = $& if /.{140}/me=~post com=["-T", NKF.nkf('-e',post)] #com=["-T", "test"] xsotter=Xsotter.new("/home/irhome/c109/c109047/xsotter/c109047_token")