comparison xsotter_mail.rb @ 5:f1a06832e7de

change xsotter*
author KAMURA Sota <c109047@e.koeki-u.ac.jp>
date Tue, 07 Feb 2012 17:40:51 +0900
parents b79b888eceac
children 6c763cb4ea40
comparison
equal deleted inserted replaced
4:213b92c211e0 5:f1a06832e7de
1 #! /usr/bin/env ruby 1 #! /usr/bin/env ruby
2 # -*- coding: euc-jp -*- 2 # -*- coding: euc-jp -*-
3 3
4 require '/home/irhome/c109/c109047/xsotter/xsotter_class' 4 require '/home/irhome/c109/c109047/xsotter/xsotter_class'
5 5 =begin
6 sender = ENV['SENDER'] 6 sender = ENV['SENDER']
7 rcpt = ENV['RECIPIENT'] 7 rcpt = ENV['RECIPIENT']
8 body = ""#Array.new 8 body = ""#Array.new
9 if sender == nil || rcpt === nil 9 if sender == nil || rcpt === nil
10 exit 0 10 exit 0
16 if f ==1 16 if f ==1
17 body += line 17 body += line
18 end 18 end
19 end 19 end
20 STDERR.puts NKF.nkf('-e', body) 20 STDERR.puts NKF.nkf('-e', body)
21 body=["-T", body] 21 com=["-T", body]
22 Xsotter.new(body) 22 =end
23 com=["-T", "post test"]
24 xsotter=Xsotter.new("~/xsotter/c109047_token")
25 xsotter.comand(com)

yatex.org