# HG changeset patch # User KAMURA Sota # Date 1328856217 -32400 # Node ID 83a2c410b90157e9f4ebb0af2fc6877b8e581c42 # Parent b62e23f84a36cc8ca964d33d9f6d70fd682c232b debug diff -r b62e23f84a36 -r 83a2c410b901 xsotter_mail.rb --- 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")