spec/bin/malm_test_message in malm-0.0.4 vs spec/bin/malm_test_message in malm-0.0.5
- old
+ new
@@ -1,17 +1,214 @@
#!/usr/bin/env ruby
require 'net/smtp'
-message = <<-END_OF_MESSAGE
-From: francis <francis@example.com>
-To: bill <bill@example.com>
-Subject: zombies
-Date: Thu, 14 Jul 2011 15:16:43 +1000
-Message-Id: <unique.message.id.string@example.com>
+message1 = <<-END_OF_MESSAGE
+Delivered-To: julian.doherty.ml@gmail.com
+Received: by 10.205.65.11 with SMTP id xk11cs235015bkb;
+ Fri, 8 Jul 2011 04:13:29 -0700 (PDT)
+Received: by 10.236.180.38 with SMTP id i26mr2405055yhm.205.1310123608196;
+ Fri, 08 Jul 2011 04:13:28 -0700 (PDT)
+Return-Path: <qybsao@galeriestills.nl>
+Received: from kiver.site5.com (kiver.site5.com [174.132.150.130])
+ by mx.google.com with ESMTPS id g63si36654835yhn.48.2011.07.08.04.13.26
+ (version=TLSv1/SSLv3 cipher=OTHER);
+ Fri, 08 Jul 2011 04:13:26 -0700 (PDT)
+Received-SPF: neutral (google.com: 174.132.150.130 is neither permitted nor denied by best guess record for domain of qybsao@galeriestills.nl) client-ip=174.132.150.130;
+Authentication-Results: mx.google.com; spf=neutral (google.com: 174.132.150.130 is neither permitted nor denied by best guess record for domain of qybsao@galeriestills.nl) smtp.mail=qybsao@galeriestills.nl
+Received: from akf90.internetdsl.tpnet.pl ([83.17.9.90] helo=galeriestills.nl)
+ by kiver.site5.com with esmtp (Exim 4.69)
+ (envelope-from <qybsao@galeriestills.nl>)
+ id 1Qf8zt-0007aO-I9
+ for madlep@ubercharged.net; Fri, 08 Jul 2011 06:13:26 -0500
+Message-ID: <2ac901cc3d5f$2983c8b0$3b29bc19@galeriestills.nl>
+From: "Precision Crafted and Low Priced Watches" <qybsao@galeriestills.nl>
+To: <madlep@ubercharged.net>
+Subject: Casual Watches at Low Prices
+Date: Fri, 8 Jul 2011 13:11:17 +0200
+MIME-Version: 1.0
+Content-Type: multipart/alternative;
+ boundary="----=_NextPart_000_0023_28_01CC3D6E.A8D734EC"
+X-Priority: 3
+X-MSMail-Priority: Normal
+X-Mailer: Microsoft Outlook Express 6.00.2900.2180
+X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
+X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
+X-AntiAbuse: Primary Hostname - kiver.site5.com
+X-AntiAbuse: Original Domain - ubercharged.net
+X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
+X-AntiAbuse: Sender Address Domain - galeriestills.nl
+X-Source:
+X-Source-Args:
+X-Source-Dir:
-You know what I don't hate? I don't hate vests.
+This is a multi-part message in MIME format.
+
+------=_NextPart_000_0023_28_01CC3D6E.A8D734EC
+Content-Type: text/plain;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+ Reward Yourself with a New Toy Order Now
+
+------=_NextPart_000_0023_28_01CC3D6E.A8D734EC
+Content-Type: text/html;
+ charset="iso-8859-1"
+Content-Transfer-Encoding: quoted-printable
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML><HEAD>
+<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859=
+-1">
+<META content=3D"MSHTML 6.00.6000.16788" name=3DGENERATOR>
+<STYLE></STYLE>
+</HEAD>
+<BODY bgColor=3D#ffffff>
+<div style=3D"font-family: Tahoma;color: rgb(255, 3, 3);font-size: large=
+r;"><strong>Reward Yourself with a New Toy</strong></div>
+<div> </div>
+<div style=3D"font-family: Tahoma;font-size: larger;"><strong><a href=3D=
+"http://poundtax.ru/">Order Now</a></strong><span style=3D"font-family: =
+Tahoma;"> </span></div>
+</BODY></HTML>
+
+------=_NextPart_000_0023_28_01CC3D6E.A8D734EC--
END_OF_MESSAGE
+message2 = <<-END_OF_MESSAGE
+Received: from mail01.is.devint.lpo (10.61.45.25) by lpozpwexc02.lpint.net
+ (10.61.38.9) with Microsoft SMTP Server id 8.2.176.0; Fri, 15 Jul 2011
+ 09:18:52 +1000
+Received: from app01.groups.devint.lpo (app01.groups.devint.lpo [10.61.42.91])
+ by mail01.is.devint.lpo (Postfix) with ESMTP id 1795E249EC for
+ <madlep0715@devint.lpo>; Thu, 14 Jul 2011 23:18:53 +0000 (UTC)
+Received: from localhost (localhost.localdomain [127.0.0.1]) by
+ app01.groups.devint.lpo (Postfix) with ESMTP id 9F77C2E73F for
+ <madlep0715@devint.lpo>; Thu, 14 Jul 2011 23:18:52 +0000 (UTC)
+From: Registration <registration@lonelyplanet.com.au>
+To: "madlep0715@devint.lpo" <madlep0715@devint.lpo>
+Content-Class: urn:content-classes:message
+Date: Fri, 15 Jul 2011 09:18:49 +1000
+Subject: Welcome to Lonely Planet
+Thread-Topic: Welcome to Lonely Planet
+Thread-Index: AcxCfGU39s1C5HHOQ/2O1Ro4yrIL6g==
+Message-ID: <4e1f79598aac0_508010ee224@app01.groups.devint.lpo.tmail>
+X-MS-Exchange-Organization-AuthAs: Anonymous
+X-MS-Exchange-Organization-AuthSource: lpozpwexc02.lpint.net
+X-MS-Has-Attach:
+X-MS-TNEF-Correlator:
+Content-Type: multipart/alternative;
+ boundary="_000_4e1f79598aac0508010ee224app01groupsdevintlpotmail_"
+MIME-Version: 1.0
+
+--_000_4e1f79598aac0508010ee224app01groupsdevintlpotmail_
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: base64
+
+W2h0dHA6Ly9zdGF0aWMuZGV2aW50Lmxwby9zdGF0aWMtdWkvaW1hZ2VzL2xwLWxvZ28tZW1haWwu
+Z2lmXTxodHRwOi8vd3d3LmRldmludC5scG8+DQoNCkRlYXIgbWFkbGVwMDcxNSwNCg0KV2VsY29t
+ZSEgWW91J3JlIG5lYXJseSB0aGVyZS4NCg0KV2UgcmVjb21tZW5kIHJlYWRpbmcgb3VyIENvbW11
+bml0eSBHdWlkZWxpbmVzPGh0dHA6Ly93d3cubG9uZWx5cGxhbmV0LmNvbS9jb21tdW5pdHktZ3Vp
+ZGVs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lIGludGVuZGVkIHJlY2lwaWVudCBvZiB0aGlzIGVtYWlsLCB5b3UgbXVz
+dCBub3QgY29tbXVuaWNhdGUgdG8gb3RoZXJzIGNvbnRlbnQgdGhhdCBpcyBjb25maWRlbnRpYWwg
+b3Igc3ViamVjdCB0byBjb3B5cmlnaHQsIHVubGVzcyB5b3UgaGF2ZSB0aGUgY29uc2VudCBvZiB0
+aGUgY29udGVudCBvd25lci4NCg0K
+
+--_000_4e1f79598aac0508010ee224app01groupsdevintlpotmail_
+Content-Type: text/html; charset="utf-8"
+Content-Transfer-Encoding: base64
+
+PGh0bWw+DQogICAgPGhlYWQ+DQogICAgPHRpdGxlPkxvbmVseSBQbGFuZXQ6IEFjdGl2YXRlIHlv
+dXIgYWNjb3VudDwvdGl0bGU+DQogICAgPC9oZWFkPg0KDQogICAgPGJvZHk+DQogICAgICAgIDx0
+YWJsZSBib3JkZXI9IjAiIGNlbGxwYWRkaW5nPSIwIiBjZWxsc3BhY2luZz0iMCIgd2lkdGg9IjYw
+MyI+DQogICAgICAgICAgICA8dHI+DQogICAgICAgICAgICAgICAgPHRkIGJnY29sb3I9IiMwYTRm
+OWMiIHN0eWxlPSJiYWNrZ3JvdW5kOiAjMGE0ZjljOyBwYWRkaW5nOjE1cHggMjBweCI+PGEgaHJl
+Zj0iaHR0cDovL3d3dy5kZXZpbnQubHBvIj48aW1nIHNyYz0iaHR0cDovL3N0YXRpYy5kZXZpbnQu
+bHBvL3N0YXRpYy11aS9pbWFnZXMvbHAtbG9nby1lbWFpbC5naWYiIGFsdD0iTG9uZWx5IFBsYW5l
+dCBQdWJsaWNhdGlvbnMiIGJvcmRlcj0iMCI+PC9hPjwvdGQ+DQogICAgICAgICAgICA8L3RyPg0K
+ICAgICAgICAgICAgPHRyPg0KICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT0idmVydGljYWwtYWxp
+Z246IHRvcDsgYmFja2dyb3VuZDogI2ZmZjsgZm9udC1mYW1pbHk6IFZlcmRhbmEsIEF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aXMgZW1haWwgaW4gZXJyb3IsIHBsZWFzZSBhZHZpc2UgdGhlIHNlbmRlciBhbmQgZGVsZXRl
+IGl0LiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50IG9mIHRoaXMgZW1haWws
+IHlvdSBtdXN0IG5vdCBjb21tdW5pY2F0ZSB0byBvdGhlcnMgY29udGVudCB0aGF0IGlzIGNvbmZp
+ZGVudGlhbCBvciBzdWJqZWN0IHRvIGNvcHlyaWdodCwgdW5sZXNzIHlvdSBoYXZlIHRoZSBjb25z
+ZW50IG9mIHRoZSBjb250ZW50IG93bmVyLjwvcD4NCiAgICAgICAgICAgICAgICA8L3RkPg0KICAg
+ICAgICAgICAgPC90cj4NCiAgICAgICAgPC90YWJsZT4NCiAgICA8L2JvZHk+DQo8L2h0bWw+DQo=
+
+--_000_4e1f79598aac0508010ee224app01groupsdevintlpotmail_--
+END_OF_MESSAGE
+
Net::SMTP.start('localhost', 2525) do |smtp|
- smtp.send_message(message,'francis@example.com','bill@example.com')
+ smtp.send_message(message1,"francis@example.com","bill@example.com")
+end
+
+Net::SMTP.start('localhost', 2525) do |smtp|
+ smtp.send_message(message2,"registration@lonelyplanet.com.au","madlep0715@devint.lpo")
end
\ No newline at end of file