forked from mikel/mail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backport pull request mikel#1113 (commit 21222e1) from 2.7.0 to 2.6.6
- Loading branch information
Showing
92 changed files
with
4,942 additions
and
4,711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Never autoconvert line endings on fixture emails | ||
*.eml -text |
58 changes: 29 additions & 29 deletions
58
spec/fixtures/emails/attachment_emails/attachment_content_disposition.eml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
Mime-Version: 1.0 (Apple Message framework v730) | ||
Content-Type: multipart/mixed; boundary=Apple-Mail-13-196941151 | ||
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@example.com> | ||
From: foo@example.com | ||
Subject: testing | ||
Date: Mon, 6 Jun 2005 22:21:22 +0200 | ||
To: blah@example.com | ||
|
||
|
||
--Apple-Mail-13-196941151 | ||
Content-Transfer-Encoding: quoted-printable | ||
Content-Type: text/plain; | ||
charset=ISO-8859-1; | ||
delsp=yes; | ||
format=flowed | ||
This is the first part. | ||
--Apple-Mail-13-196941151 | ||
Content-Type: text/x-ruby-script; name="hello.rb" | ||
Content-Transfer-Encoding: 7bit | ||
Content-Disposition: attachment; | ||
filename="api.rb" | ||
puts "Hello, world!" | ||
gets | ||
--Apple-Mail-13-196941151-- | ||
|
||
Mime-Version: 1.0 (Apple Message framework v730) | ||
Content-Type: multipart/mixed; boundary=Apple-Mail-13-196941151 | ||
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@example.com> | ||
From: foo@example.com | ||
Subject: testing | ||
Date: Mon, 6 Jun 2005 22:21:22 +0200 | ||
To: blah@example.com | ||
|
||
|
||
--Apple-Mail-13-196941151 | ||
Content-Transfer-Encoding: quoted-printable | ||
Content-Type: text/plain; | ||
charset=ISO-8859-1; | ||
delsp=yes; | ||
format=flowed | ||
This is the first part. | ||
--Apple-Mail-13-196941151 | ||
Content-Type: text/x-ruby-script; name="hello.rb" | ||
Content-Transfer-Encoding: 7bit | ||
Content-Disposition: attachment; | ||
filename="api.rb" | ||
puts "Hello, world!" | ||
gets | ||
--Apple-Mail-13-196941151-- | ||
|
64 changes: 32 additions & 32 deletions
64
spec/fixtures/emails/attachment_emails/attachment_content_location.eml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
Mime-Version: 1.0 (Apple Message framework v730) | ||
Content-Type: multipart/mixed; boundary=Apple-Mail-13-196941151 | ||
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@example.com> | ||
From: foo@example.com | ||
Subject: testing | ||
Date: Mon, 6 Jun 2005 22:21:22 +0200 | ||
To: blah@example.com | ||
|
||
|
||
--Apple-Mail-13-196941151 | ||
Content-Transfer-Encoding: quoted-printable | ||
Content-Type: text/plain; | ||
charset=ISO-8859-1; | ||
delsp=yes; | ||
format=flowed | ||
This is the first part. | ||
--Apple-Mail-13-196941151 | ||
Content-Type: image/jpeg | ||
Content-Transfer-Encoding: base64 | ||
Content-Location: Photo25.jpg | ||
Content-ID: <qbFGyPQAS8> | ||
Content-Disposition: inline | ||
jamisSqGSIb3DQEHAqCAMIjamisxCzAJBgUrDgMCGgUAMIAGCSqGSjamisEHAQAAoIIFSjCCBUYw | ||
ggQujamisQICBD++ukQwDQYJKojamisNAQEFBQAwMTELMAkGA1UEBhMCRjamisAKBgNVBAoTA1RE | ||
QzEUMBIGjamisxMLVERDIE9DRVMgQ0jamisNMDQwMjI5MTE1OTAxWhcNMDYwMjamisIyOTAxWjCB | ||
gDELMAkGA1UEjamisEsxKTAnBgNVBAoTIEjamisuIG9yZ2FuaXNhdG9yaXNrIHRpbjamisRuaW5= | ||
--Apple-Mail-13-196941151-- | ||
|
||
Mime-Version: 1.0 (Apple Message framework v730) | ||
Content-Type: multipart/mixed; boundary=Apple-Mail-13-196941151 | ||
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@example.com> | ||
From: foo@example.com | ||
Subject: testing | ||
Date: Mon, 6 Jun 2005 22:21:22 +0200 | ||
To: blah@example.com | ||
|
||
|
||
--Apple-Mail-13-196941151 | ||
Content-Transfer-Encoding: quoted-printable | ||
Content-Type: text/plain; | ||
charset=ISO-8859-1; | ||
delsp=yes; | ||
format=flowed | ||
This is the first part. | ||
--Apple-Mail-13-196941151 | ||
Content-Type: image/jpeg | ||
Content-Transfer-Encoding: base64 | ||
Content-Location: Photo25.jpg | ||
Content-ID: <qbFGyPQAS8> | ||
Content-Disposition: inline | ||
jamisSqGSIb3DQEHAqCAMIjamisxCzAJBgUrDgMCGgUAMIAGCSqGSjamisEHAQAAoIIFSjCCBUYw | ||
ggQujamisQICBD++ukQwDQYJKojamisNAQEFBQAwMTELMAkGA1UEBhMCRjamisAKBgNVBAoTA1RE | ||
QzEUMBIGjamisxMLVERDIE9DRVMgQ0jamisNMDQwMjI5MTE1OTAxWhcNMDYwMjamisIyOTAxWjCB | ||
gDELMAkGA1UEjamisEsxKTAnBgNVBAoTIEjamisuIG9yZ2FuaXNhdG9yaXNrIHRpbjamisRuaW5= | ||
--Apple-Mail-13-196941151-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 16 additions & 16 deletions
32
spec/fixtures/emails/attachment_emails/attachment_only_email.eml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
Subject: this message JUST contains an attachment | ||
From: Ryan Finnie <rfinnie@domain.dom> | ||
To: bob@domain.dom | ||
Content-Disposition: attachment; filename=blah.gz | ||
Content-Transfer-Encoding: base64 | ||
Content-Description: Attachment has identical content to above foo.gz | ||
Message-Id: <1066974048.4264.62.camel@localhost> | ||
Mime-Version: 1.0 | ||
Date: 23 Oct 2003 22:40:49 -0700 | ||
Content-Type: application/x-gzip; NAME=blah.gz | ||
|
||
SubjectthismessageJUSTcontainsanattachmentFromRyanFinnierfinniedomaindomTobo | ||
bdomaindomContentDispositionattachmentfilenameAblahgzContentTypeapplication/ | ||
xgzipnameAblahgzContentTransferEncodingbase64ContentDescriptionAttachmenthas | ||
identicalcontenttoabovefoogzMessageId1066974048426462camellocalhostMimeVersi | ||
on10Date23Oct20032240490700H4sIAOHBmD8AA4vML1XPyVHISy1LLVJIy8xLUchNVeQCAHbe7 | ||
Subject: this message JUST contains an attachment | ||
From: Ryan Finnie <rfinnie@domain.dom> | ||
To: bob@domain.dom | ||
Content-Disposition: attachment; filename=blah.gz | ||
Content-Transfer-Encoding: base64 | ||
Content-Description: Attachment has identical content to above foo.gz | ||
Message-Id: <1066974048.4264.62.camel@localhost> | ||
Mime-Version: 1.0 | ||
Date: 23 Oct 2003 22:40:49 -0700 | ||
Content-Type: application/x-gzip; NAME=blah.gz | ||
|
||
SubjectthismessageJUSTcontainsanattachmentFromRyanFinnierfinniedomaindomTobo | ||
bdomaindomContentDispositionattachmentfilenameAblahgzContentTypeapplication/ | ||
xgzipnameAblahgzContentTransferEncodingbase64ContentDescriptionAttachmenthas | ||
identicalcontenttoabovefoogzMessageId1066974048426462camellocalhostMimeVersi | ||
on10Date23Oct20032240490700H4sIAOHBmD8AA4vML1XPyVHISy1LLVJIy8xLUchNVeQCAHbe7 | ||
64WA |
Oops, something went wrong.