1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

Move swaks-tests into etc for #79

This commit is contained in:
James Hillyerd
2018-04-07 17:22:44 -07:00
parent e8f57fb4ed
commit 7e71b4a42c
11 changed files with 0 additions and 0 deletions

30
etc/swaks-tests/README.md Normal file
View File

@@ -0,0 +1,30 @@
swaks-tests
===========
[Swaks](http://www.jetmore.org/john/code/swaks/) - Swiss Army Knife for SMTP
Swaks gives us an easy way to generate mail to send into Inbucket. You will need to
install Swaks before you can use the provided scripts.
## Usage
To deliver a batch of test email to the `swaks` mailbox, assuming Inbucket SMTP is listening
on localhost:2500:
./run-tests.sh
To deliver a batch of test email to the `james` mailbox:
./run-tests.sh james
You may also pass swaks options to deliver to a alternate host/port:
./run-tests --server inbucket.mydomain.com:25
To specify the mailbox with an alternate server, use `--to` with a local and host part:
./run-tests --server inbucket.mydomain.com:25 --to james@mydomain.com
## To Do
Replace Swaks with a native Go solution.

BIN
etc/swaks-tests/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

213
etc/swaks-tests/gmail.raw Normal file
View File

@@ -0,0 +1,213 @@
MIME-Version: 1.0
Date: %DATE%
Message-ID: <CANqLHXqq1i6cOTcEHa7W9hT21ZueMJTM4QaP5DH0YXScqYCEuw@mail.gmail.com>
Subject: Test from Gmail
From: %FROM_ADDRESS%
X-ASG-Orig-Subj: Test from Gmail
To: %TO_ADDRESS%
Content-Type: multipart/mixed; boundary=001a113d2d045cd646051e1383c2
X-Barracuda-Spam-Score: 0.50
X-Barracuda-Spam-Status: No, SCORE=0.50 using global scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests=BSF_SC5_SA210e, HTML_MESSAGE, WEIRD_PORT
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.21886
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
0.50 WEIRD_PORT URI: Uses non-standard port number for HTTP
0.00 HTML_MESSAGE BODY: HTML included in message
0.00 BSF_SC5_SA210e Custom Rule SA210e
--001a113d2d045cd646051e1383c2
Content-Type: multipart/alternative; boundary=001a113d2d045cd63c051e1383c0
--001a113d2d045cd63c051e1383c0
Content-Type: text/plain; charset=UTF-8
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer at ex
urna. Nunc sollicitudin venenatis dolor, eget convallis libero convallis
eu. Nulla luctus ligula in magna condimentum, placerat lacinia nulla
varius. Curabitur quis placerat enim, et aliquam ligula. In dignissim
lectus vel pharetra posuere. Proin imperdiet augue orci, at dapibus urna
sagittis vel. In nec arcu placerat, vehicula est vel, sollicitudin erat.
Nunc tempor risus lorem, sed bibendum tellus pretium non. Sed vel tortor
ante. Donec convallis erat ac mauris mollis feugiat. Donec pharetra ex ac
tempus aliquam. Praesent ut purus tristique, pharetra arcu vulputate,
eleifend felis.
Aenean ut porttitor risus, a porta nunc. Donec ligula diam, sagittis at
luctus id, luctus sit amet risus. Sed turpis nisl, fermentum vitae nibh
non, imperdiet luctus arcu. Fusce vulputate velit porta, rutrum velit nec,
semper eros. Suspendisse in dui non nulla lacinia tincidunt. Vivamus sit
amet lectus eu velit condimentum gravida. Curabitur vestibulum felis nisl,
a sagittis odio faucibus a. Nulla fermentum, ligula in gravida hendrerit,
diam dui tempor dolor, id euismod tortor velit at massa. Phasellus et nunc
mi. Integer tristique viverra odio vitae auctor. Lorem ipsum dolor sit
amet, consectetur adipiscing elit. Nunc rutrum turpis ornare lorem ornare
lacinia. Aenean vehicula ante nunc, at dignissim dolor porta eu. In hac
habitasse platea dictumst. In hac habitasse platea dictumst. Cras ac ex
molestie, pulvinar nisi a, finibus est.
Integer a eros ut tortor convallis porta ultrices id justo. Maecenas luctus
purus id molestie molestie. Vestibulum rutrum consequat porta. Fusce
vulputate lacus sed nisl venenatis rhoncus. Aliquam erat volutpat.
Suspendisse viverra eros id erat congue, nec convallis arcu volutpat. Etiam
non sem nisi.
Integer at velit sed mauris luctus sagittis. Suspendisse aliquam diam non
enim viverra, suscipit fermentum massa accumsan. Cras eget ex justo. Aenean
non scelerisque elit. Duis et nulla quis est dignissim bibendum. Quisque
mattis dui vitae convallis pellentesque. Mauris arcu dui, aliquet non
ligula et, posuere tincidunt felis.
In id tortor sollicitudin, convallis elit ut, auctor libero. Nunc ut lorem
a quam tempor lobortis. Praesent nec dolor ut erat fermentum malesuada. Cum
sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Nulla facilisi. Vestibulum eget ornare justo. Donec iaculis
purus eget massa mattis bibendum. Quisque commodo efficitur magna, ac
tempor ipsum ultrices eu. Suspendisse id felis molestie, consequat neque
in, vehicula velit. In a dictum dui, non tempor elit. Phasellus luctus nec
eros viverra consequat. Aliquam efficitur metus consectetur, rhoncus sem
vitae, facilisis arcu. Nullam eget nunc in urna mollis laoreet a at eros.
--001a113d2d045cd63c051e1383c0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Lorem ipsum dolor sit amet, consectetur adipiscing el=
it. Integer at ex urna. Nunc sollicitudin venenatis dolor, eget convallis l=
ibero convallis eu. Nulla luctus ligula in magna condimentum, placerat laci=
nia nulla varius. Curabitur quis placerat enim, et aliquam ligula. In digni=
ssim lectus vel pharetra posuere. Proin imperdiet augue orci, at dapibus ur=
na sagittis vel. In nec arcu placerat, vehicula est vel, sollicitudin erat.=
Nunc tempor risus lorem, sed bibendum tellus pretium non. Sed vel tortor a=
nte. Donec convallis erat ac mauris mollis feugiat. Donec pharetra ex ac te=
mpus aliquam. Praesent ut purus tristique, pharetra arcu vulputate, eleifen=
d felis.</div><div><br></div><div>Aenean ut porttitor risus, a porta nunc. =
Donec ligula diam, sagittis at luctus id, luctus sit amet risus. Sed turpis=
nisl, fermentum vitae nibh non, imperdiet luctus arcu. Fusce vulputate vel=
it porta, rutrum velit nec, semper eros. Suspendisse in dui non nulla lacin=
ia tincidunt. Vivamus sit amet lectus eu velit condimentum gravida. Curabit=
ur vestibulum felis nisl, a sagittis odio faucibus a. Nulla fermentum, ligu=
la in gravida hendrerit, diam dui tempor dolor, id euismod tortor velit at =
massa. Phasellus et nunc mi. Integer tristique viverra odio vitae auctor. L=
orem ipsum dolor sit amet, consectetur adipiscing elit. Nunc rutrum turpis =
ornare lorem ornare lacinia. Aenean vehicula ante nunc, at dignissim dolor =
porta eu. In hac habitasse platea dictumst. In hac habitasse platea dictums=
t. Cras ac ex molestie, pulvinar nisi a, finibus est.</div><div><br></div><=
div>Integer a eros ut tortor convallis porta ultrices id justo. Maecenas lu=
ctus purus id molestie molestie. Vestibulum rutrum consequat porta. Fusce v=
ulputate lacus sed nisl venenatis rhoncus. Aliquam erat volutpat. Suspendis=
se viverra eros id erat congue, nec convallis arcu volutpat. Etiam non sem =
nisi.</div><div><br></div><div>Integer at velit sed mauris luctus sagittis.=
Suspendisse aliquam diam non enim viverra, suscipit fermentum massa accums=
an. Cras eget ex justo. Aenean non scelerisque elit. Duis et nulla quis est=
dignissim bibendum. Quisque mattis dui vitae convallis pellentesque. Mauri=
s arcu dui, aliquet non ligula et, posuere tincidunt felis.</div><div><br><=
/div><div>In id tortor sollicitudin, convallis elit ut, auctor libero. Nunc=
ut lorem a quam tempor lobortis. Praesent nec dolor ut erat fermentum male=
suada. Cum sociis natoque penatibus et magnis dis parturient montes, nascet=
ur ridiculus mus. Nulla facilisi. Vestibulum eget ornare justo. Donec iacul=
is purus eget massa mattis bibendum. Quisque commodo efficitur magna, ac te=
mpor ipsum ultrices eu. Suspendisse id felis molestie, consequat neque in, =
vehicula velit. In a dictum dui, non tempor elit. Phasellus luctus nec eros=
viverra consequat. Aliquam efficitur metus consectetur, rhoncus sem vitae,=
facilisis arcu. Nullam eget nunc in urna mollis laoreet a at eros.</div>
</div>
--001a113d2d045cd63c051e1383c0--
--001a113d2d045cd646051e1383c2
Content-Type: text/plain; charset=US-ASCII; name="README.txt"
Content-Disposition: attachment; filename="README.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: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idWNrZXQvaXNzdWVzP3N0YXRlPW9wZW4KW0Zyb20gU291cmNl
XTogaHR0cDovL3d3dy5pbmJ1Y2tldC5vcmcvaW5zdGFsbGF0aW9uL2Zyb20tc291cmNlLmh0bWwK
W0dvbGFuZ106IGh0dHA6Ly9nb2xhbmcub3JnLwo=
--001a113d2d045cd646051e1383c2
Content-Type: image/png; name="favicon.png"
Content-Disposition: attachment; filename="favicon.png"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_idqb60e30
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAC4jAAAuIwF4pT92AAAK
T2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AU
kSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXX
Pues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgAB
eNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAt
AGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3
AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dX
Lh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+
5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk
5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd
0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v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wlkXYpLu3UCTvKy9ag2BmV68xSku7baz+R2vwHQC+QKj9KkHDLAAAAABJRU5E
rkJggg==
--001a113d2d045cd646051e1383c2--

View File

@@ -0,0 +1,25 @@
Date: %DATE%
To: %TO_ADDRESS%
From: %FROM_ADDRESS%
Subject: Swaks HTML
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_MIME_BOUNDARY_000_62717"
------=_MIME_BOUNDARY_000_62717
Content-Type: text/plain
This is a test mailing.
This should be clickable: http://google.com/
------=_MIME_BOUNDARY_000_62717
Content-Type: text/html
Content-Transfer-Encoding: BASE64
PGh0bWw+Cjxib2R5Pgo8cD5UaGlzIGlzIGEgdGVzdCBtYWlsaW5nIDxiPmluIEhUTUw8L2I+PC9w
PgoKPHA+VGhpcyBzaG91bGQgYmUgY2xpY2thYmxlOiA8YSBocmVmPSJodHRwOi8vZ29vZ2xlLmNv
bS8iPmdvb2dsZS5jb208L2E+PC9wPgo8L2JvZHk+CjwvaHRtbD4K
------=_MIME_BOUNDARY_000_62717--

View File

@@ -0,0 +1,393 @@
Date: %DATE%
To: %TO_ADDRESS%
From: %FROM_ADDRESS%
Subject: tutsplus responsive inlined CSS
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<!--[if (gte mso 9)|(IE)]>
<style type="text/css">
table {border-collapse: collapse !important;}
</style>
<![endif]-->
</head>
<body style="margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;background-color:#ffffff;" >
<center class="wrapper" style="width:100%;table-layout:fixed;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;" >
<div class="webkit" style="max-width:600px;margin-top:0;margin-bottom:0;margin-right:auto;margin-left:auto;" >
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<table class="outer" align="center" style="border-spacing:0;font-family:sans-serif;color:#333333;Margin:0 auto;width:100%;max-width:600px;" >
<tr>
<td class="full-width-image" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<img src="http://www.inbucket.org/email-assets/responsive/header.jpg" width="600" alt="" style="border-width:0;width:100%;max-width:600px;height:auto;" />
</td>
</tr>
<tr>
<td class="one-column" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;text-align:left;" >
<p class="h1" style="Margin:0;font-weight:bold;font-size:14px;Margin-bottom:10px;" >Lorem ipsum dolor sit amet</p>
<p style="Margin:0;font-size:14px;Margin-bottom:10px;" >
Compare to:
<a href="http://tutsplus.github.io/creating-a-future-proof-responsive-email-without-media-queries/index.html" style="color:#ee6a56;text-decoration:underline;" >
tutsplus sample</a>
</p>
<p style="Margin:0;font-size:14px;Margin-bottom:10px;" >Copyright (c) 2015, Envato Tuts+<br/>
All rights reserved.</p>
<p style="Margin:0;font-size:14px;Margin-bottom:10px;" >Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:</p>
<ul>
<li>Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.</li>
</ul>
<p style="Margin:0;font-size:14px;Margin-bottom:10px;" >THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="two-column" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;text-align:center;font-size:0;" >
<!--[if (gte mso 9)|(IE)]>
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td width="50%" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:300px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;" >
<table class="contents" style="border-spacing:0;font-family:sans-serif;color:#333333;width:100%;font-size:14px;text-align:left;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<img src="http://www.inbucket.org/email-assets/responsive/two-column-01.jpg" width="280" alt="" style="border-width:0;width:100%;max-width:280px;height:auto;" />
</td>
</tr>
<tr>
<td class="text" style="padding-bottom:0;padding-right:0;padding-left:0;padding-top:10px;" >
Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="50%" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:300px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;" >
<table class="contents" style="border-spacing:0;font-family:sans-serif;color:#333333;width:100%;font-size:14px;text-align:left;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<img src="http://www.inbucket.org/email-assets/responsive/two-column-02.jpg" width="280" alt="" style="border-width:0;width:100%;max-width:280px;height:auto;" />
</td>
</tr>
<tr>
<td class="text" style="padding-bottom:0;padding-right:0;padding-left:0;padding-top:10px;" >
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Maecenas sed ante pellentesque, posuere leo id, eleifend dolor.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="three-column" style="padding-right:0;padding-left:0;text-align:center;font-size:0;padding-top:10px;padding-bottom:10px;" >
<!--[if (gte mso 9)|(IE)]>
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;" >
<table class="contents" style="border-spacing:0;font-family:sans-serif;color:#333333;width:100%;font-size:14px;text-align:center;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<img src="http://www.inbucket.org/email-assets/responsive/three-column-01.jpg" width="180" alt="" style="border-width:0;width:100%;max-width:180px;height:auto;" />
</td>
</tr>
<tr>
<td class="text" style="padding-bottom:0;padding-right:0;padding-left:0;padding-top:10px;" >
Scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut erat.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;" >
<table class="contents" style="border-spacing:0;font-family:sans-serif;color:#333333;width:100%;font-size:14px;text-align:center;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<img src="http://www.inbucket.org/email-assets/responsive/three-column-02.jpg" width="180" alt="" style="border-width:0;width:100%;max-width:180px;height:auto;" />
</td>
</tr>
<tr>
<td class="text" style="padding-bottom:0;padding-right:0;padding-left:0;padding-top:10px;" >
Maecenas sed ante pellentesque, posuere leo id, eleifend dolor.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;" >
<table class="contents" style="border-spacing:0;font-family:sans-serif;color:#333333;width:100%;font-size:14px;text-align:center;" >
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<img src="http://www.inbucket.org/email-assets/responsive/three-column-03.jpg" width="180" alt="" style="border-width:0;width:100%;max-width:180px;height:auto;" />
</td>
</tr>
<tr>
<td class="text" style="padding-bottom:0;padding-right:0;padding-left:0;padding-top:10px;" >
Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="three-column" style="padding-right:0;padding-left:0;text-align:center;font-size:0;padding-top:10px;padding-bottom:10px;" >
<!--[if (gte mso 9)|(IE)]>
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
<p class="h2" style="Margin:0;font-size:18px;font-weight:bold;Margin-bottom:12px;" >Fashion</p>
<p style="Margin:0;" >Class eleifend aptent taciti sociosqu ad litora torquent conubia</p>
<p style="Margin:0;" ><a href="#" style="color:#ee6a56;text-decoration:underline;" >Read requirements</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
<p class="h2" style="Margin:0;font-size:18px;font-weight:bold;Margin-bottom:12px;" >Photography</p>
<p style="Margin:0;" >Maecenas sed ante pellentesque, posuere leo id, eleifend dolor</p>
<p style="Margin:0;" ><a href="#" style="color:#ee6a56;text-decoration:underline;" >See examples</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
<p class="h2" style="Margin:0;font-size:18px;font-weight:bold;Margin-bottom:12px;" >Design</p>
<p style="Margin:0;" >Class aptent taciti sociosqu eleifend ad litora per conubia nostra</p>
<p style="Margin:0;" ><a href="#" style="color:#ee6a56;text-decoration:underline;" >See the winners</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
<tr>
<td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
<p class="h2" style="Margin:0;font-size:18px;font-weight:bold;Margin-bottom:12px;" >Cooking</p>
<p style="Margin:0;" >Class aptent taciti eleifend sociosqu ad litora torquent conubia</p>
<p style="Margin:0;" ><a href="#" style="color:#ee6a56;text-decoration:underline;" >Read recipes</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
<p class="h2" style="Margin:0;font-size:18px;font-weight:bold;Margin-bottom:12px;" >Woodworking</p>
<p style="Margin:0;" >Maecenas sed ante pellentesque, posuere leo id, eleifend dolor</p>
<p style="Margin:0;" ><a href="#" style="color:#ee6a56;text-decoration:underline;" >See examples</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column" style="width:100%;max-width:200px;display:inline-block;vertical-align:top;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
<p class="h2" style="Margin:0;font-size:18px;font-weight:bold;Margin-bottom:12px;" >Craft</p>
<p style="Margin:0;" >Class aptent taciti sociosqu ad eleifend litora per conubia nostra</p>
<p style="Margin:0;" ><a href="#" style="color:#ee6a56;text-decoration:underline;" >Vote now</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="left-sidebar" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;text-align:center;font-size:0;" >
<!--[if (gte mso 9)|(IE)]>
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td width="100" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column left" style="width:100%;display:inline-block;vertical-align:middle;max-width:100px;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;" >
<img src="http://www.inbucket.org/email-assets/responsive/sidebar-01.jpg" width="80" alt="" style="border-width:0;" />
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="500" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column right" style="width:100%;display:inline-block;vertical-align:middle;max-width:500px;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut erat. <a href="#" style="text-decoration:underline;color:#85ab70;" >Read&nbsp;on</a>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="right-sidebar" dir="rtl" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;text-align:center;font-size:0;" >
<!--[if (gte mso 9)|(IE)]>
<table width="100%" dir="rtl" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td width="100" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column left" dir="ltr" style="width:100%;display:inline-block;vertical-align:middle;max-width:100px;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
<img src="http://www.inbucket.org/email-assets/responsive/sidebar-02.jpg" width="80" alt="" style="border-width:0;" />
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="500" style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" >
<![endif]-->
<div class="column right" dir="ltr" style="width:100%;display:inline-block;vertical-align:middle;max-width:500px;" >
<table width="100%" style="border-spacing:0;font-family:sans-serif;color:#333333;" >
<tr>
<td class="inner contents" style="padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:10px;width:100%;font-size:14px;text-align:center;" >
Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra. <a href="#" style="text-decoration:underline;color:#70bbd9;" >Per&nbsp;inceptos</a>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
</center>
</body>
</html>

View File

@@ -0,0 +1,394 @@
Date: %DATE%
To: %TO_ADDRESS%
From: %FROM_ADDRESS%
Subject: tutsplus responsive external CSS
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<link rel="stylesheet" type="text/css" href="http://www.inbucket.org/email-assets/responsive/styles.css" />
<!--[if (gte mso 9)|(IE)]>
<style type="text/css">
table {border-collapse: collapse;}
</style>
<![endif]-->
</head>
<body>
<center class="wrapper">
<div class="webkit">
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center">
<tr>
<td>
<![endif]-->
<table class="outer" align="center">
<tr>
<td class="full-width-image">
<img src="http://www.inbucket.org/email-assets/responsive/header.jpg" width="600" alt="" />
</td>
</tr>
<tr>
<td class="one-column">
<table width="100%">
<tr>
<td class="inner contents">
<p class="h1">Lorem ipsum dolor sit amet</p>
<p>
Compare to:
<a href="http://tutsplus.github.io/creating-a-future-proof-responsive-email-without-media-queries/index.html">
tutsplus sample</a>
</p>
<p>Copyright (c) 2015, Envato Tuts+<br/>
All rights reserved.</p>
<p>Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:</p>
<ul>
<li>Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.</li>
</ul>
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="two-column">
<!--[if (gte mso 9)|(IE)]>
<table width="100%">
<tr>
<td width="50%" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner">
<table class="contents">
<tr>
<td>
<img src="http://www.inbucket.org/email-assets/responsive/two-column-01.jpg" width="280" alt="" />
</td>
</tr>
<tr>
<td class="text">
Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="50%" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner">
<table class="contents">
<tr>
<td>
<img src="http://www.inbucket.org/email-assets/responsive/two-column-02.jpg" width="280" alt="" />
</td>
</tr>
<tr>
<td class="text">
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Maecenas sed ante pellentesque, posuere leo id, eleifend dolor.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="three-column">
<!--[if (gte mso 9)|(IE)]>
<table width="100%">
<tr>
<td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner">
<table class="contents">
<tr>
<td>
<img src="http://www.inbucket.org/email-assets/responsive/three-column-01.jpg" width="180" alt="" />
</td>
</tr>
<tr>
<td class="text">
Scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut erat.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner">
<table class="contents">
<tr>
<td>
<img src="http://www.inbucket.org/email-assets/responsive/three-column-02.jpg" width="180" alt="" />
</td>
</tr>
<tr>
<td class="text">
Maecenas sed ante pellentesque, posuere leo id, eleifend dolor.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner">
<table class="contents">
<tr>
<td>
<img src="http://www.inbucket.org/email-assets/responsive/three-column-03.jpg" width="180" alt="" />
</td>
</tr>
<tr>
<td class="text">
Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="three-column">
<!--[if (gte mso 9)|(IE)]>
<table width="100%">
<tr>
<td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner contents">
<p class="h2">Fashion</p>
<p>Class eleifend aptent taciti sociosqu ad litora torquent conubia</p>
<p><a href="#">Read requirements</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner contents">
<p class="h2">Photography</p>
<p>Maecenas sed ante pellentesque, posuere leo id, eleifend dolor</p>
<p><a href="#">See examples</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner contents">
<p class="h2">Design</p>
<p>Class aptent taciti sociosqu eleifend ad litora per conubia nostra</p>
<p><a href="#">See the winners</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
<tr>
<td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner contents">
<p class="h2">Cooking</p>
<p>Class aptent taciti eleifend sociosqu ad litora torquent conubia</p>
<p><a href="#">Read recipes</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner contents">
<p class="h2">Woodworking</p>
<p>Maecenas sed ante pellentesque, posuere leo id, eleifend dolor</p>
<p><a href="#">See examples</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="200" valign="top">
<![endif]-->
<div class="column">
<table width="100%">
<tr>
<td class="inner contents">
<p class="h2">Craft</p>
<p>Class aptent taciti sociosqu ad eleifend litora per conubia nostra</p>
<p><a href="#">Vote now</a></p>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="left-sidebar">
<!--[if (gte mso 9)|(IE)]>
<table width="100%">
<tr>
<td width="100">
<![endif]-->
<div class="column left">
<table width="100%">
<tr>
<td class="inner">
<img src="http://www.inbucket.org/email-assets/responsive/sidebar-01.jpg" width="80" alt="" />
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="500">
<![endif]-->
<div class="column right">
<table width="100%">
<tr>
<td class="inner contents">
Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut erat. <a href="#">Read&nbsp;on</a>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
<tr>
<td class="right-sidebar" dir="rtl">
<!--[if (gte mso 9)|(IE)]>
<table width="100%" dir="rtl">
<tr>
<td width="100">
<![endif]-->
<div class="column left" dir="ltr">
<table width="100%">
<tr>
<td class="inner contents">
<img src="http://www.inbucket.org/email-assets/responsive/sidebar-02.jpg" width="80" alt="" />
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="500">
<![endif]-->
<div class="column right" dir="ltr">
<table width="100%">
<tr>
<td class="inner contents">
Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra. <a href="#">Per&nbsp;inceptos</a>
</td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
</center>
</body>
</html>

View File

@@ -0,0 +1,10 @@
Date: %DATE%
To: %TO_ADDRESS%
From: %FROM_ADDRESS%
Subject: Swaks HTML
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
<p style="font-family: 'Courier New', Courier, monospace;">
This is a test of <b>HTML</b> at the <i>top</i> level.
</p>

322
etc/swaks-tests/outlook.raw Normal file
View File

@@ -0,0 +1,322 @@
From: %FROM_ADDRESS%
To: %TO_ADDRESS%
Subject: Test from Outlook
Thread-Topic: Test from Outlook
Thread-Index: AdDeqI993CvUm800TamFq90sKu975w==
Date: %DATE%
Message-ID: <8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADD@exch.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [10.13.30.10]
Content-Type: multipart/mixed;
boundary="_005_8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADDonerdexch09on_"
MIME-Version: 1.0
--_005_8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADDonerdexch09on_
Content-Type: multipart/alternative;
boundary="_000_8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADDonerdexch09on_"
--_000_8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADDonerdexch09on_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque liber=
o arcu, accumsan at mattis nec, condimentum vitae erat. Praesent massa turp=
is, iaculis elementum lectus vitae, iaculis laoreet massa. Integer porta, n=
isi eget congue vulputate, tellus lacus imperdiet tellus, in tristique metu=
s nibh sed est. Vestibulum ullamcorper arcu sed lacus viverra tristique. Ve=
stibulum mattis id ante eget aliquam. Nam pulvinar, libero dignissim posuer=
e tincidunt, ipsum est finibus enim, id accumsan augue lectus eu massa. In =
dapibus consequat velit quis interdum. Cras vel augue pellentesque tortor i=
nterdum molestie. Fusce ut dui semper, ultricies nulla a, tempor lacus. In =
interdum velit in justo dapibus iaculis. Quisque et neque turpis. Aenean id=
nunc sodales, ultrices turpis non, molestie nibh.
In euismod aliquam tortor ac ornare. Donec nisi ante, lacinia eget placerat=
at, tincidunt id ante. Vestibulum mauris nisi, consectetur vitae dolor qui=
s, maximus auctor tellus. In dignissim mi blandit, laoreet mi vitae, gravid=
a risus. Sed rhoncus nisi velit, at condimentum velit efficitur id. Duis ia=
culis dictum tempor. Ut consectetur nisi in ex viverra interdum. Cras eget =
vestibulum libero. Vestibulum in efficitur ante, id tristique elit. Aliquam=
justo dolor, sagittis et dui vitae, gravida pellentesque lectus. Sed venen=
atis imperdiet cursus. Nulla quis nulla eu nisi tempor varius et ut elit. I=
nterdum et malesuada fames ac ante ipsum primis in faucibus. Mauris placera=
t interdum eros, vitae molestie urna consequat et.
Cras massa dolor, congue eu magna et, sagittis eleifend quam. Donec volutpa=
t congue leo, in sodales purus mollis nec. Integer vehicula, odio eget cong=
ue interdum, erat nunc interdum nisi, quis congue nunc felis eu ipsum. Sed =
bibendum massa dui, et sodales lacus dignissim ut. Nulla et orci vitae lacu=
s dignissim elementum eu sollicitudin turpis. Phasellus leo lorem, pellente=
sque sit amet ultricies varius, bibendum sed ligula. Nam eros orci, facilis=
is vel lacus vitae, suscipit tincidunt nibh. In id magna a velit molestie a=
uctor. Etiam a nunc ligula. Sed hendrerit, felis quis pharetra bibendum, to=
rtor sem tempor lacus, et hendrerit quam nisl ac metus. Ut convallis congue=
lectus, eu scelerisque nisl pharetra sed. Vestibulum ante ipsum primis in =
faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam ut turpis n=
isi. Phasellus ac dolor laoreet, commodo turpis quis, ultricies turpis. Qui=
sque mollis lorem vestibulum diam sollicitudin, in tempor mi accumsan. Proi=
n metus nunc, fringilla eu sagittis nec, rhoncus semper sem.
Fusce posuere et felis ut ornare. Proin sodales sollicitudin tellus, non tr=
istique ex egestas at. Pellentesque arcu sem, vulputate a diam eget, blandi=
t lobortis libero. Donec accumsan, diam vel congue hendrerit, mi mi vestibu=
lum ex, ut elementum est magna eu augue. Aliquam consequat arcu eu velit tr=
istique placerat. Quisque facilisis tempor ipsum, sit amet iaculis nunc mal=
esuada a. Morbi laoreet fringilla odio sed volutpat. Integer scelerisque in=
terdum massa et fringilla. Nam pulvinar iaculis nibh, id condimentum nunc. =
Integer eleifend, dui in iaculis sollicitudin, lacus dui feugiat felis, ut =
efficitur urna sem at neque. Donec at sapien malesuada orci imperdiet eleme=
ntum. Nulla luctus tristique enim, eu euismod diam ultricies vel. Ut dui pu=
rus, commodo eu tristique nec, accumsan vel lorem. Phasellus sagittis ullam=
corper vulputate. Vestibulum sed nulla tristique, tristique lectus quis, pu=
lvinar quam.
Duis sollicitudin convallis lacinia. Maecenas erat eros, laoreet ut sapien =
vitae, convallis semper neque. Ut est turpis, pharetra sed tortor id, luctu=
s pretium odio. Mauris laoreet dapibus iaculis. Pellentesque augue tortor, =
lacinia eget mauris eu, hendrerit ultricies turpis. Vestibulum suscipit nis=
i ligula, at tempus augue vulputate ac. Vestibulum leo mauris, tristique se=
d cursus a, sodales a erat. Sed accumsan justo at dui ornare, at placerat a=
ugue vestibulum.
--_000_8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADDonerdexch09on_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Lorem ipsum dolor sit amet, consectetur adipiscing e=
lit. Pellentesque libero arcu, accumsan at mattis nec, condimentum vitae er=
at. Praesent massa turpis, iaculis elementum lectus vitae, iaculis laoreet =
massa. Integer porta, nisi eget congue
vulputate, tellus lacus imperdiet tellus, in tristique metus nibh sed est.=
Vestibulum ullamcorper arcu sed lacus viverra tristique. Vestibulum mattis=
id ante eget aliquam. Nam pulvinar, libero dignissim posuere tincidunt, ip=
sum est finibus enim, id accumsan
augue lectus eu massa. In dapibus consequat velit quis interdum. Cras vel =
augue pellentesque tortor interdum molestie. Fusce ut dui semper, ultricies=
nulla a, tempor lacus. In interdum velit in justo dapibus iaculis. Quisque=
et neque turpis. Aenean id nunc
sodales, ultrices turpis non, molestie nibh.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">In euismod aliquam tortor ac ornare. Donec nisi ante=
, lacinia eget placerat at, tincidunt id ante. Vestibulum mauris nisi, cons=
ectetur vitae dolor quis, maximus auctor tellus. In dignissim mi blandit, l=
aoreet mi vitae, gravida risus. Sed
rhoncus nisi velit, at condimentum velit efficitur id. Duis iaculis dictum=
tempor. Ut consectetur nisi in ex viverra interdum. Cras eget vestibulum l=
ibero. Vestibulum in efficitur ante, id tristique elit. Aliquam justo dolor=
, sagittis et dui vitae, gravida
pellentesque lectus. Sed venenatis imperdiet cursus. Nulla quis nulla eu n=
isi tempor varius et ut elit. Interdum et malesuada fames ac ante ipsum pri=
mis in faucibus. Mauris placerat interdum eros, vitae molestie urna consequ=
at et.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Cras massa dolor, congue eu magna et, sagittis eleif=
end quam. Donec volutpat congue leo, in sodales purus mollis nec. Integer v=
ehicula, odio eget congue interdum, erat nunc interdum nisi, quis congue nu=
nc felis eu ipsum. Sed bibendum massa
dui, et sodales lacus dignissim ut. Nulla et orci vitae lacus dignissim el=
ementum eu sollicitudin turpis. Phasellus leo lorem, pellentesque sit amet =
ultricies varius, bibendum sed ligula. Nam eros orci, facilisis vel lacus v=
itae, suscipit tincidunt nibh. In
id magna a velit molestie auctor. Etiam a nunc ligula. Sed hendrerit, feli=
s quis pharetra bibendum, tortor sem tempor lacus, et hendrerit quam nisl a=
c metus. Ut convallis congue lectus, eu scelerisque nisl pharetra sed. Vest=
ibulum ante ipsum primis in faucibus
orci luctus et ultrices posuere cubilia Curae; Aliquam ut turpis nisi. Pha=
sellus ac dolor laoreet, commodo turpis quis, ultricies turpis. Quisque mol=
lis lorem vestibulum diam sollicitudin, in tempor mi accumsan. Proin metus =
nunc, fringilla eu sagittis nec,
rhoncus semper sem.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Fusce posuere et felis ut ornare. Proin sodales soll=
icitudin tellus, non tristique ex egestas at. Pellentesque arcu sem, vulput=
ate a diam eget, blandit lobortis libero. Donec accumsan, diam vel congue h=
endrerit, mi mi vestibulum ex, ut
elementum est magna eu augue. Aliquam consequat arcu eu velit tristique pl=
acerat. Quisque facilisis tempor ipsum, sit amet iaculis nunc malesuada a. =
Morbi laoreet fringilla odio sed volutpat. Integer scelerisque interdum mas=
sa et fringilla. Nam pulvinar iaculis
nibh, id condimentum nunc. Integer eleifend, dui in iaculis sollicitudin, =
lacus dui feugiat felis, ut efficitur urna sem at neque. Donec at sapien ma=
lesuada orci imperdiet elementum. Nulla luctus tristique enim, eu euismod d=
iam ultricies vel. Ut dui purus,
commodo eu tristique nec, accumsan vel lorem. Phasellus sagittis ullamcorp=
er vulputate. Vestibulum sed nulla tristique, tristique lectus quis, pulvin=
ar quam.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Duis sollicitudin convallis lacinia. Maecenas erat e=
ros, laoreet ut sapien vitae, convallis semper neque. Ut est turpis, pharet=
ra sed tortor id, luctus pretium odio. Mauris laoreet dapibus iaculis. Pell=
entesque augue tortor, lacinia eget
mauris eu, hendrerit ultricies turpis. Vestibulum suscipit nisi ligula, at=
tempus augue vulputate ac. Vestibulum leo mauris, tristique sed cursus a, =
sodales a erat. Sed accumsan justo at dui ornare, at placerat augue vestibu=
lum.<o:p></o:p></p>
</div>
</body>
</html>
--_000_8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADDonerdexch09on_--
--_005_8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADDonerdexch09on_
Content-Type: image/png; name="favicon.png"
Content-Description: favicon.png
Content-Disposition: attachment; filename="favicon.png"; size=3025;
creation-date="Mon, 24 Aug 2015 19:05:03 GMT";
modification-date="Mon, 24 Aug 2015 19:05:03 GMT"
Content-Transfer-Encoding: base64
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAC4jAAAuIwF4pT92AAAK
T2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AU
kSYqIQkQSoghod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uarrlca7nuer21
e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfV
P1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i
/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8
IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADq
YAAAOpgAABdvkl/FRgAAAPxJREFUeNqkU0ERgzAQ3DA1EAuxgAUsYAELsYCFWKASqASQUCRQCdfP
HuxkYProzRxJLsmyd3sJZoZ/7AEAIYQ63gLo6G4vAE8AmwfMjJ/TIoAJgNFn+iKxfAcQeXDnoVix
SgKerwAKN1v6LCwGGSf+JCpAEuTIA355F/o9wQ3AoACZwSRzz3UQgOTpA8gKMAF4c9Pr4NYJgNfq
AGgkuImEayWpywimcaybm/5IAjxwvnKdeXk9tQRGoehSLUxLe8JjsZaxq1RwCUcB3yl1vGskl6z9
0f69M6oBklAu1TtwlkXYpLu3UCTvKy9ag2BmV68xSku7baz+R2vwHQC+QKj9KkHDLAAAAABJRU5E
rkJggg==
--_005_8D08CB465951804FA4DBB0C8B35CB0FA013B4E7ADDonerdexch09on_
Content-Type: text/plain; name="README.txt"
Content-Description: README.txt
Content-Disposition: attachment; filename="README.txt"; size=1682;
creation-date="Mon, 24 Aug 2015 19:19:48 GMT";
modification-date="Mon, 24 Aug 2015 19:19:48 GMT"
Content-Transfer-Encoding: base64
SW5idWNrZXQgWyFbQnVpbGQgU3RhdHVzXShodHRwczovL3RyYXZpcy1jaS5vcmcvamhpbGx5ZXJk
L2luYnVja2V0LnBuZz9icmFuY2g9bWFzdGVyKV0oaHR0cHM6Ly90cmF2aXMtY2kub3JnL2poaWxs
eWVyZC9pbmJ1Y2tldCkKPT09PT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0C8B35CB0FA013B4E7ADDonerdexch09on_--

58
etc/swaks-tests/run-tests.sh Executable file
View File

@@ -0,0 +1,58 @@
#!/bin/bash
# run-tests.sh
# description: Generate test emails for Inbucket
set -eo pipefail
[ $TRACE ] && set -x
# We need to be in swaks-tests directory
cmdpath="$(dirname "$0")"
if [ "$cmdpath" != "." ]; then
cd "$cmdpath"
fi
case "$1" in
"")
to="swaks"
;;
--*)
to="swaks"
;;
*)
to="$1"
shift
;;
esac
export SWAKS_OPT_server="127.0.0.1:2500"
export SWAKS_OPT_to="$to@inbucket.local"
# Basic test
swaks $* --h-Subject: "Swaks Plain Text" --body text.txt
# Multi-recipient test
swaks $* --to="$to@inbucket.local,alternate@inbucket.local" --h-Subject: "Swaks Multi-Recipient" \
--body text.txt
# HTML test
swaks $* --h-Subject: "Swaks HTML" --data mime-html.raw
# Top level HTML test
swaks $* --h-Subject: "Swaks Top Level HTML" --data nonmime-html.raw
# Attachment test
swaks $* --h-Subject: "Swaks Attachment" --attach-type image/png --attach favicon.png \
--body text.txt
# Encoded subject line test
swaks $* --data utf8-subject.raw
# Gmail test
swaks $* --data gmail.raw
# Outlook test
swaks $* --data outlook.raw
# Non-mime responsive HTML test
swaks $* --data nonmime-html-responsive.raw
swaks $* --data nonmime-html-inlined.raw

