diff --git a/test/fixtures/mail62.box b/test/fixtures/mail62.box new file mode 100644 index 000000000..a17469a78 --- /dev/null +++ b/test/fixtures/mail62.box @@ -0,0 +1,239 @@ +From smith@example.com Tue Oct 23 14:55:00 2012 +Return-Path: +X-Original-To: info@example.com +Delivered-To: example-sales@samba.edenhofer.de +X-Greylist: delayed 1679 seconds by postgrey-1.32 at samba; Tue, 23 Oct 2012 14:54:59 BST +Received: from mailout109.bayern.de (mailout109.bayern.de [195.200.70.109]) + by samba.edenhofer.de (Postfix) with ESMTP id F2FCD500B14 + for ; Tue, 23 Oct 2012 14:54:59 +0100 (BST) +Received: from avisout130.bybn.de (avisout130.bybn.de [10.197.20.130]) + by mailout109.bayern.de (8.14.5/8.14.5) with ESMTP id q9NDR29S013763 + for ; Tue, 23 Oct 2012 15:27:02 +0200 +Received: from post23.bybn.de (post23.bybn.de [10.197.20.23]) + by avisout130.bybn.de (8.14.4/8.14.4) with ESMTP id q9NDR1NJ003273 + for ; Tue, 23 Oct 2012 15:27:02 +0200 + (envelope-from smith@example.com) +Received: from lramail1.Landratsamt.de ([10.38.19.31]) + by post23.bybn.de (8.14.5/8.14.4) with ESMTP id q9NDR1CF018327 + for ; Tue, 23 Oct 2012 15:27:01 +0200 +Content-class: urn:content-classes:message +MIME-Version: 1.0 +Content-Type: multipart/related; + boundary="----_=_NextPart_001_01CDB122.15B956D2"; + type="multipart/alternative" +X-MimeOLE: Produced By Microsoft Exchange V6.5 +Subject: =?iso-8859-1?Q?Gru=DF_aus_Oberalteich?= +Date: Tue, 23 Oct 2012 15:27:00 +0200 +Message-ID: <8FD7A79CBC14344E85C71183DF75D85A019B1699@lramail1.Landratsamt.de> +X-MS-Has-Attach: +X-MS-TNEF-Correlator: +Thread-Topic: =?iso-8859-1?Q?Gru=DF_aus_Oberalteich?= +Thread-Index: Ac2xIg1UWZ9khKyyT0yHHVxGjysbXQ== +From: "Smith Sepp" +To: +X-Keywords: +X-UID: 108 +Status: RO +Content-Length: 6878 +Lines: 176 + +This is a multi-part message in MIME format. + +------_=_NextPart_001_01CDB122.15B956D2 +Content-Type: multipart/alternative; + boundary="----_=_NextPart_002_01CDB122.15B956D2" + + +------_=_NextPart_002_01CDB122.15B956D2 +Content-Type: text/plain; + charset="iso-8859-1" +Content-Transfer-Encoding: quoted-printable + +Herzliche Gr=FC=DFe aus Oberalteich sendet Herrn Smith + +=20 + +Sepp Smith - Dipl.Ing. agr. (FH) + +Gesch=E4ftsf=FChrer der example Straubing-Bogen + +Klosterhof 1 | 94327 Bogen-Oberalteich + +Tel: 09422-505601 | Fax: 09422-505620 + +Internet: http://example-straubing-bogen.de = + + +Facebook: http://facebook.de/examplesrbog =20 + + - European Foundation f=FCr Quality Management + +=20 + + +------_=_NextPart_002_01CDB122.15B956D2 +Content-Type: text/html; + charset="iso-8859-1" +Content-Transfer-Encoding: quoted-printable + +

Herzliche = +Gr=FC=DFe aus Oberalteich sendet Herrn Smith

 

Sepp Smith=A0 - Dipl.Ing. agr. (FH)

Gesch=E4ftsf=FChrer der example = +Straubing-Bogen

Klosterhof 1 | 94327 = +Bogen-Oberalteich

Tel: 09422-505601 | Fax: = +09422-505620

Internet: http://example-straubing-bogen.de<= +/span>

Facebook: http://facebook.de/examplesrbog

3D"Beschreibung:3D"Beschreibung:=A0 -=A0 = +European Foundation f=FCr Quality Management

 

