Added example email.

This commit is contained in:
Martin Edenhofer 2013-06-18 11:40:09 +02:00
parent ba5b006aea
commit 51fda64a58
2 changed files with 44 additions and 0 deletions

3
doc/test_mails/README.md Normal file
View file

@ -0,0 +1,3 @@
You can create emails this way:
shell $> cat doc/test_mails/test1.eml | rails r 'Channel::MailStdin.new'

41
doc/test_mails/test1.eml Normal file
View file

@ -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: <martin@samba.edenhofer.de>
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 <smith@g.example.com>;
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 <smith@example.com>; Tue, 18 Jun 2013 07:31:18 +0100 (BST)
From: Mr. Smith <smith@example.com>
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 <smith@example.com>
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 - <skywalker@zammad.org>
--
Old programmers never die. They just branch to a new address.=