3
etc/swaks-tests/text.txt Normal file
View File

@@ -0,0 +1,3 @@
This is a test mailing.
This should be clickable: http://google.com/

View File

@@ -0,0 +1,53 @@
Date: %DATE%
To: %TO_ADDRESS%
From: %FROM_ADDRESS%
Subject: =?utf-8?B?VGVzdCBvZiDIh8myyqLIr8ihyarJtMqb?=
Thread-Topic: =?utf-8?B?VGVzdCBvZiDIh8myyqLIr8ihyarJtMqb?=
Thread-Index: Ac6+4nH7mOymA+1JRQyk2LQPe1bEcw==
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Content-Type: multipart/alternative;
boundary="_000_8D08CB465951804FA4DBB0C8B35CB0FAC1DF557EONERDEXCH03onen_"
MIME-Version: 1.0
--_000_8D08CB465951804FA4DBB0C8B35CB0FAC1DF557EONERDEXCH03onen_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
VGVzdGluZyBzdWJqZWN0IGxpbmUgZW5jb2RpbmcNCg0K
--_000_8D08CB465951804FA4DBB0C8B35CB0FAC1DF557EONERDEXCH03onen_
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64
PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0i
dGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4NCjxtZXRhIG5hbWU9IkdlbmVyYXRvciIgY29udGVu
dD0iTWljcm9zb2Z0IFdvcmQgMTQgKGZpbHRlcmVkIG1lZGl1bSkiPg0KPHN0eWxlPjwhLS0NCi8q
IEZvbnQgRGVmaW5pdGlvbnMgKi8NCkBmb250LWZhY2UNCgl7Zm9udC1mYW1pbHk6Q2FsaWJyaTsN
CglwYW5vc2UtMToyIDE1IDUgMiAyIDIgNCAzIDIgNDt9DQovKiBTdHlsZSBEZWZpbml0aW9ucyAq
Lw0KcC5Nc29Ob3JtYWwsIGxpLk1zb05vcm1hbCwgZGl2Lk1zb05vcm1hbA0KCXttYXJnaW46MGlu
Ow0KCW1hcmdpbi1ib3R0b206LjAwMDFwdDsNCglmb250LXNpemU6MTEuMHB0Ow0KCWZvbnQtZmFt
aWx5OiJDYWxpYnJpIiwic2Fucy1zZXJpZiI7fQ0KYTpsaW5rLCBzcGFuLk1zb0h5cGVybGluaw0K
CXttc28tc3R5bGUtcHJpb3JpdHk6OTk7DQoJY29sb3I6Ymx1ZTsNCgl0ZXh0LWRlY29yYXRpb246
dW5kZXJsaW5lO30NCmE6dmlzaXRlZCwgc3Bhbi5Nc29IeXBlcmxpbmtGb2xsb3dlZA0KCXttc28t
c3R5bGUtcHJpb3JpdHk6OTk7DQoJY29sb3I6cHVycGxlOw0KCXRleH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