Mercurial > hgrepos > hgweb.cgi > xsotter
diff xsotter_mail.rb @ 12:42e9379d8c1d default tip
gem ver up to 1.8.20 twitter ver up 2.1.1
author | KAMURA Sota <c109047@e.koeki-u.ac.jp> |
---|---|
date | Thu, 22 Mar 2012 14:06:08 +0900 |
parents | 4dcbbfa7f191 |
children |
line wrap: on
line diff
--- a/xsotter_mail.rb Sat Feb 11 12:48:07 2012 +0900 +++ b/xsotter_mail.rb Thu Mar 22 14:06:08 2012 +0900 @@ -22,12 +22,14 @@ end end + 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"]