-message = Message.new(:sender => from, :recipient => to,
- :sent_on => Time.now.getutc,
- :title => mail["Subject"],
- :body => mail.body.map { |l| l.rstrip }.join("\n"))
+mail = Mail.new(STDIN.readlines.join)
+
+message = Message.from_mail(mail, from, to)