-message = Message.new(:sender => from, :recipient => to,
- :sent_on => Time.now.getutc,
- :title => mail.subject.sub(/\[OpenStreetMap\] */, ""),
- :body => mail.body)
+mail = Mail.new(STDIN.readlines.join)
+
+message = Message.from_mail(mail, from, to)