From 51fda64a581fdbf73db8b16f2f634b1e80ae19c7 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 18 Jun 2013 11:40:09 +0200 Subject: [PATCH] Added example email. --- doc/test_mails/README.md | 3 +++ doc/test_mails/test1.eml | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 doc/test_mails/README.md create mode 100644 doc/test_mails/test1.eml diff --git a/doc/test_mails/README.md b/doc/test_mails/README.md new file mode 100644 index 000000000..0d450bdce --- /dev/null +++ b/doc/test_mails/README.md @@ -0,0 +1,3 @@ +You can create emails this way: + +shell $> cat doc/test_mails/test1.eml | rails r 'Channel::MailStdin.new' diff --git a/doc/test_mails/test1.eml b/doc/test_mails/test1.eml new file mode 100644 index 000000000..3315a968d --- /dev/null +++ b/doc/test_mails/test1.eml @@ -0,0 +1,41 @@ +Delivered-To: smith@g.example.com +Received: by 10.223.83.206 with SMTP id g14csp143902fal; + Mon, 17 Jun 2013 23:31:17 -0700 (PDT) +X-Received: by 10.14.99.71 with SMTP id w47mr20952493eef.140.1371537077146; + Mon, 17 Jun 2013 23:31:17 -0700 (PDT) +Return-Path: +Received: from samba.edenhofer.de (samba.edenhofer.de. [78.46.73.150]) + by mx.google.com with ESMTP id i46si14748829eev.264.2013.06.17.23.31.16 + for ; + Mon, 17 Jun 2013 23:31:17 -0700 (PDT) +Received-SPF: pass (google.com: best guess record for domain of martin@samba.edenhofer.de designates 78.46.73.150 as permitted sender) client-ip=78.46.73.150; +Authentication-Results: mx.google.com; + spf=pass (google.com: best guess record for domain of martin@samba.edenhofer.de designates 78.46.73.150 as permitted sender) smtp.mail=martin@samba.edenhofer.de +Received: by samba.edenhofer.de (Postfix, from userid 501) + id B087F500D37; Tue, 18 Jun 2013 07:31:18 +0100 (BST) +X-Original-To: smith@example.com +Delivered-To: martin@samba.edenhofer.de +Received: from [10.0.0.231] (1-22-29-113.adsl.example.com [1.22.29.113]) + by samba.edenhofer.de (Postfix) with ESMTPSA id 23B5C500D31 + for ; Tue, 18 Jun 2013 07:31:18 +0100 (BST) +From: Mr. Smith +Content-Type: text/plain; charset=iso-8859-1 +Content-Transfer-Encoding: quoted-printable +Subject: =?iso-8859-1?Q?Some_Test_=C4=D6=DC=DF?= +Message-Id: <7C456BD5-3964-4DE1-A0D5-B4C7DE3297FD@znuny.com> +Date: Tue, 18 Jun 2013 08:31:17 +0200 +To: Mr. Smith +Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) +X-Mailer: Apple Mail (2.1508) + +Greetings to all which love to code! ;) + +Some Test =C4=D6=DC=DF + + Little "Skywalker" + +-- +Mr. Smith - +-- +Old programmers never die. They just branch to a new address.= +