Mercurial > hgrepos > hgweb.cgi > xsotter
comparison xsotter_mail.rb @ 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 |
comparison
equal
deleted
inserted
replaced
8:2ebeaae57e96 | 9:b62e23f84a36 |
---|---|
20 else | 20 else |
21 subject = line.split(/:/)[1] if /Subject/ =~ line | 21 subject = line.split(/:/)[1] if /Subject/ =~ line |
22 end | 22 end |
23 end | 23 end |
24 | 24 |
25 post = subject + body | 25 body = body.split(/^-+$/e) |
26 post = $& if /.{140}/me=~post | 26 post = body[0] + subject + body[0] |
27 | |
27 com=["-T", NKF.nkf('-e',post)] | 28 com=["-T", NKF.nkf('-e',post)] |
28 #com=["-T", "test"] | 29 #com=["-T", "test"] |
29 xsotter=Xsotter.new("/home/irhome/c109/c109047/xsotter/c109047_token") | 30 xsotter=Xsotter.new("/home/irhome/c109/c109047/xsotter/c109047_token") |
30 xsotter.comand(com) | 31 xsotter.comand(com) |