+------_=_NextPart_002_01CDB122.15B956D2-- + +------_=_NextPart_001_01CDB122.15B956D2 +Content-Type: image/jpeg; +Content-Transfer-Encoding: base64 +Content-ID: + +/9j/4AAQSkZJRgABAQEAYABgAAD//gAcU29mdHdhcmU6IE1pY3Jvc29mdCBPZmZpY2X/2wBDAAoH +BwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8 +SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7 +Ozs7Ozs7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ThbAQVx4ik+1peDk/IHA4riluWPScOfLpP+qb6dcLXtF+5kJM9IK0Vphxa +lrsUFSlElRLIySfNZDR+m0x1xk2SEGXFBa0BoYUR4J/uaKKWbm8wpaMMNRWEMMNpbabTtQhIwEge +AKi3GJHmMbJDSXAO4zwaKKqygFDcsxkhgRIKdM2OWhpUq2R31MHc2p1G4pP5PHxUyRYrVMmNTpFv +juyY4HpOqQCpGO4xRRXcJOwSZOWNyeQFJKVDIPYg81UI0dppsEIscIAnJwyKKKsBI6QJ/9= + +------_=_NextPart_001_01CDB122.15B956D2-- diff --git a/test/fixtures/mail63.box b/test/fixtures/mail63.box new file mode 100644 index 000000000..686e8681d --- /dev/null +++ b/test/fixtures/mail63.box @@ -0,0 +1,81 @@ +Return-Path: <> +X-Original-To: me@example.com +Delivered-To: martin@arber.example.com +Received-SPF: None (no SPF record) identity=helo; client-ip=127.0.0.1; helo=mx1.example.com; envelope-from=<>; receiver=me@example.com +Received: from mx1.example.com (mx1.example.com [127.0.0.1]) + by arber.example.com (Postfix) with ESMTPS id 617915FEB6 + for ; Mon, 6 Nov 2017 03:24:31 +0100 (CET) +Received: by mx1.example.com (Postfix) + id E95FC20496FF; Mon, 6 Nov 2017 03:24:30 +0100 (CET) +Date: Mon, 6 Nov 2017 03:24:30 +0100 (CET) +From: MAILER-DAEMON@mx1.example.com (Mail Delivery System) +Subject: Undelivered Mail Returned to Sender +To: me@example.com +Auto-Submitted: auto-replied +MIME-Version: 1.0 +Content-Type: multipart/report; report-type=delivery-status; + boundary="D8A14202512E.1509935070/mx1.example.com" +Message-Id: <20171106022430.E95FC20496FF@mx1.example.com> + +This is a MIME-encapsulated message. + +--D8A14202512E.1509935070/mx1.example.com +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + +This is the mail system at host mx1.example.com. + +I'm sorry to have to inform you that your message could not +be delivered to one or more recipients. It's attached below. + +For further assistance, please send mail to postmaster. + +If you do so, please include this problem report. You can +delete your own text from the attached returned message. + + The mail system + +: user unknown + +--D8A14202512E.1509935070/mx1.example.com +Content-Description: Delivery report +Content-Type: message/delivery-status + +Reporting-MTA: dns; mx1.example.com +X-Postfix-Queue-ID: D8A14202512E +X-Postfix-Sender: rfc822; me@example.com +Arrival-Date: Mon, 6 Nov 2017 03:24:29 +0100 (CET) + +Final-Recipient: rfc822; notextisting@example.com +Original-Recipient: rfc822;notextisting@example.com +Action: failed +Status: 5.1.1 +Diagnostic-Code: x-unix; user unknown + +--D8A14202512E.1509935070/mx1.example.com +Content-Description: Undelivered Message +Content-Type: message/rfc822 + +Return-Path: +Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=127.0.0.1; helo=arber.example.com; envelope-from=me@example.com; receiver= +Received: from arber.example.com (arber.example.com [127.0.0.1]) + (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by mx1.example.com (Postfix) with ESMTPS id D8A14202512E + for ; Mon, 6 Nov 2017 03:24:29 +0100 (CET) +Received: from [10.8.0.6] (kanzel.example.com [5.9.62.170]) + by arber.example.com (Postfix) with ESMTPSA id 498D75FEB6 + for ; Mon, 6 Nov 2017 03:24:27 +0100 (CET) +From: Martin Edenhofer +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable +Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) +Subject: =?utf-8?B?aGVsbG8gMTIzIMOkw7bDvMOf?= +Message-Id: +Date: Mon, 6 Nov 2017 03:24:25 +0100 +To: notextisting@example.com +X-Mailer: Apple Mail (2.3273) + +hello 123 =C3=A4=C3=B6=C3=BC=C3=9F= + +--D8A14202512E.1509935070/mx1.example.com--