comparison xsotter_mail.rb @ 0:b79b888eceac

init
author KAMURA Sota <c109047@e.koeki-u.ac.jp>
date Mon, 06 Feb 2012 17:25:58 +0900
parents
children f1a06832e7de
comparison
equal deleted inserted replaced
-1:000000000000 0:b79b888eceac
1 #! /usr/bin/env ruby
2 # -*- coding: euc-jp -*-
3
4 require '/home/irhome/c109/c109047/xsotter/xsotter_class'
5
6 sender = ENV['SENDER']
7 rcpt = ENV['RECIPIENT']
8 body = ""#Array.new
9 if sender == nil || rcpt === nil
10 exit 0
11 elsif/.*@.*/ !~ sender
12 exit 0
13 end
14 while line = gets
15 f=1 if /^$/=~line
16 if f ==1
17 body += line
18 end
19 end
20 STDERR.puts NKF.nkf('-e', body)
21 body=["-T", body]
22 Xsotter.new(body)

yatex.org