3 load File.expand_path("../vym-ruby.rb", __FILE__)
7 mail_in = Tempfile.new("mail")
9 mail_in.write(ARGF.read)
11 out = Tempfile.new("temp")
13 mail = Mail.read(mail_in.path)
15 out << "Subject: #{mail.subject}\n"
16 out << "From: #{mail.header[:From]}\n"
17 out << "To: #{mail.header[:To]}\n"
18 out << "Cc: #{mail.header[:Cc]}\n"
19 out << "Date: #{mail.date.to_s}\n"
25 vym_mgr = VymManager.new
26 vym = vym_mgr.find('production')
30 vym.setHeading(mail.subject)
31 vym.loadNote(out.path)