diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 2e9167261..0508d51f2 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -55,6 +55,7 @@ Bugs: * #1074 - Fix that the first address in a list is dropped when a subsequent address has non-US-ASCII characters. (domininik) * #1107 - Fix Address#display_name and other formatting flip-flopping between encoded and decoded forms depending on whether #encoded or #decoded was called last. (jeremy) * #1110 - Fix that Mail::Multibyte::Chars#initialize mutated its argument by calling force_encoding on it. (jeremy) +* #1113 - Eliminate attachment corruption caused by CRLF conversion. (jeremy) == Version 2.6.4 - Wed Mar 23 08:16 -0700 2016 Jeremy Daer diff --git a/lib/mail/attachments_list.rb b/lib/mail/attachments_list.rb index 5f5ac2fb5..ca7d0d6ae 100644 --- a/lib/mail/attachments_list.rb +++ b/lib/mail/attachments_list.rb @@ -7,7 +7,7 @@ def initialize(parts_list) @content_disposition_type = 'attachment' parts_list.map { |p| if p.mime_type == 'message/rfc822' - Mail.new(p.body).attachments + Mail.new(p.body.encoded).attachments elsif p.parts.empty? p if p.attachment? else diff --git a/lib/mail/encodings/quoted_printable.rb b/lib/mail/encodings/quoted_printable.rb index 6c0438a5d..6a78ffc3e 100644 --- a/lib/mail/encodings/quoted_printable.rb +++ b/lib/mail/encodings/quoted_printable.rb @@ -16,11 +16,11 @@ def self.can_encode?(str) # Decode the string from Quoted-Printable. Cope with hard line breaks # that were incorrectly encoded as hex instead of literal CRLF. def self.decode(str) - ::Mail::Utilities.to_lf str.gsub(/(?:=0D=0A|=0D|=0A)\r\n/, "\r\n").unpack("M*").first + str.gsub(/(?:=0D=0A|=0D|=0A)\r\n/, "\r\n").unpack("M*").first end def self.encode(str) - ::Mail::Utilities.to_crlf([::Mail::Utilities.to_lf(str)].pack("M")) + [str].pack("M") end def self.cost(str) diff --git a/lib/mail/message.rb b/lib/mail/message.rb index 32d67b118..4398885e7 100644 --- a/lib/mail/message.rb +++ b/lib/mail/message.rb @@ -2012,7 +2012,7 @@ def parse_message def raw_source=(value) value = value.dup.force_encoding(Encoding::BINARY) if RUBY_VERSION >= "1.9.1" - @raw_source = ::Mail::Utilities.to_crlf(value) + @raw_source = value end # see comments to body=. We take data and process it lazily diff --git a/spec/fixtures/emails/.gitattributes b/spec/fixtures/emails/.gitattributes new file mode 100644 index 000000000..a978b2481 --- /dev/null +++ b/spec/fixtures/emails/.gitattributes @@ -0,0 +1,2 @@ +# Never autoconvert line endings on fixture emails +*.eml -text diff --git a/spec/fixtures/emails/attachment_emails/attachment_content_disposition.eml b/spec/fixtures/emails/attachment_emails/attachment_content_disposition.eml index 7d9314e36..a7e10d37b 100644 --- a/spec/fixtures/emails/attachment_emails/attachment_content_disposition.eml +++ b/spec/fixtures/emails/attachment_emails/attachment_content_disposition.eml @@ -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-- + diff --git a/spec/fixtures/emails/attachment_emails/attachment_content_location.eml b/spec/fixtures/emails/attachment_emails/attachment_content_location.eml index 2cd31720d..123d7d358 100644 --- a/spec/fixtures/emails/attachment_emails/attachment_content_location.eml +++ b/spec/fixtures/emails/attachment_emails/attachment_content_location.eml @@ -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: -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: +Content-Disposition: inline + +jamisSqGSIb3DQEHAqCAMIjamisxCzAJBgUrDgMCGgUAMIAGCSqGSjamisEHAQAAoIIFSjCCBUYw +ggQujamisQICBD++ukQwDQYJKojamisNAQEFBQAwMTELMAkGA1UEBhMCRjamisAKBgNVBAoTA1RE +QzEUMBIGjamisxMLVERDIE9DRVMgQ0jamisNMDQwMjI5MTE1OTAxWhcNMDYwMjamisIyOTAxWjCB +gDELMAkGA1UEjamisEsxKTAnBgNVBAoTIEjamisuIG9yZ2FuaXNhdG9yaXNrIHRpbjamisRuaW5= + +--Apple-Mail-13-196941151-- + diff --git a/spec/fixtures/emails/attachment_emails/attachment_message_rfc822.eml b/spec/fixtures/emails/attachment_emails/attachment_message_rfc822.eml index 0993483c3..f6ec8c2fc 100644 --- a/spec/fixtures/emails/attachment_emails/attachment_message_rfc822.eml +++ b/spec/fixtures/emails/attachment_emails/attachment_message_rfc822.eml @@ -1,93 +1,93 @@ -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: message/rfc822; - name="ForwardedMessage.eml"; - -From xxxx@xxxx.com Tue May 10 11:28:07 2005 -Return-Path: -X-Original-To: xxxx@xxxx.com -Delivered-To: xxxx@xxxx.com -Received: from localhost (localhost [127.0.0.1]) - by xxx.xxxxx.com (Postfix) with ESMTP id 50FD3A96F - for ; Tue, 10 May 2005 17:26:50 +0000 (GMT) -Received: from xxx.xxxxx.com ([127.0.0.1]) - by localhost (xxx.xxxxx.com [127.0.0.1]) (amavisd-new, port 10024) - with LMTP id 70060-03 for ; - Tue, 10 May 2005 17:26:49 +0000 (GMT) -Received: from xxx.xxxxx.com (xxx.xxxxx.com [69.36.39.150]) - by xxx.xxxxx.com (Postfix) with ESMTP id 8B957A94B - for ; Tue, 10 May 2005 17:26:48 +0000 (GMT) -Received: from xxx.xxxxx.com (xxx.xxxxx.com [64.233.184.203]) - by xxx.xxxxx.com (Postfix) with ESMTP id 9972514824C - for ; Tue, 10 May 2005 12:26:40 -0500 (CDT) -Received: by xxx.xxxxx.com with SMTP id 68so1694448wri - for ; Tue, 10 May 2005 10:26:40 -0700 (PDT) -DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; - s=beta; d=xxxxx.com; - h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; - b=g8ZO5ttS6GPEMAz9WxrRk9+9IXBUfQIYsZLL6T88+ECbsXqGIgfGtzJJFn6o9CE3/HMrrIGkN5AisxVFTGXWxWci5YA/7PTVWwPOhJff5BRYQDVNgRKqMl/SMttNrrRElsGJjnD1UyQ/5kQmcBxq2PuZI5Zc47u6CILcuoBcM+A= -Received: by 10.54.96.19 with SMTP id t19mr621017wrb; - Tue, 10 May 2005 10:26:39 -0700 (PDT) -Received: by 10.54.110.5 with HTTP; Tue, 10 May 2005 10:26:39 -0700 (PDT) -Message-ID: -Date: Tue, 10 May 2005 11:26:39 -0600 -From: Test Tester -Reply-To: Test Tester -To: xxxx@xxxx.com, xxxx@xxxx.com -Subject: Another PDF -Mime-Version: 1.0 -Content-Type: multipart/mixed; - boundary="----=_Part_2192_32400445.1115745999735" -X-Virus-Scanned: amavisd-new at textdrive.com - -------=_Part_2192_32400445.1115745999735 -Content-Type: text/plain; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - -Just attaching another PDF, here, to see what the message looks like, -and to see if I can figure out what is going wrong here. - -------=_Part_2192_32400445.1115745999735 -Content-Type: application/pdf; name="broken.pdf" -Content-Transfer-Encoding: base64 -Content-Disposition: attachment; filename="broken.pdf" - -JVBERi0xLjQNCiXk9tzfDQoxIDAgb2JqDQo8PCAvTGVuZ3RoIDIgMCBSDQogICAvRmlsdGVyIC9G -bGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KeJy9Wt2KJbkNvm/od6jrhZxYln9hWEh2p+8HBvICySaE -ycLuTV4/1ifJ9qnq09NpSBimu76yLUuy/qzqcPz7+em3Ixx/CDc6CsXxs3b5+fvfjr/8cPz6/BRu -rbfAx/n3739/fuJylJ5u5fjX81OuDr4deK4Bz3z/aDP+8fz0yw8g0Ofq7ktr1Mn+u28rvhy/jVeD -QSa+9YNKHP/pxjvDNfVAx/m3MFz54FhvTbaseaxiDoN2LeMVMw+yA7RbHSCDzxZuaYB2E1Yay7QU -x89vz0+tyFDKMlAHK5yqLmnjF+c4RjEiQIUeKwblXMe+AsZjN1J5yGQL5DHpDHksurM81rF6PKab -gK6zAarIDzIiUY23rJsN9iorAE816aIu6lsgAdQFsuhhkHOUFgVjp2GjMqSewITXNQ27jrMeamkg -1rPI3iLWG2CIaSBB+V1245YVRICGbbpYKHc2USFDl6M09acQVQYhlwIrkBNLISvXhGlF1wi5FHCw -wxZkoGNJlVeJCEsqKA+3YAV5AMb6KkeaqEJQmFKKQU8T1pRi2ihE1Y4CDrqoYFFXYjJJOatsyzuI -8SIlykuxKTMibWK8H1PgEvqYgs4GmQSrEjJAalgGirIhik+p4ZQN9E3ETFPAHE1b8pp1l/0Rc1gl -fQs0ABWvyoZZzU8VnPXwVVcO9BEsyjEJaO6eBoZRyKGlrKoYoOygA8BGIzgwN3RQ15ouigG5idZQ -fx2U4Db2CqiLO0WHAZoylGiCAqhniNQjFjQPSkmjwfNTgQ6M1Ih+eWo36wFmjIxDJZiGUBiWsAyR -xX3EekGOizkGI96Ol9zVZTAivikURhRsHh2E3JhWMpSTZCnnonrLhMCodgrNcgo4uyJUJc6qnVss -nrGd1Ptr0YwisCOYyIbUwVjV4xBUNLbguSO2YHujonAMJkMdSI7bIw91Akq2AUlMUWGFTMAOamjU -OvZQCxIkY2pCpMFo/IwLdVLHs6nddwTRrgoVbvLU9eB0G4EMndV0TNoxHbt3JBWwK6hhv3iHfDtF -yokB302IpEBTnWICde4uYc/1khDbSIkQopO6lcqamGBu1OSE3N5IPSsZX00CkSHRiiyx6HQIShsS -HSVNswdVsaOUSAWq9aYhDtGDaoG5a3lBGkYt/lFlBFt1UqrYnzVtUpUQnLiZeouKgf1KhRBViRRk -ExepJCzTwEmFDalIRbLEGtw0gfpESOpIAF/NnpPzcVCG86s0g2DuSyd41uhNGbEgaSrWEXORErbw -------=_Part_2192_32400445.1115745999735-- - ---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: message/rfc822; + name="ForwardedMessage.eml"; + +From xxxx@xxxx.com Tue May 10 11:28:07 2005 +Return-Path: +X-Original-To: xxxx@xxxx.com +Delivered-To: xxxx@xxxx.com +Received: from localhost (localhost [127.0.0.1]) + by xxx.xxxxx.com (Postfix) with ESMTP id 50FD3A96F + for ; Tue, 10 May 2005 17:26:50 +0000 (GMT) +Received: from xxx.xxxxx.com ([127.0.0.1]) + by localhost (xxx.xxxxx.com [127.0.0.1]) (amavisd-new, port 10024) + with LMTP id 70060-03 for ; + Tue, 10 May 2005 17:26:49 +0000 (GMT) +Received: from xxx.xxxxx.com (xxx.xxxxx.com [69.36.39.150]) + by xxx.xxxxx.com (Postfix) with ESMTP id 8B957A94B + for ; Tue, 10 May 2005 17:26:48 +0000 (GMT) +Received: from xxx.xxxxx.com (xxx.xxxxx.com [64.233.184.203]) + by xxx.xxxxx.com (Postfix) with ESMTP id 9972514824C + for ; Tue, 10 May 2005 12:26:40 -0500 (CDT) +Received: by xxx.xxxxx.com with SMTP id 68so1694448wri + for ; Tue, 10 May 2005 10:26:40 -0700 (PDT) +DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; + s=beta; d=xxxxx.com; + h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; + b=g8ZO5ttS6GPEMAz9WxrRk9+9IXBUfQIYsZLL6T88+ECbsXqGIgfGtzJJFn6o9CE3/HMrrIGkN5AisxVFTGXWxWci5YA/7PTVWwPOhJff5BRYQDVNgRKqMl/SMttNrrRElsGJjnD1UyQ/5kQmcBxq2PuZI5Zc47u6CILcuoBcM+A= +Received: by 10.54.96.19 with SMTP id t19mr621017wrb; + Tue, 10 May 2005 10:26:39 -0700 (PDT) +Received: by 10.54.110.5 with HTTP; Tue, 10 May 2005 10:26:39 -0700 (PDT) +Message-ID: +Date: Tue, 10 May 2005 11:26:39 -0600 +From: Test Tester +Reply-To: Test Tester +To: xxxx@xxxx.com, xxxx@xxxx.com +Subject: Another PDF +Mime-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_2192_32400445.1115745999735" +X-Virus-Scanned: amavisd-new at textdrive.com + +------=_Part_2192_32400445.1115745999735 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + +Just attaching another PDF, here, to see what the message looks like, +and to see if I can figure out what is going wrong here. + +------=_Part_2192_32400445.1115745999735 +Content-Type: application/pdf; name="broken.pdf" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="broken.pdf" + +JVBERi0xLjQNCiXk9tzfDQoxIDAgb2JqDQo8PCAvTGVuZ3RoIDIgMCBSDQogICAvRmlsdGVyIC9G +bGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KeJy9Wt2KJbkNvm/od6jrhZxYln9hWEh2p+8HBvICySaE +ycLuTV4/1ifJ9qnq09NpSBimu76yLUuy/qzqcPz7+em3Ixx/CDc6CsXxs3b5+fvfjr/8cPz6/BRu +rbfAx/n3739/fuJylJ5u5fjX81OuDr4deK4Bz3z/aDP+8fz0yw8g0Ofq7ktr1Mn+u28rvhy/jVeD +QSa+9YNKHP/pxjvDNfVAx/m3MFz54FhvTbaseaxiDoN2LeMVMw+yA7RbHSCDzxZuaYB2E1Yay7QU +x89vz0+tyFDKMlAHK5yqLmnjF+c4RjEiQIUeKwblXMe+AsZjN1J5yGQL5DHpDHksurM81rF6PKab +gK6zAarIDzIiUY23rJsN9iorAE816aIu6lsgAdQFsuhhkHOUFgVjp2GjMqSewITXNQ27jrMeamkg +1rPI3iLWG2CIaSBB+V1245YVRICGbbpYKHc2USFDl6M09acQVQYhlwIrkBNLISvXhGlF1wi5FHCw +wxZkoGNJlVeJCEsqKA+3YAV5AMb6KkeaqEJQmFKKQU8T1pRi2ihE1Y4CDrqoYFFXYjJJOatsyzuI +8SIlykuxKTMibWK8H1PgEvqYgs4GmQSrEjJAalgGirIhik+p4ZQN9E3ETFPAHE1b8pp1l/0Rc1gl +fQs0ABWvyoZZzU8VnPXwVVcO9BEsyjEJaO6eBoZRyKGlrKoYoOygA8BGIzgwN3RQ15ouigG5idZQ +fx2U4Db2CqiLO0WHAZoylGiCAqhniNQjFjQPSkmjwfNTgQ6M1Ih+eWo36wFmjIxDJZiGUBiWsAyR +xX3EekGOizkGI96Ol9zVZTAivikURhRsHh2E3JhWMpSTZCnnonrLhMCodgrNcgo4uyJUJc6qnVss +nrGd1Ptr0YwisCOYyIbUwVjV4xBUNLbguSO2YHujonAMJkMdSI7bIw91Akq2AUlMUWGFTMAOamjU +OvZQCxIkY2pCpMFo/IwLdVLHs6nddwTRrgoVbvLU9eB0G4EMndV0TNoxHbt3JBWwK6hhv3iHfDtF +yokB302IpEBTnWICde4uYc/1khDbSIkQopO6lcqamGBu1OSE3N5IPSsZX00CkSHRiiyx6HQIShsS +HSVNswdVsaOUSAWq9aYhDtGDaoG5a3lBGkYt/lFlBFt1UqrYnzVtUpUQnLiZeouKgf1KhRBViRRk +ExepJCzTwEmFDalIRbLEGtw0gfpESOpIAF/NnpPzcVCG86s0g2DuSyd41uhNGbEgaSrWEXORErbw +------=_Part_2192_32400445.1115745999735-- + +--Apple-Mail-13-196941151-- diff --git a/spec/fixtures/emails/attachment_emails/attachment_only_email.eml b/spec/fixtures/emails/attachment_emails/attachment_only_email.eml index 4f2659a84..2b79ca7e8 100644 --- a/spec/fixtures/emails/attachment_emails/attachment_only_email.eml +++ b/spec/fixtures/emails/attachment_emails/attachment_only_email.eml @@ -1,17 +1,17 @@ -Subject: this message JUST contains an attachment -From: Ryan Finnie -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 +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 \ No newline at end of file diff --git a/spec/fixtures/emails/attachment_emails/attachment_pdf.eml b/spec/fixtures/emails/attachment_emails/attachment_pdf.eml index 771a96350..1fd2ed7a1 100644 --- a/spec/fixtures/emails/attachment_emails/attachment_pdf.eml +++ b/spec/fixtures/emails/attachment_emails/attachment_pdf.eml @@ -1,70 +1,70 @@ -From xxxx@xxxx.com Tue May 10 11:28:07 2005 -Return-Path: -X-Original-To: xxxx@xxxx.com -Delivered-To: xxxx@xxxx.com -Received: from localhost (localhost [127.0.0.1]) - by xxx.xxxxx.com (Postfix) with ESMTP id 50FD3A96F - for ; Tue, 10 May 2005 17:26:50 +0000 (GMT) -Received: from xxx.xxxxx.com ([127.0.0.1]) - by localhost (xxx.xxxxx.com [127.0.0.1]) (amavisd-new, port 10024) - with LMTP id 70060-03 for ; - Tue, 10 May 2005 17:26:49 +0000 (GMT) -Received: from xxx.xxxxx.com (xxx.xxxxx.com [69.36.39.150]) - by xxx.xxxxx.com (Postfix) with ESMTP id 8B957A94B - for ; Tue, 10 May 2005 17:26:48 +0000 (GMT) -Received: from xxx.xxxxx.com (xxx.xxxxx.com [64.233.184.203]) - by xxx.xxxxx.com (Postfix) with ESMTP id 9972514824C - for ; Tue, 10 May 2005 12:26:40 -0500 (CDT) -Received: by xxx.xxxxx.com with SMTP id 68so1694448wri - for ; Tue, 10 May 2005 10:26:40 -0700 (PDT) -DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; - s=beta; d=xxxxx.com; - h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; - b=g8ZO5ttS6GPEMAz9WxrRk9+9IXBUfQIYsZLL6T88+ECbsXqGIgfGtzJJFn6o9CE3/HMrrIGkN5AisxVFTGXWxWci5YA/7PTVWwPOhJff5BRYQDVNgRKqMl/SMttNrrRElsGJjnD1UyQ/5kQmcBxq2PuZI5Zc47u6CILcuoBcM+A= -Received: by 10.54.96.19 with SMTP id t19mr621017wrb; - Tue, 10 May 2005 10:26:39 -0700 (PDT) -Received: by 10.54.110.5 with HTTP; Tue, 10 May 2005 10:26:39 -0700 (PDT) -Message-ID: -Date: Tue, 10 May 2005 11:26:39 -0600 -From: Test Tester -Reply-To: Test Tester -To: xxxx@xxxx.com, xxxx@xxxx.com -Subject: Another PDF -Mime-Version: 1.0 -Content-Type: multipart/mixed; - boundary="----=_Part_2192_32400445.1115745999735" -X-Virus-Scanned: amavisd-new at textdrive.com - -------=_Part_2192_32400445.1115745999735 -Content-Type: text/plain; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - -Just attaching another PDF, here, to see what the message looks like, -and to see if I can figure out what is going wrong here. - -------=_Part_2192_32400445.1115745999735 -Content-Type: application/pdf; name="broken.pdf" -Content-Transfer-Encoding: base64 -Content-Disposition: attachment; filename="broken.pdf" - -JVBERi0xLjQNCiXk9tzfDQoxIDAgb2JqDQo8PCAvTGVuZ3RoIDIgMCBSDQogICAvRmlsdGVyIC9G -bGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KeJy9Wt2KJbkNvm/od6jrhZxYln9hWEh2p+8HBvICySaE -ycLuTV4/1ifJ9qnq09NpSBimu76yLUuy/qzqcPz7+em3Ixx/CDc6CsXxs3b5+fvfjr/8cPz6/BRu -rbfAx/n3739/fuJylJ5u5fjX81OuDr4deK4Bz3z/aDP+8fz0yw8g0Ofq7ktr1Mn+u28rvhy/jVeD -QSa+9YNKHP/pxjvDNfVAx/m3MFz54FhvTbaseaxiDoN2LeMVMw+yA7RbHSCDzxZuaYB2E1Yay7QU -x89vz0+tyFDKMlAHK5yqLmnjF+c4RjEiQIUeKwblXMe+AsZjN1J5yGQL5DHpDHksurM81rF6PKab -gK6zAarIDzIiUY23rJsN9iorAE816aIu6lsgAdQFsuhhkHOUFgVjp2GjMqSewITXNQ27jrMeamkg -1rPI3iLWG2CIaSBB+V1245YVRICGbbpYKHc2USFDl6M09acQVQYhlwIrkBNLISvXhGlF1wi5FHCw -wxZkoGNJlVeJCEsqKA+3YAV5AMb6KkeaqEJQmFKKQU8T1pRi2ihE1Y4CDrqoYFFXYjJJOatsyzuI -8SIlykuxKTMibWK8H1PgEvqYgs4GmQSrEjJAalgGirIhik+p4ZQN9E3ETFPAHE1b8pp1l/0Rc1gl -fQs0ABWvyoZZzU8VnPXwVVcO9BEsyjEJaO6eBoZRyKGlrKoYoOygA8BGIzgwN3RQ15ouigG5idZQ -fx2U4Db2CqiLO0WHAZoylGiCAqhniNQjFjQPSkmjwfNTgQ6M1Ih+eWo36wFmjIxDJZiGUBiWsAyR -xX3EekGOizkGI96Ol9zVZTAivikURhRsHh2E3JhWMpSTZCnnonrLhMCodgrNcgo4uyJUJc6qnVss -nrGd1Ptr0YwisCOYyIbUwVjV4xBUNLbguSO2YHujonAMJkMdSI7bIw91Akq2AUlMUWGFTMAOamjU -OvZQCxIkY2pCpMFo/IwLdVLHs6nddwTRrgoVbvLU9eB0G4EMndV0TNoxHbt3JBWwK6hhv3iHfDtF -yokB302IpEBTnWICde4uYc/1khDbSIkQopO6lcqamGBu1OSE3N5IPSsZX00CkSHRiiyx6HQIShsS -HSVNswdVsaOUSAWq9aYhDtGDaoG5a3lBGkYt/lFlBFt1UqrYnzVtUpUQnLiZeouKgf1KhRBViRRk -ExepJCzTwEmFDalIRbLEGtw0gfpESOpIAF/NnpPzcVCG86s0g2DuSyd41uhNGbEgaSrWEXORErbw -------=_Part_2192_32400445.1115745999735-- - +From xxxx@xxxx.com Tue May 10 11:28:07 2005 +Return-Path: +X-Original-To: xxxx@xxxx.com +Delivered-To: xxxx@xxxx.com +Received: from localhost (localhost [127.0.0.1]) + by xxx.xxxxx.com (Postfix) with ESMTP id 50FD3A96F + for ; Tue, 10 May 2005 17:26:50 +0000 (GMT) +Received: from xxx.xxxxx.com ([127.0.0.1]) + by localhost (xxx.xxxxx.com [127.0.0.1]) (amavisd-new, port 10024) + with LMTP id 70060-03 for ; + Tue, 10 May 2005 17:26:49 +0000 (GMT) +Received: from xxx.xxxxx.com (xxx.xxxxx.com [69.36.39.150]) + by xxx.xxxxx.com (Postfix) with ESMTP id 8B957A94B + for ; Tue, 10 May 2005 17:26:48 +0000 (GMT) +Received: from xxx.xxxxx.com (xxx.xxxxx.com [64.233.184.203]) + by xxx.xxxxx.com (Postfix) with ESMTP id 9972514824C + for ; Tue, 10 May 2005 12:26:40 -0500 (CDT) +Received: by xxx.xxxxx.com with SMTP id 68so1694448wri + for ; Tue, 10 May 2005 10:26:40 -0700 (PDT) +DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; + s=beta; d=xxxxx.com; + h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; + b=g8ZO5ttS6GPEMAz9WxrRk9+9IXBUfQIYsZLL6T88+ECbsXqGIgfGtzJJFn6o9CE3/HMrrIGkN5AisxVFTGXWxWci5YA/7PTVWwPOhJff5BRYQDVNgRKqMl/SMttNrrRElsGJjnD1UyQ/5kQmcBxq2PuZI5Zc47u6CILcuoBcM+A= +Received: by 10.54.96.19 with SMTP id t19mr621017wrb; + Tue, 10 May 2005 10:26:39 -0700 (PDT) +Received: by 10.54.110.5 with HTTP; Tue, 10 May 2005 10:26:39 -0700 (PDT) +Message-ID: +Date: Tue, 10 May 2005 11:26:39 -0600 +From: Test Tester +Reply-To: Test Tester +To: xxxx@xxxx.com, xxxx@xxxx.com +Subject: Another PDF +Mime-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_2192_32400445.1115745999735" +X-Virus-Scanned: amavisd-new at textdrive.com + +------=_Part_2192_32400445.1115745999735 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + +Just attaching another PDF, here, to see what the message looks like, +and to see if I can figure out what is going wrong here. + +------=_Part_2192_32400445.1115745999735 +Content-Type: application/pdf; name="broken.pdf" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="broken.pdf" + +JVBERi0xLjQNCiXk9tzfDQoxIDAgb2JqDQo8PCAvTGVuZ3RoIDIgMCBSDQogICAvRmlsdGVyIC9G +bGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KeJy9Wt2KJbkNvm/od6jrhZxYln9hWEh2p+8HBvICySaE +ycLuTV4/1ifJ9qnq09NpSBimu76yLUuy/qzqcPz7+em3Ixx/CDc6CsXxs3b5+fvfjr/8cPz6/BRu +rbfAx/n3739/fuJylJ5u5fjX81OuDr4deK4Bz3z/aDP+8fz0yw8g0Ofq7ktr1Mn+u28rvhy/jVeD +QSa+9YNKHP/pxjvDNfVAx/m3MFz54FhvTbaseaxiDoN2LeMVMw+yA7RbHSCDzxZuaYB2E1Yay7QU +x89vz0+tyFDKMlAHK5yqLmnjF+c4RjEiQIUeKwblXMe+AsZjN1J5yGQL5DHpDHksurM81rF6PKab +gK6zAarIDzIiUY23rJsN9iorAE816aIu6lsgAdQFsuhhkHOUFgVjp2GjMqSewITXNQ27jrMeamkg +1rPI3iLWG2CIaSBB+V1245YVRICGbbpYKHc2USFDl6M09acQVQYhlwIrkBNLISvXhGlF1wi5FHCw +wxZkoGNJlVeJCEsqKA+3YAV5AMb6KkeaqEJQmFKKQU8T1pRi2ihE1Y4CDrqoYFFXYjJJOatsyzuI +8SIlykuxKTMibWK8H1PgEvqYgs4GmQSrEjJAalgGirIhik+p4ZQN9E3ETFPAHE1b8pp1l/0Rc1gl +fQs0ABWvyoZZzU8VnPXwVVcO9BEsyjEJaO6eBoZRyKGlrKoYoOygA8BGIzgwN3RQ15ouigG5idZQ +fx2U4Db2CqiLO0WHAZoylGiCAqhniNQjFjQPSkmjwfNTgQ6M1Ih+eWo36wFmjIxDJZiGUBiWsAyR +xX3EekGOizkGI96Ol9zVZTAivikURhRsHh2E3JhWMpSTZCnnonrLhMCodgrNcgo4uyJUJc6qnVss +nrGd1Ptr0YwisCOYyIbUwVjV4xBUNLbguSO2YHujonAMJkMdSI7bIw91Akq2AUlMUWGFTMAOamjU +OvZQCxIkY2pCpMFo/IwLdVLHs6nddwTRrgoVbvLU9eB0G4EMndV0TNoxHbt3JBWwK6hhv3iHfDtF +yokB302IpEBTnWICde4uYc/1khDbSIkQopO6lcqamGBu1OSE3N5IPSsZX00CkSHRiiyx6HQIShsS +HSVNswdVsaOUSAWq9aYhDtGDaoG5a3lBGkYt/lFlBFt1UqrYnzVtUpUQnLiZeouKgf1KhRBViRRk +ExepJCzTwEmFDalIRbLEGtw0gfpESOpIAF/NnpPzcVCG86s0g2DuSyd41uhNGbEgaSrWEXORErbw +------=_Part_2192_32400445.1115745999735-- + diff --git a/spec/fixtures/emails/attachment_emails/attachment_with_encoded_name.eml b/spec/fixtures/emails/attachment_emails/attachment_with_encoded_name.eml index 2382dfdf3..142f53657 100644 --- a/spec/fixtures/emails/attachment_emails/attachment_with_encoded_name.eml +++ b/spec/fixtures/emails/attachment_emails/attachment_with_encoded_name.eml @@ -1,47 +1,47 @@ -From xxxxxxxxx.xxxxxxx@gmail.com Sun May 8 19:07:09 2005 -Return-Path: -Message-ID: -Date: Sun, 8 May 2005 14:09:11 -0500 -From: xxxxxxxxx xxxxxxx -Reply-To: xxxxxxxxx xxxxxxx -To: xxxxx xxxx -Subject: Fwd: Signed email causes file attachments -In-Reply-To: -Mime-Version: 1.0 -Content-Type: multipart/mixed; - boundary="----=_Part_5028_7368284.1115579351471" -References: - -------=_Part_5028_7368284.1115579351471 -Content-Type: text/plain; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - -We should not include these files or vcards as attachments. - ----------- Forwarded message ---------- -From: xxxxx xxxxxx -Date: May 8, 2005 1:17 PM -Subject: Signed email causes file attachments -To: xxxxxxx@xxxxxxxxxx.com - - -Hi, - -Test attachments oddly encoded with japanese charset. - - -------=_Part_5028_7368284.1115579351471 -Content-Type: application/octet-stream; name*=iso-2022-jp'ja'01%20Quien%20Te%20Dij%8aat.%20Pitbull.mp3 -Content-Transfer-Encoding: base64 -Content-Disposition: attachment - -MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFDCCAs0w -ggI2oAMCAQICAw5c+TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh -d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt -YWlsIElzc3VpbmcgQ0EwHhcNMDUwMzI5MDkzOTEwWhcNMDYwMzI5MDkzOTEwWjBCMR8wHQYDVQQD -ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBzbWhhdW5jaEBtYWMuY29t -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn90dPsYS3LjfMY211OSYrDQLzwNYPlAL -7+/0XA+kdy8/rRnyEHFGwhNCDmg0B6pxC7z3xxJD/8GfCd+IYUUNUQV5m9MkxfP9pTVXZVIYLaBw -------=_Part_5028_7368284.1115579351471-- - +From xxxxxxxxx.xxxxxxx@gmail.com Sun May 8 19:07:09 2005 +Return-Path: +Message-ID: +Date: Sun, 8 May 2005 14:09:11 -0500 +From: xxxxxxxxx xxxxxxx +Reply-To: xxxxxxxxx xxxxxxx +To: xxxxx xxxx +Subject: Fwd: Signed email causes file attachments +In-Reply-To: +Mime-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_5028_7368284.1115579351471" +References: + +------=_Part_5028_7368284.1115579351471 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + +We should not include these files or vcards as attachments. + +---------- Forwarded message ---------- +From: xxxxx xxxxxx +Date: May 8, 2005 1:17 PM +Subject: Signed email causes file attachments +To: xxxxxxx@xxxxxxxxxx.com + + +Hi, + +Test attachments oddly encoded with japanese charset. + + +------=_Part_5028_7368284.1115579351471 +Content-Type: application/octet-stream; name*=iso-2022-jp'ja'01%20Quien%20Te%20Dij%8aat.%20Pitbull.mp3 +Content-Transfer-Encoding: base64 +Content-Disposition: attachment + +MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFDCCAs0w +ggI2oAMCAQICAw5c+TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh +d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt +YWlsIElzc3VpbmcgQ0EwHhcNMDUwMzI5MDkzOTEwWhcNMDYwMzI5MDkzOTEwWjBCMR8wHQYDVQQD +ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBzbWhhdW5jaEBtYWMuY29t +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn90dPsYS3LjfMY211OSYrDQLzwNYPlAL +7+/0XA+kdy8/rRnyEHFGwhNCDmg0B6pxC7z3xxJD/8GfCd+IYUUNUQV5m9MkxfP9pTVXZVIYLaBw +------=_Part_5028_7368284.1115579351471-- + diff --git a/spec/fixtures/emails/attachment_emails/attachment_with_quoted_filename.eml b/spec/fixtures/emails/attachment_emails/attachment_with_quoted_filename.eml index 133ce8af9..336576dfc 100644 --- a/spec/fixtures/emails/attachment_emails/attachment_with_quoted_filename.eml +++ b/spec/fixtures/emails/attachment_emails/attachment_with_quoted_filename.eml @@ -1,60 +1,60 @@ -Return-Path: -Received: from ?10.0.1.6? (d36-211-30.home1.cgocable.net [24.36.211.30]) - by mx.google.com with ESMTPS id g14sm267889rvb.22.2009.05.13.08.42.03 - (version=TLSv1/SSLv3 cipher=RC4-MD5); - Wed, 13 May 2009 08:42:04 -0700 (PDT) -Message-Id: -From: Jeffrey Hardy -To: Jeffrey Hardy -Content-Type: multipart/mixed; boundary=Apple-Mail-6--218366681 -Mime-Version: 1.0 (Apple Message framework v935.3) -Subject: =?ISO-8859-1?Q?Eelanal=FC=FCsi_p=E4ring?= -Date: Wed, 13 May 2009 11:42:01 -0400 -X-Mailer: Apple Mail (2.935.3) - - ---Apple-Mail-6--218366681 -Content-Disposition: inline; - filename*=ISO-8859-1''Eelanal%FC%FCsi%20p%E4ring.jpg -Content-Type: image/jpeg; - x-unix-mode=0700; - name="=?ISO-8859-1?Q?Eelanal=FC=FCsi_p=E4ring.jpg?=" -Content-Transfer-Encoding: base64 - -/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAUAAA/+4ADkFkb2JlAGTAAAAAAf/b -AIQAAgICAgICAgICAgMCAgIDBAMCAgMEBQQEBAQEBQYFBQUFBQUGBgcHCAcHBgkJCgoJCQwMDAwM -DAwMDAwMDAwMDAEDAwMFBAUJBgYJDQsJCw0PDg4ODg8PDAwMDAwPDwwMDAwMDA8MDAwMDAwMDAwM -DAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAMgAyAwERAAIRAQMRAf/EAHsAAAIDAQEAAAAAAAAAAAAA -AAgJBgcKBQQBAQAAAAAAAAAAAAAAAAAAAAAQAAEDAwEEBgYIAwkAAAAAAAIBAwQRBQYSADETByEi -MjMUCFFhUmM0NUFxYlMVFjYJoUNz8EKSw1SEVRc3EQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIR -AxEAPwB9e9aJ0+r17AuTzM/uI4TyUvFzwnCcf/P2a29pwJs2Q8Ua0QpAlw0BSESdlEBouoQ4Yf3U -d1V0gsud+5p5lJDs2427Oo0R1uQzwrA3ZreUdGiLrNDxIZuJvoiq4q+hV2C17J+4/wAz7zItFoyh -m031ua45IYakW9toyVpdTjJSIjzFDFoTFCFrrKqdRdygY/LXzV8r88uVttplKxpzIHGIlknSyGTb -5ciSStCwMloQNouLRurzQDrXTVF2Bi9hkLJs8Bw6o4jeh1F3oQdUkX11TYOvsArecDn4XIPlU5dL -YBHl2YSTsWIkiUCPIdYMilG4qog8FKKO9VLSlKVVAyh5JkF3vkiYXipMlySRuFGZbNwiJXNRF1VJ -V+lfpVd9KbgjEt97XJiOG84E6S0kNGV4jchTTiM6g1Ei6x3KNVqlE9GwGd5eeU6czckxgn7zNZnt -tlCh2u2SI0QpL0cUZ1q8+yTKqjbqK4yogZaS0qtVoBjT/IP5hsStF+sdgt0O8Qbt4h8bjb58dXzN -4xdIDBxGCbIjTrKiLQk1V6KqDm+RsrL3+WmLs8woTluzyJAZZzCI4bbq/iDdW33EcaqBo6o8TUPQ -ur012C3dgU/+7DAu44DygyWI6X4TYchuLMyGSKrT0yVEA42tK0qLTD9K+n69gzzzxt0lGGWXH7U/ -NuTXiUQnAKC4BusvtgKUEkIlbLUq1SnoXYJfG/LRsDEkutK6Nkdgybi2BK3IBJBSHHozKFp4zNOJ -7aqpLqQ2y1AyX9v3mfBtPOeFIOYTQZDab45eYchR0NOaWTbfhm32RM20URJVVEMxqqqmwPS/FRlA -Jx3ENpymlU3eqmwdfH5Oi6eGqpeKZMiVNycNUXp+utNgnewDJz8xblt5ieVmV8qb3fSsq3ptHbBk -bsUlG33OOuqJKoVEIELquAqgptEYagUtSBlP5u4Dk/KjPcrwnOI7MXI8YmAzdoqGbkbiIyhDNhvK -gk5GmR+E80ZCimKiqohj1QjN95a8xsZs8TLskwrLcHxDIJCSrFkF9s8+Ha5quNq42sWXIabbeVxs -i0aSqooqotOjYCn8neA5ZzB5h24sNnRcZg2/hyFyGY04Qm1GopqDAoiuF0oNEVEXcS/SoaDLDOXE -bUxARy4ZBKZBBF15tEekGiL1yRtNI1ovQKL6ERV6NgsHCxu9uUr9fmmhyGc8L94RCTw0FhQVItvF -1VoKABKRovSTpEXsigWp+boH+kkd1xe03v8AZ3/x2AFcozqz4ZFWZklwGC8SCsOztqhTXVcWgEba -KvBbVV6TNN1VQV3bACXPnFHPMdZbZnVou9ut+e8vrqdmxmxXditsessCQkngTFADkKb0kifAiVRF -lzhIA1I1AyCi2XIrLKzFrMhW1Pw5X/avKq5XF0mpwuI9J4gNynXWzkMPEHhyWPw3QbFsSaIyDYFX -8osrDlbz7Vuyk/dLW7cX4bUZvUjMNE4jjjLaLQT6+pB6dgcVhHMhmcATRVBBAXizVcRGxEOk1Mqo -iCCLVVXoTYPTiFwczzmBLz6Qy3Bs9ktXgrHirg1kXBLmqiF5ubSkSMq4xH0w2yEXdFXDoiihBdf4 -l70t3C7P8n2vr9e/YFMcxMNy/GbxJZyyM65cJSk+U8H+MkgXSIVdF6q8USVVQtVFqlFRKU2Cvoty -uVlkm7BkAZnRp9t8TFt0W+yjoVQxIEKiGNVpVKKnV2CRLcLfn1vlYzPSVZryLSu+ERUF4mFXQT0O -QIqD4aqIWmhjVNYgqpsA+XPlZEtV1NuxZLPyJ+xOpGkxZAaWGHWq1jFMaFENxtKK6giSglUMhLo2 -A4PLVyizvJguuQlf7HYo0KR+HMyJdtnXQJD7raOSiYjjKhsF4dV0Khkqa1Wu5UUD3x3BYOLtybHa -nJMl3IXPGzb1I0JLuF3RSQzkm2AACuNqgtg2Ig2IiAJQUXYKw/Osv/lE+F4vfJ2vvd/e/wAfs7BX -vml+a2T5P8Ez2PnneO9r3Hs+vVsAhPfpbJfl/wAVbfivm3874D3f33r4ewRIfhh7zvQ7z+mvw3vP -R6tg7y9/D7Hdsd38F3i919j777WwNy5e/o7B/lPy9P058p7R/D/5nvNWwS0OxH3/ABcTd/VXs/b9 -GwB9/g/9S/t/s9g//9k= - +Return-Path: +Received: from ?10.0.1.6? (d36-211-30.home1.cgocable.net [24.36.211.30]) + by mx.google.com with ESMTPS id g14sm267889rvb.22.2009.05.13.08.42.03 + (version=TLSv1/SSLv3 cipher=RC4-MD5); + Wed, 13 May 2009 08:42:04 -0700 (PDT) +Message-Id: +From: Jeffrey Hardy +To: Jeffrey Hardy +Content-Type: multipart/mixed; boundary=Apple-Mail-6--218366681 +Mime-Version: 1.0 (Apple Message framework v935.3) +Subject: =?ISO-8859-1?Q?Eelanal=FC=FCsi_p=E4ring?= +Date: Wed, 13 May 2009 11:42:01 -0400 +X-Mailer: Apple Mail (2.935.3) + + +--Apple-Mail-6--218366681 +Content-Disposition: inline; + filename*=ISO-8859-1''Eelanal%FC%FCsi%20p%E4ring.jpg +Content-Type: image/jpeg; + x-unix-mode=0700; + name="=?ISO-8859-1?Q?Eelanal=FC=FCsi_p=E4ring.jpg?=" +Content-Transfer-Encoding: base64 + +/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAUAAA/+4ADkFkb2JlAGTAAAAAAf/b +AIQAAgICAgICAgICAgMCAgIDBAMCAgMEBQQEBAQEBQYFBQUFBQUGBgcHCAcHBgkJCgoJCQwMDAwM +DAwMDAwMDAwMDAEDAwMFBAUJBgYJDQsJCw0PDg4ODg8PDAwMDAwPDwwMDAwMDA8MDAwMDAwMDAwM +DAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAMgAyAwERAAIRAQMRAf/EAHsAAAIDAQEAAAAAAAAAAAAA +AAgJBgcKBQQBAQAAAAAAAAAAAAAAAAAAAAAQAAEDAwEEBgYIAwkAAAAAAAIBAwQRBQYSADETByEi +MjMUCFFhUmM0NUFxYlMVFjYJoUNz8EKSw1SEVRc3EQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIR +AxEAPwB9e9aJ0+r17AuTzM/uI4TyUvFzwnCcf/P2a29pwJs2Q8Ua0QpAlw0BSESdlEBouoQ4Yf3U +d1V0gsud+5p5lJDs2427Oo0R1uQzwrA3ZreUdGiLrNDxIZuJvoiq4q+hV2C17J+4/wAz7zItFoyh +m031ua45IYakW9toyVpdTjJSIjzFDFoTFCFrrKqdRdygY/LXzV8r88uVttplKxpzIHGIlknSyGTb +5ciSStCwMloQNouLRurzQDrXTVF2Bi9hkLJs8Bw6o4jeh1F3oQdUkX11TYOvsArecDn4XIPlU5dL +YBHl2YSTsWIkiUCPIdYMilG4qog8FKKO9VLSlKVVAyh5JkF3vkiYXipMlySRuFGZbNwiJXNRF1VJ +V+lfpVd9KbgjEt97XJiOG84E6S0kNGV4jchTTiM6g1Ei6x3KNVqlE9GwGd5eeU6czckxgn7zNZnt +tlCh2u2SI0QpL0cUZ1q8+yTKqjbqK4yogZaS0qtVoBjT/IP5hsStF+sdgt0O8Qbt4h8bjb58dXzN +4xdIDBxGCbIjTrKiLQk1V6KqDm+RsrL3+WmLs8woTluzyJAZZzCI4bbq/iDdW33EcaqBo6o8TUPQ +ur012C3dgU/+7DAu44DygyWI6X4TYchuLMyGSKrT0yVEA42tK0qLTD9K+n69gzzzxt0lGGWXH7U/ +NuTXiUQnAKC4BusvtgKUEkIlbLUq1SnoXYJfG/LRsDEkutK6Nkdgybi2BK3IBJBSHHozKFp4zNOJ +7aqpLqQ2y1AyX9v3mfBtPOeFIOYTQZDab45eYchR0NOaWTbfhm32RM20URJVVEMxqqqmwPS/FRlA +Jx3ENpymlU3eqmwdfH5Oi6eGqpeKZMiVNycNUXp+utNgnewDJz8xblt5ieVmV8qb3fSsq3ptHbBk +bsUlG33OOuqJKoVEIELquAqgptEYagUtSBlP5u4Dk/KjPcrwnOI7MXI8YmAzdoqGbkbiIyhDNhvK +gk5GmR+E80ZCimKiqohj1QjN95a8xsZs8TLskwrLcHxDIJCSrFkF9s8+Ha5quNq42sWXIabbeVxs +i0aSqooqotOjYCn8neA5ZzB5h24sNnRcZg2/hyFyGY04Qm1GopqDAoiuF0oNEVEXcS/SoaDLDOXE +bUxARy4ZBKZBBF15tEekGiL1yRtNI1ovQKL6ERV6NgsHCxu9uUr9fmmhyGc8L94RCTw0FhQVItvF +1VoKABKRovSTpEXsigWp+boH+kkd1xe03v8AZ3/x2AFcozqz4ZFWZklwGC8SCsOztqhTXVcWgEba +KvBbVV6TNN1VQV3bACXPnFHPMdZbZnVou9ut+e8vrqdmxmxXditsessCQkngTFADkKb0kifAiVRF +lzhIA1I1AyCi2XIrLKzFrMhW1Pw5X/avKq5XF0mpwuI9J4gNynXWzkMPEHhyWPw3QbFsSaIyDYFX +8osrDlbz7Vuyk/dLW7cX4bUZvUjMNE4jjjLaLQT6+pB6dgcVhHMhmcATRVBBAXizVcRGxEOk1Mqo +iCCLVVXoTYPTiFwczzmBLz6Qy3Bs9ktXgrHirg1kXBLmqiF5ubSkSMq4xH0w2yEXdFXDoiihBdf4 +l70t3C7P8n2vr9e/YFMcxMNy/GbxJZyyM65cJSk+U8H+MkgXSIVdF6q8USVVQtVFqlFRKU2Cvoty +uVlkm7BkAZnRp9t8TFt0W+yjoVQxIEKiGNVpVKKnV2CRLcLfn1vlYzPSVZryLSu+ERUF4mFXQT0O +QIqD4aqIWmhjVNYgqpsA+XPlZEtV1NuxZLPyJ+xOpGkxZAaWGHWq1jFMaFENxtKK6giSglUMhLo2 +A4PLVyizvJguuQlf7HYo0KR+HMyJdtnXQJD7raOSiYjjKhsF4dV0Khkqa1Wu5UUD3x3BYOLtybHa +nJMl3IXPGzb1I0JLuF3RSQzkm2AACuNqgtg2Ig2IiAJQUXYKw/Osv/lE+F4vfJ2vvd/e/wAfs7BX +vml+a2T5P8Ez2PnneO9r3Hs+vVsAhPfpbJfl/wAVbfivm3874D3f33r4ewRIfhh7zvQ7z+mvw3vP +R6tg7y9/D7Hdsd38F3i919j777WwNy5e/o7B/lPy9P058p7R/D/5nvNWwS0OxH3/ABcTd/VXs/b9 +GwB9/g/9S/t/s9g//9k= + --Apple-Mail-6--218366681-- \ No newline at end of file diff --git a/spec/fixtures/emails/attachment_emails/attachment_with_unquoted_name.eml b/spec/fixtures/emails/attachment_emails/attachment_with_unquoted_name.eml index 3a16c86eb..d3a384076 100644 --- a/spec/fixtures/emails/attachment_emails/attachment_with_unquoted_name.eml +++ b/spec/fixtures/emails/attachment_emails/attachment_with_unquoted_name.eml @@ -1,28 +1,28 @@ -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/plain; name=This is a test.txt -Content-Transfer-Encoding: 7bit -Content-Disposition: attachment; - filename=This is a test.txt - -Hi there. - ---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/plain; name=This is a test.txt +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment; + filename=This is a test.txt + +Hi there. + +--Apple-Mail-13-196941151-- + diff --git a/spec/fixtures/emails/error_emails/bad_encoded_subject.eml b/spec/fixtures/emails/error_emails/bad_encoded_subject.eml index a24dc4651..55770bbe9 100644 --- a/spec/fixtures/emails/error_emails/bad_encoded_subject.eml +++ b/spec/fixtures/emails/error_emails/bad_encoded_subject.eml @@ -1,3 +1,3 @@ -Subject: =?NONE?B?VEVTVA=?= - -TEST +Subject: =?NONE?B?VEVTVA=?= + +TEST diff --git a/spec/fixtures/emails/error_emails/cant_parse_from.eml b/spec/fixtures/emails/error_emails/cant_parse_from.eml index 73c047f1e..60398f1c4 100644 --- a/spec/fixtures/emails/error_emails/cant_parse_from.eml +++ b/spec/fixtures/emails/error_emails/cant_parse_from.eml @@ -1,33 +1,33 @@ -Date: Thu, 11 Jun 2009 23:25:02 -0700 -From: Apple -To: karl.baum@gmail.com -Message-Id: <7oh6b1$1clhrjk@badger-vip.apple.com> -Subject: Meet the new MacBook Pro family. Now includes 13-inch. -Mime-Version: 1.0 -Content-Type: multipart/alternative; boundary=mimepart_4b0c353551675_3d1c15b79ea5e70c1783 - - ---mimepart_4b0c353551675_3d1c15b79ea5e70c1783 -Content-Type: text/plain; charset=ISO-8859-1 -Content-Transfer-Encoding: Quoted-printable -Content-Disposition: inline - -From one solid piece of aluminum comes a MacBook Pro that's thin and light,= - beautifully streamlined, and durable. - ---mimepart_4b0c353551675_3d1c15b79ea5e70c1783 -Content-Type: text/html; charset=ISO-8859-1 -Content-Transfer-Encoding: Quoted-printable -Content-Disposition: inline - - - - - -From one solid piece of aluminum comes a MacBook Pro that's thin and light,= - beautifully streamlined, and durable.
- - ---mimepart_4b0c353551675_3d1c15b79ea5e70c1783-- - +Date: Thu, 11 Jun 2009 23:25:02 -0700 +From: Apple +To: karl.baum@gmail.com +Message-Id: <7oh6b1$1clhrjk@badger-vip.apple.com> +Subject: Meet the new MacBook Pro family. Now includes 13-inch. +Mime-Version: 1.0 +Content-Type: multipart/alternative; boundary=mimepart_4b0c353551675_3d1c15b79ea5e70c1783 + + +--mimepart_4b0c353551675_3d1c15b79ea5e70c1783 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable +Content-Disposition: inline + +From one solid piece of aluminum comes a MacBook Pro that's thin and light,= + beautifully streamlined, and durable. + +--mimepart_4b0c353551675_3d1c15b79ea5e70c1783 +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: Quoted-printable +Content-Disposition: inline + + + + + +From one solid piece of aluminum comes a MacBook Pro that's thin and light,= + beautifully streamlined, and durable.
+ + +--mimepart_4b0c353551675_3d1c15b79ea5e70c1783-- + diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_7-bit.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_7-bit.eml index 2a67beb5a..c97c00f5e 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_7-bit.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_7-bit.eml @@ -1,231 +1,231 @@ -Received: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by NAHOU-MSMBX03V.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Thu, 10 Jan 2002 16:10:15 -0600 -Received: from NAHOU-MSMSW06P.corp.enron.com ([192.168.110.228]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Thu, 10 Jan 2002 16:10:14 -0600 -Received: from mailman.enron.com (unverified) by NAHOU-MSMSW06P.corp.enron.com - (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; - Thu, 10 Jan 2002 16:10:13 -0600 -Received: from email11.quris.net (email11.quris.net [208.169.17.235]) - by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id g0AMAB920109 - for ; Thu, 10 Jan 2002 16:10:11 -0600 (CST) -Received: from localhost.quris.net (localhost [127.0.0.1]) - by email11.quris.net (8.12.1/8.12.1) with SMTP id g0AM9nNk021044 - for emclaug@enron.com; Thu, 10 Jan 2002 15:10:08 -0700 (MST) -Message-Id: <101BN3c3ce68600277550d@bounce.quris.net> -Errors-To: 101BN3c3ce68600277550d@bounce.quris.net -From: Discover Card -Reply-To: discovercard_newsflash@discover.qrs1.net -To: emclaug@enron.com -Subject: Discover(R) Card News Online - January 2002 -Date: Wed, 9 Jan 2002 19:47:50 MST -X-Quris: 8:EC:1440:0:101BN3c3ce68600277550d -MIME-Version: 1.0 -Content-Type: multipart/alternative; boundary="-----=aaaaaaaaaa0" -Return-Path: 101BN3c3ce68600277550d@bounce.quris.net - --------=aaaaaaaaaa0 -Content-Type: text/plain; charset="iso-8859-1" -Content-Transfer-Encoding: 7-bit - -DISCOVERÆ CARD News Online January 2002 DISCOVER -log in to the Account Center Internet ShopCenter(SM) - In This Edition: Be Charitable Get Organized Manage Your Finances Better - Protect Yourself Save More Money - - - DISCOVERÆ - - - -It's a new year and time for new beginnings. Let us help you out with some possible resolutions. Be sure to read on! - - - Be Charitable -$1 Million Donated to the Families of Freedom Scholarship Fundô - -We're happy to announce that the second $1 million for the Discover Card Relief Efforts program, has been donated to the Families of Freedom Scholarship Fund*. - -Families of Freedom Scholarship Fund(TM) The Fund will benefit children and spouses of airplane crew and passengers, World Trade Center and Pentagon employees and visitors, as well as firefighters, emergency medical and law enforcement personnel affected by the attacks of September 11th. - -Thanks to you, we're making quick progress toward our goal of $5 million to help America's relief efforts by doing what you do everyday -- using your Discover Card. - -Learn more about the Discover Card Donation Program. - -To make a personal donation to the Families of Freedom Scholarship Fund, visit www.familiesoffreedom.org . - - -Return to TOP - - Get Organized -Four More Ways to Manage your Account... - -Discover Interactive With the Discover Inter@ctive e-mail reminders, it's easier than ever to manage your DiscoverÆ Card Account. In addition to the Discover Inter@ctive e-mail reminders already offered -- there are now four new convenient options that will notify you when: - -A Balance Transfer has Posted -A Merchant Refund or Credit has Posted -A Purchase Exceeds a Specified Amount (set by you) -The Account Balance Exceeds a Specified Amount (set by you) - -To view a sample e-mail or to sign up for these new Discover Inter@ctive e-mails, click here today, and start enjoying the benefits right away. - - -Return to TOP - - Manage Your Finances Better -TRANSFER A BALANCE ONLINE Consolidate Your Holiday Balances and Save! - -Are all those holiday credit balances too much to keep up with? We can make it easier and help you save money! Just transfer those high-rate holiday balances to your Discover Card and get a special balance transfer rate! We can even send you an e-mail when your Balance Transfer has posted to your Discover Card account. - -Transfer a Balance or Learn more . - -Return to TOP - - Protect Yourself -KNOW FRAUD(TM) Know Fraud and Keep Your Identity Safe - -Discover Card is a proud participant in the Know Fraudô campaign, a national initiative led by the Federal Government to prevent identity theft. Learn easy ways to protect your identity, how identity thieves work and more. - -Get informed! - -Return to TOP - - Save More Money -Strunk and White Get a special Cashback Bonus award - -Barnes & Noble.com Get a 7% Cashback BonusÆ award** when you use your Discover Card to buy anything from Barnes & Noble.com. Plus, get FREE SHIPPING when you purchase two or more items in a single order. - -Hurry and stock up on all books, textbooks, movies, posters, music and more, only at Barnes & Noble.com . - -Return to TOP - -IMPORTANT INFORMATION - -PLEASE DO NOT REPLY TO THIS E-MAIL - -This e-mail was sent to: emclaug@enron.com - -You are receiving this e-mail because you are a registered Discover Card Account Center user and have subscribed to receive e-mail newsletters from Discover Card. - -To unsubscribe click here , log in to the Account Center, and change your settings. - -To update your e-mail address, or change your Account Center preferences, click here and log in. - -If you have questions about your Account, please e-mail us through Secure Messages and we will be happy to assist you. - -Discover Card takes your online security seriously. Enjoy 100% Fraud Protection against unauthorized transactions whenever you use your Discover Card, online or off. So, you can rest easy when you use your Discover Card. - -We respect your privacy. To view our privacy policy online, visit Discovercard.com - -* Discover Financial Services is not associated with CSFA. Citizens' Scholarship Foundation of America, Families of Freedom Scholarship Fund and all associated logos are trademarks of Citizens' Scholarship Foundation of America. - -** Special Cashback Bonus award Terms and Conditions: -For Cardmembers who participate in the Cashback Bonus program. This special Cashback Bonus award is separate from your annual Cashback Bonus award you may receive from Discover Card, and is not part of the Discover Card Cashback Bonus award calculation method. If, as of the date we determine whether you meet the terms of this offer, your Account is closed or delinquent, you will not receive this special Cashback Bonus award. Please allow 6 to 8 weeks for your special Cashback Bonus award to be credited to your Discover Card Account. Offer not transferable. - -©2002 Discover Bank. Member FDIC. - - - --------=aaaaaaaaaa0 -Content-Type: text/html; charset="iso-8859-1" -Content-Transfer-Encoding: 7-bit - - -DISCOVERÆ CARD News Online January 2002 DISCOVER -log in to the Account Center Internet ShopCenter(SM) - In This Edition: Be Charitable Get Organized Manage Your Finances Better - Protect Yourself Save More Money - - - DISCOVERÆ - - - -It's a new year and time for new beginnings. Let us help you out with some possible resolutions. Be sure to read on! - - - Be Charitable -$1 Million Donated to the Families of Freedom Scholarship Fundô - -We're happy to announce that the second $1 million for the Discover Card Relief Efforts program, has been donated to the Families of Freedom Scholarship Fund*. - -Families of Freedom Scholarship Fund(TM) The Fund will benefit children and spouses of airplane crew and passengers, World Trade Center and Pentagon employees and visitors, as well as firefighters, emergency medical and law enforcement personnel affected by the attacks of September 11th. - -Thanks to you, we're making quick progress toward our goal of $5 million to help America's relief efforts by doing what you do everyday -- using your Discover Card. - -Learn more about the Discover Card Donation Program. - -To make a personal donation to the Families of Freedom Scholarship Fund, visit www.familiesoffreedom.org . - - -Return to TOP - - Get Organized -Four More Ways to Manage your Account... - -Discover Interactive With the Discover Inter@ctive e-mail reminders, it's easier than ever to manage your DiscoverÆ Card Account. In addition to the Discover Inter@ctive e-mail reminders already offered -- there are now four new convenient options that will notify you when: - -A Balance Transfer has Posted -A Merchant Refund or Credit has Posted -A Purchase Exceeds a Specified Amount (set by you) -The Account Balance Exceeds a Specified Amount (set by you) - -To view a sample e-mail or to sign up for these new Discover Inter@ctive e-mails, click here today, and start enjoying the benefits right away. - - -Return to TOP - - Manage Your Finances Better -TRANSFER A BALANCE ONLINE Consolidate Your Holiday Balances and Save! - -Are all those holiday credit balances too much to keep up with? We can make it easier and help you save money! Just transfer those high-rate holiday balances to your Discover Card and get a special balance transfer rate! We can even send you an e-mail when your Balance Transfer has posted to your Discover Card account. - -Transfer a Balance or Learn more . - -Return to TOP - - Protect Yourself -KNOW FRAUD(TM) Know Fraud and Keep Your Identity Safe - -Discover Card is a proud participant in the Know Fraudô campaign, a national initiative led by the Federal Government to prevent identity theft. Learn easy ways to protect your identity, how identity thieves work and more. - -Get informed! - -Return to TOP - - Save More Money -Strunk and White Get a special Cashback Bonus award - -Barnes & Noble.com Get a 7% Cashback BonusÆ award** when you use your Discover Card to buy anything from Barnes & Noble.com. Plus, get FREE SHIPPING when you purchase two or more items in a single order. - -Hurry and stock up on all books, textbooks, movies, posters, music and more, only at Barnes & Noble.com . - -Return to TOP - -IMPORTANT INFORMATION - -PLEASE DO NOT REPLY TO THIS E-MAIL - -This e-mail was sent to: emclaug@enron.com - -You are receiving this e-mail because you are a registered Discover Card Account Center user and have subscribed to receive e-mail newsletters from Discover Card. - -To unsubscribe click here , log in to the Account Center, and change your settings. - -To update your e-mail address, or change your Account Center preferences, click here and log in. - -If you have questions about your Account, please e-mail us through Secure Messages and we will be happy to assist you. - -Discover Card takes your online security seriously. Enjoy 100% Fraud Protection against unauthorized transactions whenever you use your Discover Card, online or off. So, you can rest easy when you use your Discover Card. - -We respect your privacy. To view our privacy policy online, visit Discovercard.com - -* Discover Financial Services is not associated with CSFA. Citizens' Scholarship Foundation of America, Families of Freedom Scholarship Fund and all associated logos are trademarks of Citizens' Scholarship Foundation of America. - -** Special Cashback Bonus award Terms and Conditions: -For Cardmembers who participate in the Cashback Bonus program. This special Cashback Bonus award is separate from your annual Cashback Bonus award you may receive from Discover Card, and is not part of the Discover Card Cashback Bonus award calculation method. If, as of the date we determine whether you meet the terms of this offer, your Account is closed or delinquent, you will not receive this special Cashback Bonus award. Please allow 6 to 8 weeks for your special Cashback Bonus award to be credited to your Discover Card Account. Offer not transferable. - -©2002 Discover Bank. Member FDIC. - - - --------=aaaaaaaaaa0-- +Received: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by NAHOU-MSMBX03V.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Thu, 10 Jan 2002 16:10:15 -0600 +Received: from NAHOU-MSMSW06P.corp.enron.com ([192.168.110.228]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Thu, 10 Jan 2002 16:10:14 -0600 +Received: from mailman.enron.com (unverified) by NAHOU-MSMSW06P.corp.enron.com + (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; + Thu, 10 Jan 2002 16:10:13 -0600 +Received: from email11.quris.net (email11.quris.net [208.169.17.235]) + by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id g0AMAB920109 + for ; Thu, 10 Jan 2002 16:10:11 -0600 (CST) +Received: from localhost.quris.net (localhost [127.0.0.1]) + by email11.quris.net (8.12.1/8.12.1) with SMTP id g0AM9nNk021044 + for emclaug@enron.com; Thu, 10 Jan 2002 15:10:08 -0700 (MST) +Message-Id: <101BN3c3ce68600277550d@bounce.quris.net> +Errors-To: 101BN3c3ce68600277550d@bounce.quris.net +From: Discover Card +Reply-To: discovercard_newsflash@discover.qrs1.net +To: emclaug@enron.com +Subject: Discover(R) Card News Online - January 2002 +Date: Wed, 9 Jan 2002 19:47:50 MST +X-Quris: 8:EC:1440:0:101BN3c3ce68600277550d +MIME-Version: 1.0 +Content-Type: multipart/alternative; boundary="-----=aaaaaaaaaa0" +Return-Path: 101BN3c3ce68600277550d@bounce.quris.net + +-------=aaaaaaaaaa0 +Content-Type: text/plain; charset="iso-8859-1" +Content-Transfer-Encoding: 7-bit + +DISCOVERÆ CARD News Online January 2002 DISCOVER +log in to the Account Center Internet ShopCenter(SM) + In This Edition: Be Charitable Get Organized Manage Your Finances Better + Protect Yourself Save More Money + + + DISCOVERÆ + + + +It's a new year and time for new beginnings. Let us help you out with some possible resolutions. Be sure to read on! + + + Be Charitable +$1 Million Donated to the Families of Freedom Scholarship Fundô + +We're happy to announce that the second $1 million for the Discover Card Relief Efforts program, has been donated to the Families of Freedom Scholarship Fund*. + +Families of Freedom Scholarship Fund(TM) The Fund will benefit children and spouses of airplane crew and passengers, World Trade Center and Pentagon employees and visitors, as well as firefighters, emergency medical and law enforcement personnel affected by the attacks of September 11th. + +Thanks to you, we're making quick progress toward our goal of $5 million to help America's relief efforts by doing what you do everyday -- using your Discover Card. + +Learn more about the Discover Card Donation Program. + +To make a personal donation to the Families of Freedom Scholarship Fund, visit www.familiesoffreedom.org . + + +Return to TOP + + Get Organized +Four More Ways to Manage your Account... + +Discover Interactive With the Discover Inter@ctive e-mail reminders, it's easier than ever to manage your DiscoverÆ Card Account. In addition to the Discover Inter@ctive e-mail reminders already offered -- there are now four new convenient options that will notify you when: + +A Balance Transfer has Posted +A Merchant Refund or Credit has Posted +A Purchase Exceeds a Specified Amount (set by you) +The Account Balance Exceeds a Specified Amount (set by you) + +To view a sample e-mail or to sign up for these new Discover Inter@ctive e-mails, click here today, and start enjoying the benefits right away. + + +Return to TOP + + Manage Your Finances Better +TRANSFER A BALANCE ONLINE Consolidate Your Holiday Balances and Save! + +Are all those holiday credit balances too much to keep up with? We can make it easier and help you save money! Just transfer those high-rate holiday balances to your Discover Card and get a special balance transfer rate! We can even send you an e-mail when your Balance Transfer has posted to your Discover Card account. + +Transfer a Balance or Learn more . + +Return to TOP + + Protect Yourself +KNOW FRAUD(TM) Know Fraud and Keep Your Identity Safe + +Discover Card is a proud participant in the Know Fraudô campaign, a national initiative led by the Federal Government to prevent identity theft. Learn easy ways to protect your identity, how identity thieves work and more. + +Get informed! + +Return to TOP + + Save More Money +Strunk and White Get a special Cashback Bonus award + +Barnes & Noble.com Get a 7% Cashback BonusÆ award** when you use your Discover Card to buy anything from Barnes & Noble.com. Plus, get FREE SHIPPING when you purchase two or more items in a single order. + +Hurry and stock up on all books, textbooks, movies, posters, music and more, only at Barnes & Noble.com . + +Return to TOP + +IMPORTANT INFORMATION + +PLEASE DO NOT REPLY TO THIS E-MAIL + +This e-mail was sent to: emclaug@enron.com + +You are receiving this e-mail because you are a registered Discover Card Account Center user and have subscribed to receive e-mail newsletters from Discover Card. + +To unsubscribe click here , log in to the Account Center, and change your settings. + +To update your e-mail address, or change your Account Center preferences, click here and log in. + +If you have questions about your Account, please e-mail us through Secure Messages and we will be happy to assist you. + +Discover Card takes your online security seriously. Enjoy 100% Fraud Protection against unauthorized transactions whenever you use your Discover Card, online or off. So, you can rest easy when you use your Discover Card. + +We respect your privacy. To view our privacy policy online, visit Discovercard.com + +* Discover Financial Services is not associated with CSFA. Citizens' Scholarship Foundation of America, Families of Freedom Scholarship Fund and all associated logos are trademarks of Citizens' Scholarship Foundation of America. + +** Special Cashback Bonus award Terms and Conditions: +For Cardmembers who participate in the Cashback Bonus program. This special Cashback Bonus award is separate from your annual Cashback Bonus award you may receive from Discover Card, and is not part of the Discover Card Cashback Bonus award calculation method. If, as of the date we determine whether you meet the terms of this offer, your Account is closed or delinquent, you will not receive this special Cashback Bonus award. Please allow 6 to 8 weeks for your special Cashback Bonus award to be credited to your Discover Card Account. Offer not transferable. + +©2002 Discover Bank. Member FDIC. + + + +-------=aaaaaaaaaa0 +Content-Type: text/html; charset="iso-8859-1" +Content-Transfer-Encoding: 7-bit + + +DISCOVERÆ CARD News Online January 2002 DISCOVER +log in to the Account Center Internet ShopCenter(SM) + In This Edition: Be Charitable Get Organized Manage Your Finances Better + Protect Yourself Save More Money + + + DISCOVERÆ + + + +It's a new year and time for new beginnings. Let us help you out with some possible resolutions. Be sure to read on! + + + Be Charitable +$1 Million Donated to the Families of Freedom Scholarship Fundô + +We're happy to announce that the second $1 million for the Discover Card Relief Efforts program, has been donated to the Families of Freedom Scholarship Fund*. + +Families of Freedom Scholarship Fund(TM) The Fund will benefit children and spouses of airplane crew and passengers, World Trade Center and Pentagon employees and visitors, as well as firefighters, emergency medical and law enforcement personnel affected by the attacks of September 11th. + +Thanks to you, we're making quick progress toward our goal of $5 million to help America's relief efforts by doing what you do everyday -- using your Discover Card. + +Learn more about the Discover Card Donation Program. + +To make a personal donation to the Families of Freedom Scholarship Fund, visit www.familiesoffreedom.org . + + +Return to TOP + + Get Organized +Four More Ways to Manage your Account... + +Discover Interactive With the Discover Inter@ctive e-mail reminders, it's easier than ever to manage your DiscoverÆ Card Account. In addition to the Discover Inter@ctive e-mail reminders already offered -- there are now four new convenient options that will notify you when: + +A Balance Transfer has Posted +A Merchant Refund or Credit has Posted +A Purchase Exceeds a Specified Amount (set by you) +The Account Balance Exceeds a Specified Amount (set by you) + +To view a sample e-mail or to sign up for these new Discover Inter@ctive e-mails, click here today, and start enjoying the benefits right away. + + +Return to TOP + + Manage Your Finances Better +TRANSFER A BALANCE ONLINE Consolidate Your Holiday Balances and Save! + +Are all those holiday credit balances too much to keep up with? We can make it easier and help you save money! Just transfer those high-rate holiday balances to your Discover Card and get a special balance transfer rate! We can even send you an e-mail when your Balance Transfer has posted to your Discover Card account. + +Transfer a Balance or Learn more . + +Return to TOP + + Protect Yourself +KNOW FRAUD(TM) Know Fraud and Keep Your Identity Safe + +Discover Card is a proud participant in the Know Fraudô campaign, a national initiative led by the Federal Government to prevent identity theft. Learn easy ways to protect your identity, how identity thieves work and more. + +Get informed! + +Return to TOP + + Save More Money +Strunk and White Get a special Cashback Bonus award + +Barnes & Noble.com Get a 7% Cashback BonusÆ award** when you use your Discover Card to buy anything from Barnes & Noble.com. Plus, get FREE SHIPPING when you purchase two or more items in a single order. + +Hurry and stock up on all books, textbooks, movies, posters, music and more, only at Barnes & Noble.com . + +Return to TOP + +IMPORTANT INFORMATION + +PLEASE DO NOT REPLY TO THIS E-MAIL + +This e-mail was sent to: emclaug@enron.com + +You are receiving this e-mail because you are a registered Discover Card Account Center user and have subscribed to receive e-mail newsletters from Discover Card. + +To unsubscribe click here , log in to the Account Center, and change your settings. + +To update your e-mail address, or change your Account Center preferences, click here and log in. + +If you have questions about your Account, please e-mail us through Secure Messages and we will be happy to assist you. + +Discover Card takes your online security seriously. Enjoy 100% Fraud Protection against unauthorized transactions whenever you use your Discover Card, online or off. So, you can rest easy when you use your Discover Card. + +We respect your privacy. To view our privacy policy online, visit Discovercard.com + +* Discover Financial Services is not associated with CSFA. Citizens' Scholarship Foundation of America, Families of Freedom Scholarship Fund and all associated logos are trademarks of Citizens' Scholarship Foundation of America. + +** Special Cashback Bonus award Terms and Conditions: +For Cardmembers who participate in the Cashback Bonus program. This special Cashback Bonus award is separate from your annual Cashback Bonus award you may receive from Discover Card, and is not part of the Discover Card Cashback Bonus award calculation method. If, as of the date we determine whether you meet the terms of this offer, your Account is closed or delinquent, you will not receive this special Cashback Bonus award. Please allow 6 to 8 weeks for your special Cashback Bonus award to be credited to your Discover Card Account. Offer not transferable. + +©2002 Discover Bank. Member FDIC. + + + +-------=aaaaaaaaaa0-- diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_empty.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_empty.eml index c824e631a..bf0010a02 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_empty.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_empty.eml @@ -1,33 +1,33 @@ -Recieved: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by NAHOU-MSMBX03V.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Tue, 13 Nov 2001 19:08:16 -0800 -Received: from corp.enron.com ([192.168.110.228]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Tue, 13 Nov 2001 21:07:21 -0600 -Received: from mailman.enron.com (unverified) by corp.enron.com - (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; - Tue, 13 Nov 2001 21:07:19 -0600 -Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) - by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id g343Bbl58584 - for ; Tue, 13 Nov 2001 21:07:07 -0600 (CST) -Received: from unknown (HELO localhost) (youdd5o2o449465@219.133.84.88 with login) - by smtp011.mail.yahoo.com with SMTP; Wed, 14 Nov 2001 03:13:54 -0000 -MIME-Version: 1.0 -From: 3712f2@msa.hinet.net -To: brucegemini@yahoo.com.tw -Subject: 4d8119¡@(¤j¸ÉªwÄѱM½æ) ¤j®a»¡­^»y ¨C¤éÅ¥MP3 (2004¦~6¤ë¥÷) ÁcÅ餤¤å¥úºÐª© (­^»y±Ð¾Ç)¡@8afb90 -BCc: Array -Content-Type: text/html; charset="big5" -Content-Transfer-Encoding: -Message-ID: <11107978796724623> - - - -9bbf38a544f990e73cd12f3c56c60e6180edebd31d752d3997fa4c0650d6aaa338f73f155d5d382832b195b33cbbaa243830c981e12db0c9aac12db9a39836caab5058c0f5efbf326331103f9e1008c106f630fe4d33575efa5d362a28ece62c3fd2a034df2dab92e1f0f664b6179889f4f98a962e2287e336ec652475ccdf7fcdd85f8e025161d8f10c3bd9cc5701c0c7ed1ed84b5b2c01a05eee9e641da8b0

-
³nÅé«Ò°ê§ó·s¨³³t -06f630fe4d33575efa5d362a28ece62c3fd2a034df2dab92e1f0f664b6179889f4f98a962e2287e336ec652475ccdf7fcdd85f8e025161d8f10c3bd9cc5701c0c7ed1ed84b5b2c01a05eee9e641da8b09bbf38a544f990e73cd12f3c56c60e6180edebd31d752d3997fa4c0650d6aaa338f73f155d5d382832b195b33cbbaa243830c981e12db0c9aac12db9a39836caab5058c0f5efbf326331103f9e1008c1 - - - - -_______________________________________________________________________ -Yahoo! ¤u¨ã¦C - ¤º¸m¨¾¤î¼u¥Xµøµ¡¤u¯à¡I -http://toolbar.yahoo.com.hk +Recieved: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by NAHOU-MSMBX03V.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Tue, 13 Nov 2001 19:08:16 -0800 +Received: from corp.enron.com ([192.168.110.228]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Tue, 13 Nov 2001 21:07:21 -0600 +Received: from mailman.enron.com (unverified) by corp.enron.com + (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; + Tue, 13 Nov 2001 21:07:19 -0600 +Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) + by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id g343Bbl58584 + for ; Tue, 13 Nov 2001 21:07:07 -0600 (CST) +Received: from unknown (HELO localhost) (youdd5o2o449465@219.133.84.88 with login) + by smtp011.mail.yahoo.com with SMTP; Wed, 14 Nov 2001 03:13:54 -0000 +MIME-Version: 1.0 +From: 3712f2@msa.hinet.net +To: brucegemini@yahoo.com.tw +Subject: 4d8119¡@(¤j¸ÉªwÄѱM½æ) ¤j®a»¡­^»y ¨C¤éÅ¥MP3 (2004¦~6¤ë¥÷) ÁcÅ餤¤å¥úºÐª© (­^»y±Ð¾Ç)¡@8afb90 +BCc: Array +Content-Type: text/html; charset="big5" +Content-Transfer-Encoding: +Message-ID: <11107978796724623> + + + +9bbf38a544f990e73cd12f3c56c60e6180edebd31d752d3997fa4c0650d6aaa338f73f155d5d382832b195b33cbbaa243830c981e12db0c9aac12db9a39836caab5058c0f5efbf326331103f9e1008c106f630fe4d33575efa5d362a28ece62c3fd2a034df2dab92e1f0f664b6179889f4f98a962e2287e336ec652475ccdf7fcdd85f8e025161d8f10c3bd9cc5701c0c7ed1ed84b5b2c01a05eee9e641da8b0

+³nÅé«Ò°ê§ó·s¨³³t +06f630fe4d33575efa5d362a28ece62c3fd2a034df2dab92e1f0f664b6179889f4f98a962e2287e336ec652475ccdf7fcdd85f8e025161d8f10c3bd9cc5701c0c7ed1ed84b5b2c01a05eee9e641da8b09bbf38a544f990e73cd12f3c56c60e6180edebd31d752d3997fa4c0650d6aaa338f73f155d5d382832b195b33cbbaa243830c981e12db0c9aac12db9a39836caab5058c0f5efbf326331103f9e1008c1 + + + + +_______________________________________________________________________ +Yahoo! ¤u¨ã¦C - ¤º¸m¨¾¤î¼u¥Xµøµ¡¤u¯à¡I +http://toolbar.yahoo.com.hk diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_plain.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_plain.eml index 41c2a0e42..acf1f9485 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_plain.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_plain.eml @@ -1,148 +1,148 @@ -Return-Path: -Delivered-To: em-ca-bruceg-spam@em.ca -Received: (qmail 32184 invoked by uid 700); 28 Mar 2005 01:14:54 -0000 -Delivered-To: em-ca-em-ca-bruceg@em.ca -Received: (qmail 32179 invoked by uid 115); 28 Mar 2005 01:14:54 -0000 -Received: from baocqccyw@hq.lindsayelec.com by churchill by uid 64011 with qmail-scanner-1.22 - (clamdscan: 0.75-1. spamassassin: 2.63. Clear:RC:0(200.141.184.56):. - Processed in 10.454045 secs); 28 Mar 2005 01:14:54 -0000 -Received: from dial.suednet.com.br (HELO hq.lindsayelec.com) (200.141.184.56) - by churchill.factcomp.com with SMTP; 28 Mar 2005 01:14:42 -0000 -Return-path: -From: shavonda Cabral -To: -Subject: bookkeeping Get in on IGTS asap. -Date: Sun, 27 Mar 2005 19:11:59 -0600 -Reply-To: -MIME-Version: 1.0 -X-Virus-Status: Scanned by norton -Message-ID: <41314357824.13240873.93296@oxygen-k19.hq.lindsayelec.com> -Content-Type: text/plain; charset=us-ascii -Content-Transfer-Encoding: plain -Content-Length: 5102 -Lines: 125 - -acidness - - Exciting Easter Investor Alert - -Ticker:IGTS -Current:0.01 -Rating:Big Mover Next Week - -This st0ck receives our top rating - 10 out of 10 -Breaking NEWS (released last night): Intelligent - -Sports, Inc. Offers Affordable Alternative -This is the first news release the company put -out since November - this is going to be exciting -stock play - -Jump on board while you can - Don't regret It later - -About the Company: - -Youth And Amateur Sports Company Poised For Growth - -Intelligent Sports, Inc. is a publicly held company -trading on the OTC markets under the ticker symbol -ìIGTSî. Intelligent Sports will be the holding company -for several sports related businesses. Intelligent -Sports provides business units with strategic guidance -and support in the areas of marketing, sales, -sponsorships, partnerships, policy & procedures, -finance and expansion. Their initial business launch -is to develop youth and amateur sports centers -throughout the country that offers a year-round -sports calendar with emphasis on youth and amateur -sports programs and skill development. Their plan -is to expand this concept into membership-based, -multi-purpose sports facilities that will promote -a diverse range of sports programs, leagues, -tournaments, clinics, individual sports skill -development and nutritional training. - -Fresh News: - -UPLAND, Calif., Mar 22, 2005 (PRIMEZONE via COMTEX) -Participation fees for school sports programs -continues to escalate, at the same time record -obesity levels in children are being reported by -the Center for Disease Control. Intelligent Sports, -Inc. (Pink Sheets:IGTS) is working to do their part -to curb this alarming trend of by offering affordable -fitness centers to kids. - -"The time when school sports programs had enrollment -fees of $10 is fading," said former NBA star and -Intelligent Sports, Inc. board member, Reggie Theus. -"Not every parent is willing to pay $300 enrollment -fees for a sport their child is only casually -interested in; some parents can't afford to pay that -much for a sport their child excels at." - -According to the President's Council on Physical -Fitness and Sports, only 17 percent of middle and -junior high schools and 2 percent of senior high -schools require daily physical activity for all -students. Hoping to fill the gap, The Sports Zone -by Intelligent Sports will support a wide range of -membership-based after-school sports programs, -weekend leagues and tournaments promoting individual -athletic skill development, the concepts of teamwork -and discipline, and a love of the game. - -The Sports Zone opened in early October in Upland, -California. It encompasses a 10,000 square foot -facility featuring two basketball courts and caters -to court sports including basketball, volleyball, -cheerleading, and wrestling, and also has the ability -to host soccer, football and other field-related -athletic activity within the complex arena. - -+++++++++++++++++++++++++++ -IGTS is expected to Explode All Next Week Be Sure -To Get It Immediately, and profit big! -++++++++++++++++++++++++++++ - -Disclaimer - -This publication is not registered investment advisor, -The information presented above is not an offer to -buy or sell securities it contains "forward looking -statements" within the meaning of Section 27A of the -Securities Act of 1933 and Section 21B of the -Securities Exchange Act of 1934. Any statements that -express or involve discussions with respect to -predictions, goals, expectations, beliefs, plans, -projections, objectives, assumptions or future events -or performance are not statements of historical fact -and may be "forward looking statements." In compliance -with Section 17(b), the publishers of this report -disclose the holding of IGTS shares prior to the -publication of this report. Be aware of an inherent -conflict of interest resulting from such holdings -due to our intent to profit from the liquidation -of these shares. Shares may be sold at any time, -even after positive statements have been made -regarding the above company. Since we own shares, -there is an inherent conflict of interest in our -statements and opinions. Readers of this publication -are cautioned not to place undue reliance on forward -looking statements, which are based on certain -assumptions and expectations involving various risks -and uncertainties, that could cause results to differ -materially from those set forth in the forward- looking -statements. Please be advised that nothing within this -email shall constitute a solicitation or an offer to -buy or sell any security mentioned herein. This newsletter -is neither a registered investment advisor nor affiliated -with any broker or dealer. All statements made are our -express opinion only and should be treated as such. We -may own, buy and sell any securities mentioned at any -time. This report includes forward-looking statements -within the meaning of The Private Securities Litigation -Reform Act of 1995. This newsletter was paid -41 500, from third party to send this report. Please do -your own diligence before investing in any profiled company. -You may lose money from investing. caddis worktable +Return-Path: +Delivered-To: em-ca-bruceg-spam@em.ca +Received: (qmail 32184 invoked by uid 700); 28 Mar 2005 01:14:54 -0000 +Delivered-To: em-ca-em-ca-bruceg@em.ca +Received: (qmail 32179 invoked by uid 115); 28 Mar 2005 01:14:54 -0000 +Received: from baocqccyw@hq.lindsayelec.com by churchill by uid 64011 with qmail-scanner-1.22 + (clamdscan: 0.75-1. spamassassin: 2.63. Clear:RC:0(200.141.184.56):. + Processed in 10.454045 secs); 28 Mar 2005 01:14:54 -0000 +Received: from dial.suednet.com.br (HELO hq.lindsayelec.com) (200.141.184.56) + by churchill.factcomp.com with SMTP; 28 Mar 2005 01:14:42 -0000 +Return-path: +From: shavonda Cabral +To: +Subject: bookkeeping Get in on IGTS asap. +Date: Sun, 27 Mar 2005 19:11:59 -0600 +Reply-To: +MIME-Version: 1.0 +X-Virus-Status: Scanned by norton +Message-ID: <41314357824.13240873.93296@oxygen-k19.hq.lindsayelec.com> +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: plain +Content-Length: 5102 +Lines: 125 + +acidness + + Exciting Easter Investor Alert + +Ticker:IGTS +Current:0.01 +Rating:Big Mover Next Week + +This st0ck receives our top rating - 10 out of 10 +Breaking NEWS (released last night): Intelligent + +Sports, Inc. Offers Affordable Alternative +This is the first news release the company put +out since November - this is going to be exciting +stock play + +Jump on board while you can - Don't regret It later + +About the Company: + +Youth And Amateur Sports Company Poised For Growth + +Intelligent Sports, Inc. is a publicly held company +trading on the OTC markets under the ticker symbol +ìIGTSî. Intelligent Sports will be the holding company +for several sports related businesses. Intelligent +Sports provides business units with strategic guidance +and support in the areas of marketing, sales, +sponsorships, partnerships, policy & procedures, +finance and expansion. Their initial business launch +is to develop youth and amateur sports centers +throughout the country that offers a year-round +sports calendar with emphasis on youth and amateur +sports programs and skill development. Their plan +is to expand this concept into membership-based, +multi-purpose sports facilities that will promote +a diverse range of sports programs, leagues, +tournaments, clinics, individual sports skill +development and nutritional training. + +Fresh News: + +UPLAND, Calif., Mar 22, 2005 (PRIMEZONE via COMTEX) +Participation fees for school sports programs +continues to escalate, at the same time record +obesity levels in children are being reported by +the Center for Disease Control. Intelligent Sports, +Inc. (Pink Sheets:IGTS) is working to do their part +to curb this alarming trend of by offering affordable +fitness centers to kids. + +"The time when school sports programs had enrollment +fees of $10 is fading," said former NBA star and +Intelligent Sports, Inc. board member, Reggie Theus. +"Not every parent is willing to pay $300 enrollment +fees for a sport their child is only casually +interested in; some parents can't afford to pay that +much for a sport their child excels at." + +According to the President's Council on Physical +Fitness and Sports, only 17 percent of middle and +junior high schools and 2 percent of senior high +schools require daily physical activity for all +students. Hoping to fill the gap, The Sports Zone +by Intelligent Sports will support a wide range of +membership-based after-school sports programs, +weekend leagues and tournaments promoting individual +athletic skill development, the concepts of teamwork +and discipline, and a love of the game. + +The Sports Zone opened in early October in Upland, +California. It encompasses a 10,000 square foot +facility featuring two basketball courts and caters +to court sports including basketball, volleyball, +cheerleading, and wrestling, and also has the ability +to host soccer, football and other field-related +athletic activity within the complex arena. + ++++++++++++++++++++++++++++ +IGTS is expected to Explode All Next Week Be Sure +To Get It Immediately, and profit big! +++++++++++++++++++++++++++++ + +Disclaimer + +This publication is not registered investment advisor, +The information presented above is not an offer to +buy or sell securities it contains "forward looking +statements" within the meaning of Section 27A of the +Securities Act of 1933 and Section 21B of the +Securities Exchange Act of 1934. Any statements that +express or involve discussions with respect to +predictions, goals, expectations, beliefs, plans, +projections, objectives, assumptions or future events +or performance are not statements of historical fact +and may be "forward looking statements." In compliance +with Section 17(b), the publishers of this report +disclose the holding of IGTS shares prior to the +publication of this report. Be aware of an inherent +conflict of interest resulting from such holdings +due to our intent to profit from the liquidation +of these shares. Shares may be sold at any time, +even after positive statements have been made +regarding the above company. Since we own shares, +there is an inherent conflict of interest in our +statements and opinions. Readers of this publication +are cautioned not to place undue reliance on forward +looking statements, which are based on certain +assumptions and expectations involving various risks +and uncertainties, that could cause results to differ +materially from those set forth in the forward- looking +statements. Please be advised that nothing within this +email shall constitute a solicitation or an offer to +buy or sell any security mentioned herein. This newsletter +is neither a registered investment advisor nor affiliated +with any broker or dealer. All statements made are our +express opinion only and should be treated as such. We +may own, buy and sell any securities mentioned at any +time. This report includes forward-looking statements +within the meaning of The Private Securities Litigation +Reform Act of 1995. This newsletter was paid +41 500, from third party to send this report. Please do +your own diligence before investing in any profiled company. +You may lose money from investing. caddis worktable diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_qp_with_space.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_qp_with_space.eml index 133603a08..6ac317aae 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_qp_with_space.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_qp_with_space.eml @@ -1,53 +1,53 @@ -Return-Path: -Delivered-To: em-ca-bait-precedes@em.ca -Received: (qmail 7622 invoked by uid 115); 7 Nov 2004 21:30:59 -0000 -Received: from fyouizjnp@swissonline.ch by churchill by uid 64011 with qmail-scanner-1.22 - (clamdscan: 0.75-1. spamassassin: 2.63. Clear:RC:0(222.47.112.31):. - Processed in 1.163709 secs); 07 Nov 2004 21:30:59 -0000 -Received: from unknown (HELO 209.5.178.248) (222.47.112.31) - by churchill.factcomp.com with SMTP; 7 Nov 2004 21:30:57 -0000 -Message-ID: -From: "Wilmer Capps" -To: bait-passover@em.ca -Subject: Low or High Blood Pressure? We can help. -Date: Sun, 07 Nov 2004 18:23:56 -0300 -X-Mailer: gene annulus -pneumococcus-polyhedral: belgrade hanoverian lima -MIME-Version: 1.0 -Content-Type: multipart/alternative; - boundary="----=_NextPart_000_003A_5008K66J.3Z4LC80J" - -This is a multi-part message in MIME format. - -------=_NextPart_000_003A_5008K66J.3Z4LC80J -Content-Type: text/plain; - charset="iso-8859-1" -Content-Transfer-Encoding: quoted printable - -If you're in need of a good RX site for online purchases, we are your answer. - -With Tens of Thousands of happy customers who saved huge, you can't go wrong. - -http://magyar8stator.com/26 Lots More Info Here - -Above URL is for more info & if you are interested. -------=_NextPart_000_003A_5008K66J.3Z4LC80J -Content-Type: text/html; - charset="iso-8859-1" -Content-Transfer-Encoding: quoted-printable - -If you're in need of a good RX site for online purchases, we are your answ= -er.
-
-With Tens of Thousands of happy customers who saved huge, you can't go wro= -ng.
-
-Lots More Info Here
-
-
-Above URL is for more info & if you are interested.
- - - - -------=_NextPart_000_003A_5008K66J.3Z4LC80J-- +Return-Path: +Delivered-To: em-ca-bait-precedes@em.ca +Received: (qmail 7622 invoked by uid 115); 7 Nov 2004 21:30:59 -0000 +Received: from fyouizjnp@swissonline.ch by churchill by uid 64011 with qmail-scanner-1.22 + (clamdscan: 0.75-1. spamassassin: 2.63. Clear:RC:0(222.47.112.31):. + Processed in 1.163709 secs); 07 Nov 2004 21:30:59 -0000 +Received: from unknown (HELO 209.5.178.248) (222.47.112.31) + by churchill.factcomp.com with SMTP; 7 Nov 2004 21:30:57 -0000 +Message-ID: +From: "Wilmer Capps" +To: bait-passover@em.ca +Subject: Low or High Blood Pressure? We can help. +Date: Sun, 07 Nov 2004 18:23:56 -0300 +X-Mailer: gene annulus +pneumococcus-polyhedral: belgrade hanoverian lima +MIME-Version: 1.0 +Content-Type: multipart/alternative; + boundary="----=_NextPart_000_003A_5008K66J.3Z4LC80J" + +This is a multi-part message in MIME format. + +------=_NextPart_000_003A_5008K66J.3Z4LC80J +Content-Type: text/plain; + charset="iso-8859-1" +Content-Transfer-Encoding: quoted printable + +If you're in need of a good RX site for online purchases, we are your answer. + +With Tens of Thousands of happy customers who saved huge, you can't go wrong. + +http://magyar8stator.com/26 Lots More Info Here + +Above URL is for more info & if you are interested. +------=_NextPart_000_003A_5008K66J.3Z4LC80J +Content-Type: text/html; + charset="iso-8859-1" +Content-Transfer-Encoding: quoted-printable + +If you're in need of a good RX site for online purchases, we are your answ= +er.
+
+With Tens of Thousands of happy customers who saved huge, you can't go wro= +ng.
+
+Lots More Info Here
+
+
+Above URL is for more info & if you are interested.
+ + + + +------=_NextPart_000_003A_5008K66J.3Z4LC80J-- diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_spam.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_spam.eml index 9cce4f833..ab45147a2 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_spam.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_spam.eml @@ -1,44 +1,44 @@ -Received: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by napdx-msmbx01v.corp.enron.com with Microsoft SMTPSVC(5.0.2195.1600); - Sun, 19 Aug 2001 04:06:57 -0800 -Received: from corp.enron.com ([192.168.110.226]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Sun, 19 Aug 2001 06:06:02 -0600 -Received: from mailman.enron.com (unverified) by corp.enron.com - (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; - Sun, 19 Aug 2001 06:04:08 -0600 -Received: from poetrix.com ([61.146.170.133]) - by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id g343Bbl38716 - for ; Sun, 19 Aug 2001 07:03:27 -0500 (CDT) -Message-ID: <35FDF82F.D000339@poetrix.com> -Date: Sun, 19 Aug 2001 06:31:03 -0700 -From: "neal ragland" -User-Agent: AspMail 3.06 -X-Accept-Language: en-us -MIME-Version: 1.0 -To: "palmer vladi.Pimenovraud" -Suvladi.Pimenovject: For a vladi.Pimenovetter and more promising future just check eke -Content-Type: text/plain; - charset="us-ascii" -Content-Transfer-Encoding: 7vladi.Pimenovit - -middagh oldusercompare -othermachine one-twist natascha mz05 ntsoft netvladi.Pimenovr - - -We supply high quality medications vladi.Pimenovy mail order at very competitive prices -and provide a professional, convenient and affordavladi.Pimenovle means of purchasing -your presc_ription medicines online -Depresion-an"xiety, Antivladi.Pimenoviotic, Wt Loss, Women's Health, Mus-cle Relaxants, -Sleeping Aids, Allergies and Paain Relief. Your tastes will vladi.Pimenove met here with -600 medications -Hscearpomh http://fi.com.adherentgood.com/?2NX1q/vladi.Pimenoviayimh - - -more people are using it for quicker rx refill - - -When you're not with me?Well darling Im telling you now -Im no good without you anyhowAnd have I told you lately that I love you - -Or you and I, If I only had wings of a little angel - - +Received: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by napdx-msmbx01v.corp.enron.com with Microsoft SMTPSVC(5.0.2195.1600); + Sun, 19 Aug 2001 04:06:57 -0800 +Received: from corp.enron.com ([192.168.110.226]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Sun, 19 Aug 2001 06:06:02 -0600 +Received: from mailman.enron.com (unverified) by corp.enron.com + (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; + Sun, 19 Aug 2001 06:04:08 -0600 +Received: from poetrix.com ([61.146.170.133]) + by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id g343Bbl38716 + for ; Sun, 19 Aug 2001 07:03:27 -0500 (CDT) +Message-ID: <35FDF82F.D000339@poetrix.com> +Date: Sun, 19 Aug 2001 06:31:03 -0700 +From: "neal ragland" +User-Agent: AspMail 3.06 +X-Accept-Language: en-us +MIME-Version: 1.0 +To: "palmer vladi.Pimenovraud" +Suvladi.Pimenovject: For a vladi.Pimenovetter and more promising future just check eke +Content-Type: text/plain; + charset="us-ascii" +Content-Transfer-Encoding: 7vladi.Pimenovit + +middagh oldusercompare +othermachine one-twist natascha mz05 ntsoft netvladi.Pimenovr + + +We supply high quality medications vladi.Pimenovy mail order at very competitive prices +and provide a professional, convenient and affordavladi.Pimenovle means of purchasing +your presc_ription medicines online +Depresion-an"xiety, Antivladi.Pimenoviotic, Wt Loss, Women's Health, Mus-cle Relaxants, +Sleeping Aids, Allergies and Paain Relief. Your tastes will vladi.Pimenove met here with +600 medications +Hscearpomh http://fi.com.adherentgood.com/?2NX1q/vladi.Pimenoviayimh + + +more people are using it for quicker rx refill + + +When you're not with me?Well darling Im telling you now +Im no good without you anyhowAnd have I told you lately that I love you + +Or you and I, If I only had wings of a little angel + + diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_text-html.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_text-html.eml index 2868dcea3..6ac790fd2 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_text-html.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_text-html.eml @@ -1,50 +1,50 @@ -Return-Path: -Delivered-To: rait@bruce-guenter.dyndns.org -Received: (qmail 12977 invoked from network); 6 May 2005 10:58:40 -0000 -Received: from localhost (localhost [127.0.0.1]) - by bruce-guenter.dyndns.org ([192.168.1.3]); 06 May 2005 10:58:40 -0000 -Received: from zak.futurequest.net ([127.0.0.1]) - by localhost ([127.0.0.1]) - with SMTP via TCP; 06 May 2005 10:58:40 -0000 -Received: (qmail 2252 invoked from network); 6 May 2005 10:58:39 -0000 -Received: from lsne-catv-dhcp-29-115.urbanet.ch (unknown [80.238.29.115]) - by zak.futurequest.net ([69.5.6.152]) - with SMTP via TCP; 06 May 2005 10:58:29 -0000 -Received: from mail.datavalet.com (80.238.29.115) - by 80.238.29.115 (fairwayv.4) with SMTP - id <09166i58p> - (Authid: 3811297); Fri, 06 May 2005 10:52:01 -0100 -Reply-To: "chianfong cuthbert" -From: "chianfong cuthbert" -To: cvs@bruce-guenter.dyndns.org -Cc: rait@bruce-guenter.dyndns.org -Subject: RE: We will help you refinance your home. -Date: Fri, 06 May 2005 15:55:01 +0400 -MIME-Version: 1.0 -Content-Type: multipart/alternative; - boundary="--651790_269334.01570" -Content-Length: 636 -Lines: 22 - -----651790_269334.01570 -Content-Type: text/html; - charset="iso-8859-1" -Content-Transfer-Encoding: text/html - -Hello,

- -You have qualified for the lowest rate in years.
-You could get over $400,000 for as little as $500 a month.
-Low rates are fixed no matter what.

- -Please visit the link below to verify your information:
-Approval Form

- -Best Regards,
-chianfong cuthbert, Account Manager
-Reynolds Associates, LLC

-

---------------------
-if you received this in error: re-m0-ve - -----651790_269334.01570-- +Return-Path: +Delivered-To: rait@bruce-guenter.dyndns.org +Received: (qmail 12977 invoked from network); 6 May 2005 10:58:40 -0000 +Received: from localhost (localhost [127.0.0.1]) + by bruce-guenter.dyndns.org ([192.168.1.3]); 06 May 2005 10:58:40 -0000 +Received: from zak.futurequest.net ([127.0.0.1]) + by localhost ([127.0.0.1]) + with SMTP via TCP; 06 May 2005 10:58:40 -0000 +Received: (qmail 2252 invoked from network); 6 May 2005 10:58:39 -0000 +Received: from lsne-catv-dhcp-29-115.urbanet.ch (unknown [80.238.29.115]) + by zak.futurequest.net ([69.5.6.152]) + with SMTP via TCP; 06 May 2005 10:58:29 -0000 +Received: from mail.datavalet.com (80.238.29.115) + by 80.238.29.115 (fairwayv.4) with SMTP + id <09166i58p> + (Authid: 3811297); Fri, 06 May 2005 10:52:01 -0100 +Reply-To: "chianfong cuthbert" +From: "chianfong cuthbert" +To: cvs@bruce-guenter.dyndns.org +Cc: rait@bruce-guenter.dyndns.org +Subject: RE: We will help you refinance your home. +Date: Fri, 06 May 2005 15:55:01 +0400 +MIME-Version: 1.0 +Content-Type: multipart/alternative; + boundary="--651790_269334.01570" +Content-Length: 636 +Lines: 22 + +----651790_269334.01570 +Content-Type: text/html; + charset="iso-8859-1" +Content-Transfer-Encoding: text/html + +Hello,

+ +You have qualified for the lowest rate in years.
+You could get over $400,000 for as little as $500 a month.
+Low rates are fixed no matter what.

+ +Please visit the link below to verify your information:
+Approval Form

+ +Best Regards,
+chianfong cuthbert, Account Manager
+Reynolds Associates, LLC

+

+--------------------
+if you received this in error: re-m0-ve + +----651790_269334.01570-- diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_with_8bits.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_with_8bits.eml index 832d297d4..6ab00a5e9 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_with_8bits.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_with_8bits.eml @@ -1,770 +1,770 @@ -Recieved: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by NAHOU-MSMBX07V.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Wed, 5 Dec 2001 02:00:07 -0600 -Received: from corp.enron.com ([192.168.110.226]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Wed, 5 Dec 2001 02:00:19 -0600 -Received: from mailman.enron.com (unverified) by corp.enron.com - (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; - Wed, 5 Dec 2001 02:00:03 -0600 -Received: from mail2.provantage.com (adsl-64-108-84-28.dsl.akrnoh.ameritech.net [64.108.84.28]) - by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id fB57xSl15666 - for ; Wed, 5 Dec 2001 01:59:29 -0600 (CST) -Message-Id: <200112050759.fB57xSl15666@mailman.enron.com> -Received: from aaa (W3NEW [65.192.161.22]) by mail2.provantage.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) - id XBHNSC17; Tue, 4 Dec 2001 19:27:33 -0500 -Date: Tue, 04 Dec 2001 17:11:25 -0459 -MIME-Version: 1.0 -X-Mailer: J4L-GFIMailer -X-Expid: jajenardmeremesyi -To: jeff_dasovich@enron.com -Subject: The Original Advantage #e13011 -Reply-To: announcements@provantage.com -X-Priority: 3 -X-JMSavedFile: D:\HTML Mailer\Outbound 29457673512957792\mail43379.eml -Sender: "announcements@provantage.com" -From: "announcements@provantage.com" -Content-Transfer-Encoding: 8bits -Content-Type: text/html; charset="ISO-8859-1" -Return-Path: announcements@provantage.com - - - - -PROVANTAGE.COM : The Original Advantage - - - -

-
-
-

-

-
-
-
-
- - -
- - - - -
- - - - - - - - - - - - - - - - - - -
-
-
- December 04, 2001 - -

Can't - read this email? Click - here

Issue#: - e13011 -

To - unsubscribe from the 
- Original Advantage Click - here
-
(Do Not Reply to this email)

-
PROVANTAGE - Customer: jeff_dasovich@enron.com
-
-
-
-
-
-
- - - - -
-
- - -
-
-
-
-Holiday Gift -Ideas for the Computer Professional! -
-
-
- - - - -
- - - - -
-
- - - -
- - -11Mbps Wireless Cable/DSL Router
By Belkin -
- - - - -
-The Belkin Wireless Cable/DSL Gateway Router lets you share files and a broadband Internet connection among all your computers-without using cables. It's ...More -
-
-
- - - -
  $201.42
-
-
-
- - - - -
- - - - -
-
- - - -
- - -Nostromo n45 Dual Analog USB Gamepad
By Belkin -
- - - - -
-The Nostromo n45 USB game pad's advanced ergonomic design, dual analog and USB-compatibility make the n45 innovative PC game pad to hit the market in years. ...More -
-
-
- - - -
  $12.31
-
-
-
- - - - -
- - - - -
-
- - - -
- - -New!

-Plus! for Windows XP
By Microsoft -
- - - - -
-Personalize your computer experience like never before. -
Built exclusively to take advantage of the power of Windows XP, MS Plus! delivers exciting ...More -
-
-
- - - -
  $33.47
-
-
-
- - - - -
- - - - -
-
- - - -
- - -iPAQ H3670 Color Pocket PC
By Compaq -
- - - - -
-You want to do more with life? The iPAQ Pocket PC H3670 is designed to ride along on the voyage of life-in your pocket or mounted to your mountain bike. ...More -
-
-
- - - -
  $465.50
-
-
-
- - - - -
- - - - -
-
- - - -
- - -FireWire Hub 6-Port
By IOGEAR -
- - - - -
-IOGEAR's FireWire hubs provide 1394a compliant ports that support data transfer rates of 100, 200 and 400 Mbps (megabits per second), and automatically ...More -
-
-
- - - -
  $60.09
-
-
-
- - - - -
- - - - -
-
- - - -
- - -HomeConnect 10/100 Mbps Dual Speed Ethernet 5-Port
By 3Com -
- - - - -
-Share an Internet connection among several computers (Your Internet service provider may charge additional fees.). Surf Web sites, send e-mail, download ...More -
-
-
- - - -
  $41.76
-
-
-
- - - - -
- - - - -
-
- - - -
- - -New!

-Links 2001 Expansion Pack Volume 1
By Microsoft -
- - - - -
-Join PGA Tour pros Mike Weir & Keith Clearwater on 4 new courses designed for Links 2001:
  • The Canyons Course at Bighorn, Thanksgiving Point ...More -
  • -
    -
    - - - -
      $20.93
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -Mavica CD1000 Digital Cam 12Bit 2.1 Pixel 3" CD-R
    By Sony -
    - - - - -
    -Start with a high capacity, 156 MB 3" CD-R plus a high resolution, 2.1 megapixel image sensor. Attach it to a high-powered 52mm 10x optical zoom lens and ...More -
    -
    -
    - - - -
      $908.56
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -Wireless Bluetooth PC Card
    By 3Com -
    - - - - -
    -Personal Connections - Instantly -
    For spontaneous connections between your notebook PC and other Bluetooth devices, as well as "light" network ...More -
    -
    -
    - - - -
      $109.31
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -MultiSync LCD1830 18in LCD Flat Panel Display
    By NEC/Mitsubishi -
    - - - - -
    -For users who need superior image quality in a small space, the MultiSync LCD Series monitors deliver bright, sharp screen performance in a slim, lightweight ...More -
    -
    -
    - - - -
      $833.05
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -New!

    -MechCommander 2
    By Microsoft -
    - - - - -
    -Take control of an entire company of the most fearsome military machines in history - BattleMechs! -
    As a MechCommander, you command a unit of ...More -
    -
    -
    - - - -
      $24.02
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -DSP-500 Digitally-Enhanced USB Gaming/Multimedia
    By Plantronics -
    - - - - -
    -Plantronics' DSP-500 digitally-enhanced gaming/multimedia headset with full-range stereo sound. Perfect for multimedia applications such as games, CDs ...More -
    -
    -
    - - - -
      $78.99
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -RipGo! Handheld 4X6 Mini USB CD Burner/MP3 Player
    By Imation -
    - - - - -
    -Whether you're a music enthusiast or a mobile business professional, the Imation RipGO! device will satisfy the creative urges of your imagination. Designed ...More -
    -
    -
    - - - -
      $369.96
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -CD-RW Drive 16X/10X/40X USB 2.0 Drive w/USB 2.0
    By IOGEAR -
    - - - - -
    -Drive. Unlock the power of the new Hi-Speed USB 2.0. IOGEAR's IMPULSE Drive. Burns at a blazing 16x speed, allowing you to create CDs faster than ever ...More -
    -
    -
    - - - -
      $188.54
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -Spressa CRX175A-A1 Drive 24x/10x/40x Int EIDE
    By Sony -
    - - - - -
    -Receive a $30 rebate direct from Sony on SNYC97M purchases between 10/01/01 and 12/31/01. -... More - -
    -
    -
    - - - -
      $145.46
    -
    -
    -
    - - - - -
    - - - - -
    -
    - - - -
    - - -Digital Voice Recorder w/No Software
    By Sony -
    - - - - -
    -Features Include
  • World's first memory stick Digital voice recorder
  • Uses removable MS (memory stick)
  • Recording time: 63 min (SP)/131 min ...More -
  • -
    -
    - - - -
      $195.68
    -
    -
    - -
    -
    -

    -
    -
    - -
    -  
    -
    -
    -

    Web - Address: www.PROVANTAGE.com 
    -  Toll Free: 800-336-1166     Fax: -330-494-5260     email: sales@provantage.com
    -

    -
    -
    - - - - - - - - - - - - - - - - - -

    - Privacy - Policy
    | Terms & - Conditions | FREE - Catalog
    -
    - - - - -
    -
    - - -
    -

    ©2001 - PROVANTAGE Corporation, 7249 Whipple Ave. NW, North Canton, OH 44720

    Products, - prices, terms, conditions, or offers may change at any time. Company - and/or product names are generally trademarks, or registered trademarks - of their respective companies. Some promotional text may be copyrighted - by the product's manufacturer. 
    - -
    -
    - - The - Original Advantage promotional email is delivered only to customers of - PROVANTAGE Corporation. PROVANTAGE customers have purchased products in - the past and submitted their email address as part of the checkout - process. Or, customers have entered their name in the "Add to Email - List" box on the PROVANTAGE.com home page. Any customer may unsubscribe from the list at any time by going - to http://www.provantage.com/unsubscribe.htm. - The email address is permanently removed from additional promotional - electronic mailings, and will not be reactivated unless requested by the - customer.   - -
    - - - - - -
    -

    - -

    -

    -BizRate Customer Certified (GOLD) Site -

    -
    -
    - - - +Recieved: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by NAHOU-MSMBX07V.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Wed, 5 Dec 2001 02:00:07 -0600 +Received: from corp.enron.com ([192.168.110.226]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Wed, 5 Dec 2001 02:00:19 -0600 +Received: from mailman.enron.com (unverified) by corp.enron.com + (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; + Wed, 5 Dec 2001 02:00:03 -0600 +Received: from mail2.provantage.com (adsl-64-108-84-28.dsl.akrnoh.ameritech.net [64.108.84.28]) + by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id fB57xSl15666 + for ; Wed, 5 Dec 2001 01:59:29 -0600 (CST) +Message-Id: <200112050759.fB57xSl15666@mailman.enron.com> +Received: from aaa (W3NEW [65.192.161.22]) by mail2.provantage.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) + id XBHNSC17; Tue, 4 Dec 2001 19:27:33 -0500 +Date: Tue, 04 Dec 2001 17:11:25 -0459 +MIME-Version: 1.0 +X-Mailer: J4L-GFIMailer +X-Expid: jajenardmeremesyi +To: jeff_dasovich@enron.com +Subject: The Original Advantage #e13011 +Reply-To: announcements@provantage.com +X-Priority: 3 +X-JMSavedFile: D:\HTML Mailer\Outbound 29457673512957792\mail43379.eml +Sender: "announcements@provantage.com" +From: "announcements@provantage.com" +Content-Transfer-Encoding: 8bits +Content-Type: text/html; charset="ISO-8859-1" +Return-Path: announcements@provantage.com + + + + +PROVANTAGE.COM : The Original Advantage + + + +
    +
    +
    +

    +

    +
    +
    +
    +
    + + +
    + + + + +
    + + + + + + + + + + + + + + + + + + +
    +
    +
    + December 04, 2001 + +

    Can't + read this email? Click + here

    Issue#: + e13011 +

    To + unsubscribe from the 
    + Original Advantage Click + here
    +
    (Do Not Reply to this email)

    +
    PROVANTAGE + Customer: jeff_dasovich@enron.com
    +
    +
    +
    +
    +
    +
    + + + + +
    +
    + + +
    +
    +
    +
    +Holiday Gift +Ideas for the Computer Professional! +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +11Mbps Wireless Cable/DSL Router
    By Belkin +
    + + + + +
    +The Belkin Wireless Cable/DSL Gateway Router lets you share files and a broadband Internet connection among all your computers-without using cables. It's ...More +
    +
    +
    + + + +
      $201.42
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +Nostromo n45 Dual Analog USB Gamepad
    By Belkin +
    + + + + +
    +The Nostromo n45 USB game pad's advanced ergonomic design, dual analog and USB-compatibility make the n45 innovative PC game pad to hit the market in years. ...More +
    +
    +
    + + + +
      $12.31
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +New!

    +Plus! for Windows XP
    By Microsoft +
    + + + + +
    +Personalize your computer experience like never before. +
    Built exclusively to take advantage of the power of Windows XP, MS Plus! delivers exciting ...More +
    +
    +
    + + + +
      $33.47
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +iPAQ H3670 Color Pocket PC
    By Compaq +
    + + + + +
    +You want to do more with life? The iPAQ Pocket PC H3670 is designed to ride along on the voyage of life-in your pocket or mounted to your mountain bike. ...More +
    +
    +
    + + + +
      $465.50
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +FireWire Hub 6-Port
    By IOGEAR +
    + + + + +
    +IOGEAR's FireWire hubs provide 1394a compliant ports that support data transfer rates of 100, 200 and 400 Mbps (megabits per second), and automatically ...More +
    +
    +
    + + + +
      $60.09
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +HomeConnect 10/100 Mbps Dual Speed Ethernet 5-Port
    By 3Com +
    + + + + +
    +Share an Internet connection among several computers (Your Internet service provider may charge additional fees.). Surf Web sites, send e-mail, download ...More +
    +
    +
    + + + +
      $41.76
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +New!

    +Links 2001 Expansion Pack Volume 1
    By Microsoft +
    + + + + +
    +Join PGA Tour pros Mike Weir & Keith Clearwater on 4 new courses designed for Links 2001:
  • The Canyons Course at Bighorn, Thanksgiving Point ...More +
  • +
    +
    + + + +
      $20.93
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +Mavica CD1000 Digital Cam 12Bit 2.1 Pixel 3" CD-R
    By Sony +
    + + + + +
    +Start with a high capacity, 156 MB 3" CD-R plus a high resolution, 2.1 megapixel image sensor. Attach it to a high-powered 52mm 10x optical zoom lens and ...More +
    +
    +
    + + + +
      $908.56
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +Wireless Bluetooth PC Card
    By 3Com +
    + + + + +
    +Personal Connections - Instantly +
    For spontaneous connections between your notebook PC and other Bluetooth devices, as well as "light" network ...More +
    +
    +
    + + + +
      $109.31
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +MultiSync LCD1830 18in LCD Flat Panel Display
    By NEC/Mitsubishi +
    + + + + +
    +For users who need superior image quality in a small space, the MultiSync LCD Series monitors deliver bright, sharp screen performance in a slim, lightweight ...More +
    +
    +
    + + + +
      $833.05
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +New!

    +MechCommander 2
    By Microsoft +
    + + + + +
    +Take control of an entire company of the most fearsome military machines in history - BattleMechs! +
    As a MechCommander, you command a unit of ...More +
    +
    +
    + + + +
      $24.02
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +DSP-500 Digitally-Enhanced USB Gaming/Multimedia
    By Plantronics +
    + + + + +
    +Plantronics' DSP-500 digitally-enhanced gaming/multimedia headset with full-range stereo sound. Perfect for multimedia applications such as games, CDs ...More +
    +
    +
    + + + +
      $78.99
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +RipGo! Handheld 4X6 Mini USB CD Burner/MP3 Player
    By Imation +
    + + + + +
    +Whether you're a music enthusiast or a mobile business professional, the Imation RipGO! device will satisfy the creative urges of your imagination. Designed ...More +
    +
    +
    + + + +
      $369.96
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +CD-RW Drive 16X/10X/40X USB 2.0 Drive w/USB 2.0
    By IOGEAR +
    + + + + +
    +Drive. Unlock the power of the new Hi-Speed USB 2.0. IOGEAR's IMPULSE Drive. Burns at a blazing 16x speed, allowing you to create CDs faster than ever ...More +
    +
    +
    + + + +
      $188.54
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +Spressa CRX175A-A1 Drive 24x/10x/40x Int EIDE
    By Sony +
    + + + + +
    +Receive a $30 rebate direct from Sony on SNYC97M purchases between 10/01/01 and 12/31/01. +... More + +
    +
    +
    + + + +
      $145.46
    +
    +
    +
    + + + + +
    + + + + +
    +
    + + + +
    + + +Digital Voice Recorder w/No Software
    By Sony +
    + + + + +
    +Features Include
  • World's first memory stick Digital voice recorder
  • Uses removable MS (memory stick)
  • Recording time: 63 min (SP)/131 min ...More +
  • +
    +
    + + + +
      $195.68
    +
    +
    + +
    +
    +

    +
    +
    + +
    +  
    +
    +
    +

    Web + Address: www.PROVANTAGE.com 
    +  Toll Free: 800-336-1166     Fax: +330-494-5260     email: sales@provantage.com
    +

    +
    +
    + + + + + + + + + + + + + + + + + +

    + Privacy + Policy
    | Terms & + Conditions | FREE + Catalog
    +
    + + + + +
    +
    + + +
    +

    ©2001 + PROVANTAGE Corporation, 7249 Whipple Ave. NW, North Canton, OH 44720

    Products, + prices, terms, conditions, or offers may change at any time. Company + and/or product names are generally trademarks, or registered trademarks + of their respective companies. Some promotional text may be copyrighted + by the product's manufacturer. 
    + +
    +
    + + The + Original Advantage promotional email is delivered only to customers of + PROVANTAGE Corporation. PROVANTAGE customers have purchased products in + the past and submitted their email address as part of the checkout + process. Or, customers have entered their name in the "Add to Email + List" box on the PROVANTAGE.com home page. Any customer may unsubscribe from the list at any time by going + to http://www.provantage.com/unsubscribe.htm. + The email address is permanently removed from additional promotional + electronic mailings, and will not be reactivated unless requested by the + customer.   + +
    + + + + + +
    +

    + +

    +

    +BizRate Customer Certified (GOLD) Site +

    +
    +
    + + + diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_with_semi_colon.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_with_semi_colon.eml index 45d3b37cd..aa416064d 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_with_semi_colon.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_with_semi_colon.eml @@ -1,269 +1,269 @@ -Return-Path: -Delivered-To: cvs@bruce-guenter.dyndns.org -Received: (qmail 25055 invoked from network); 30 Jun 2005 03:57:11 -0000 -Received: from localhost (localhost [127.0.0.1]) - by bruce-guenter.dyndns.org ([192.168.1.3]); 30 Jun 2005 03:57:11 -0000 -Received: from zak.futurequest.net ([127.0.0.1]) - by localhost ([127.0.0.1]) - with SMTP via TCP; 30 Jun 2005 03:57:11 -0000 -Received: (qmail 20286 invoked from network); 30 Jun 2005 03:57:10 -0000 -Received: from mx-host.dot.tk (unknown [220.173.239.48]) - by zak.futurequest.net ([69.5.6.152]) - with ESMTP via TCP; 30 Jun 2005 03:57:08 -0000 -from: "Shelby" -To: -Subject: Attention -Date: Wed, 29 Jun 2005 22:57:10 -0600 -MIME-Version: 1.0 -Content-Type: multipart/alternative; - boundary="----26473166335893217" -X-Mailer: Microsoft Office Outlook, Build 11.0.5510 -Thread-Index: AcT9+CUlRgRKMiKZSj+BjT+PHEf8rQ== -X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 -Content-Length: 7044 -Lines: 244 - -This is a multi-part message in MIME format. - -------26473166335893217 -Content-Type: text/plain; - charset="us-ascii" -Content-Transfer-Encoding: 7bit - -Dear Homeowner, - - - -You have been pre-approved for a $402,000 Home Loan at a 3.45% Fixed Rate. - -This offer is being extended to you unconditionally and your credit is in no -way a factor. - - - -To take Advantage of this Limited Time opportunity all - -we ask is that you visit our Website and complete - -the 1 minute post Approval Form. - - - -Enter Here - - - -Sincerely, - - - -Esteban Tanner - -Regional CEO - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Tuuuuurn oooooff notiiificatiiiiions heeeeeeere. - - - -------26473166335893217 -Content-Type: text/html; - charset="us-ascii" -Content-Transfer-Encoding: quoted-printable; - - - - - - - - - - - - -
    - -

    Dear Homeowner,

    - -

     

    - -

    You have been pre-approved for a $402,000 Home Loan at a -3.45% Fixed Rate.

    - -

    This offer is being extended to you unconditionally and your -credit is in no way a factor.

    - -

     

    - -

    To take Advantage of this Limited Time opportunity all

    - -

    we ask is that you visit our Website and complete

    - -

    the 1 minute post Approval Form.

    - -

     

    - -

    Enter Here -

    - -

     

    - -

    Sincerely,

    - -

     

    - -

    Esteban Tanner

    - -

    Regional CEO

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

     

    - -

    Tuuuuurn oooooff notiiificatiiiiions heeeeeeere.

    - -
    - - - - - -------26473166335893217-- +Return-Path: +Delivered-To: cvs@bruce-guenter.dyndns.org +Received: (qmail 25055 invoked from network); 30 Jun 2005 03:57:11 -0000 +Received: from localhost (localhost [127.0.0.1]) + by bruce-guenter.dyndns.org ([192.168.1.3]); 30 Jun 2005 03:57:11 -0000 +Received: from zak.futurequest.net ([127.0.0.1]) + by localhost ([127.0.0.1]) + with SMTP via TCP; 30 Jun 2005 03:57:11 -0000 +Received: (qmail 20286 invoked from network); 30 Jun 2005 03:57:10 -0000 +Received: from mx-host.dot.tk (unknown [220.173.239.48]) + by zak.futurequest.net ([69.5.6.152]) + with ESMTP via TCP; 30 Jun 2005 03:57:08 -0000 +from: "Shelby" +To: +Subject: Attention +Date: Wed, 29 Jun 2005 22:57:10 -0600 +MIME-Version: 1.0 +Content-Type: multipart/alternative; + boundary="----26473166335893217" +X-Mailer: Microsoft Office Outlook, Build 11.0.5510 +Thread-Index: AcT9+CUlRgRKMiKZSj+BjT+PHEf8rQ== +X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 +Content-Length: 7044 +Lines: 244 + +This is a multi-part message in MIME format. + +------26473166335893217 +Content-Type: text/plain; + charset="us-ascii" +Content-Transfer-Encoding: 7bit + +Dear Homeowner, + + + +You have been pre-approved for a $402,000 Home Loan at a 3.45% Fixed Rate. + +This offer is being extended to you unconditionally and your credit is in no +way a factor. + + + +To take Advantage of this Limited Time opportunity all + +we ask is that you visit our Website and complete + +the 1 minute post Approval Form. + + + +Enter Here + + + +Sincerely, + + + +Esteban Tanner + +Regional CEO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Tuuuuurn oooooff notiiificatiiiiions heeeeeeere. + + + +------26473166335893217 +Content-Type: text/html; + charset="us-ascii" +Content-Transfer-Encoding: quoted-printable; + + + + + + + + + + + + +
    + +

    Dear Homeowner,

    + +

     

    + +

    You have been pre-approved for a $402,000 Home Loan at a +3.45% Fixed Rate.

    + +

    This offer is being extended to you unconditionally and your +credit is in no way a factor.

    + +

     

    + +

    To take Advantage of this Limited Time opportunity all

    + +

    we ask is that you visit our Website and complete

    + +

    the 1 minute post Approval Form.

    + +

     

    + +

    Enter Here +

    + +

     

    + +

    Sincerely,

    + +

     

    + +

    Esteban Tanner

    + +

    Regional CEO

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

    Tuuuuurn oooooff notiiificatiiiiions heeeeeeere.

    + +
    + + + + + +------26473166335893217-- diff --git a/spec/fixtures/emails/error_emails/content_transfer_encoding_x_uuencode.eml b/spec/fixtures/emails/error_emails/content_transfer_encoding_x_uuencode.eml index bb4ffa5a2..a2ea8e9cd 100644 --- a/spec/fixtures/emails/error_emails/content_transfer_encoding_x_uuencode.eml +++ b/spec/fixtures/emails/error_emails/content_transfer_encoding_x_uuencode.eml @@ -1,79 +1,79 @@ -Received: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by napdx-msmbx01v.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Thu, 10 Jan 2002 14:12:53 -0800 -Received: from NAHOU-MSMSW06P.corp.enron.com ([192.168.110.228]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); - Thu, 10 Jan 2002 16:12:52 -0600 -Received: from mailman.enron.com (unverified) by NAHOU-MSMSW06P.corp.enron.com - (Content Technologies SMTPRS 4.2.5) with ESMTP id ; - Thu, 10 Jan 2002 16:12:47 -0600 -Received: from tblexch01.transmission.bpa.gov (int.transmission.bpa.gov [206.137.58.133] (may be forged)) - by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id g0AMCB920856; - Thu, 10 Jan 2002 16:12:11 -0600 (CST) -Received: from TBLLIST1 ([206.137.58.134]) by tblexch01.transmission.bpa.gov with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) - id CRWWC3K1; Thu, 10 Jan 2002 14:11:55 -0800 -Received: from LIST.TRANSMISSION.BPA.GOV by LIST.TRANSMISSION.BPA.GOV - (LISTSERV-TCP/IP release 1.8c) with spool id 2458 for - RRGA-L@LIST.TRANSMISSION.BPA.GOV; Thu, 10 Jan 2002 14:13:50 -0800 -Received: from [207.202.136.216] (ip136.r2.d.pdx.nwlink.com [207.202.136.136]) - by comet.pacifier.com (8.11.2/8.11.1) with ESMTP id g0ALxLX06696; - Thu, 10 Jan 2002 13:59:21 -0800 (PST) -Mime-Version: 1.0 -X-Sender: lpeters@mail.pacifier.com -References: <1168BAF252B7D41194810001028D743108913C@SERVER> -Content-Type: multipart/mixed; - boundary="============_-1201422494==_============" -Message-ID: -Date: Thu, 10 Jan 2002 13:59:53 -0800 -Sender: RTO West Regional Representatives Group -From: "Lon L. Peters" -Subject: PGP Comments on RTO West Release of Dec. 14 -Comments: cc: ltopaz@gcpud.org, gary.zarker@ci.seattle.wa.us, - dgodard@gcpud.org, wdobbins@dcpud.org, drobinson@cowlitzpud.org, - bgeddes@popud.com, "Culbertson, Tim" , - kknitte@gcpud.org, paula.green@ci.seattle.wa.us, - jim.harding@ci.seattle.wa.us, ghuhta@cowlitzpud.org, - dosborn@gcpud.org, jscheel@popud.com, jim.todd@ci.seattle.wa.us, - CWAGERS@dcpud.org, ali.rodol@ci.seattle.wa.us, - kevin.clark@ci.seattle.wa.us, bessex@cowlitzpud.org, - Cindy.Wright@ci.seattle.wa.us, "Juj, Hardev" - , - "Conger, Kurt" , - "Kindley, Ray" -To: RRGA-L@LIST.RTOWEST.ORG -In-Reply-To: <1168BAF252B7D41194810001028D743108913C@SERVER> -Return-Path: owner-rrga-l@list.rtowest.org - ---============_-1201422494==_============ -Content-Type: text/plain; charset="us-ascii" ; format="flowed" - -Attached are the comments of the Public Generating Pool. --- -_________________________________ -Lon L. Peters -Northwest Economic Research, Inc. -6765 S.W. Preslynn Drive -Portland, Oregon 97225-2668 -503-203-1539 (voice) -503-203-1569 (fax) -503-709-5942 (mobile) -lpeters@pacifier.com - -NOTICE: This communication and its attachments, if any, may contain -sensitive, privileged, or other confidential information. If you are -not the intended recipient or believe that you have received this -communication in error, please notify the sender of this -communication and delete the copy you received from all storage -devices. In addition, please do not print, copy, retransmit, -forward, disseminate, or otherwise use this communication or its -attachments, if any. Thank you. - ---============_-1201422494==_============ -Content-Id: -Content-Type: application/msword; name="PGP_Cmts_on_12-14-01_Pkg.doc" - ; x-mac-type="5738424E" - ; x-mac-creator="4D535744" -Content-Disposition: attachment; filename="PGP_Cmts_on_12-14-01_Pkg.doc" - ; modification-date="Thu, 10 Jan 2002 13:58:10 -0800" -Content-Transfer-Encoding: x-uuencode - - ---============_-1201422494==_============-- +Received: from nahou-mscnx06p.corp.enron.com ([192.168.110.237]) by napdx-msmbx01v.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Thu, 10 Jan 2002 14:12:53 -0800 +Received: from NAHOU-MSMSW06P.corp.enron.com ([192.168.110.228]) by nahou-mscnx06p.corp.enron.com with Microsoft SMTPSVC(5.0.2195.2966); + Thu, 10 Jan 2002 16:12:52 -0600 +Received: from mailman.enron.com (unverified) by NAHOU-MSMSW06P.corp.enron.com + (Content Technologies SMTPRS 4.2.5) with ESMTP id ; + Thu, 10 Jan 2002 16:12:47 -0600 +Received: from tblexch01.transmission.bpa.gov (int.transmission.bpa.gov [206.137.58.133] (may be forged)) + by mailman.enron.com (8.11.4/8.11.4/corp-1.06) with ESMTP id g0AMCB920856; + Thu, 10 Jan 2002 16:12:11 -0600 (CST) +Received: from TBLLIST1 ([206.137.58.134]) by tblexch01.transmission.bpa.gov with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) + id CRWWC3K1; Thu, 10 Jan 2002 14:11:55 -0800 +Received: from LIST.TRANSMISSION.BPA.GOV by LIST.TRANSMISSION.BPA.GOV + (LISTSERV-TCP/IP release 1.8c) with spool id 2458 for + RRGA-L@LIST.TRANSMISSION.BPA.GOV; Thu, 10 Jan 2002 14:13:50 -0800 +Received: from [207.202.136.216] (ip136.r2.d.pdx.nwlink.com [207.202.136.136]) + by comet.pacifier.com (8.11.2/8.11.1) with ESMTP id g0ALxLX06696; + Thu, 10 Jan 2002 13:59:21 -0800 (PST) +Mime-Version: 1.0 +X-Sender: lpeters@mail.pacifier.com +References: <1168BAF252B7D41194810001028D743108913C@SERVER> +Content-Type: multipart/mixed; + boundary="============_-1201422494==_============" +Message-ID: +Date: Thu, 10 Jan 2002 13:59:53 -0800 +Sender: RTO West Regional Representatives Group +From: "Lon L. Peters" +Subject: PGP Comments on RTO West Release of Dec. 14 +Comments: cc: ltopaz@gcpud.org, gary.zarker@ci.seattle.wa.us, + dgodard@gcpud.org, wdobbins@dcpud.org, drobinson@cowlitzpud.org, + bgeddes@popud.com, "Culbertson, Tim" , + kknitte@gcpud.org, paula.green@ci.seattle.wa.us, + jim.harding@ci.seattle.wa.us, ghuhta@cowlitzpud.org, + dosborn@gcpud.org, jscheel@popud.com, jim.todd@ci.seattle.wa.us, + CWAGERS@dcpud.org, ali.rodol@ci.seattle.wa.us, + kevin.clark@ci.seattle.wa.us, bessex@cowlitzpud.org, + Cindy.Wright@ci.seattle.wa.us, "Juj, Hardev" + , + "Conger, Kurt" , + "Kindley, Ray" +To: RRGA-L@LIST.RTOWEST.ORG +In-Reply-To: <1168BAF252B7D41194810001028D743108913C@SERVER> +Return-Path: owner-rrga-l@list.rtowest.org + +--============_-1201422494==_============ +Content-Type: text/plain; charset="us-ascii" ; format="flowed" + +Attached are the comments of the Public Generating Pool. +-- +_________________________________ +Lon L. Peters +Northwest Economic Research, Inc. +6765 S.W. Preslynn Drive +Portland, Oregon 97225-2668 +503-203-1539 (voice) +503-203-1569 (fax) +503-709-5942 (mobile) +lpeters@pacifier.com + +NOTICE: This communication and its attachments, if any, may contain +sensitive, privileged, or other confidential information. If you are +not the intended recipient or believe that you have received this +communication in error, please notify the sender of this +communication and delete the copy you received from all storage +devices. In addition, please do not print, copy, retransmit, +forward, disseminate, or otherwise use this communication or its +attachments, if any. Thank you. + +--============_-1201422494==_============ +Content-Id: +Content-Type: application/msword; name="PGP_Cmts_on_12-14-01_Pkg.doc" + ; x-mac-type="5738424E" + ; x-mac-creator="4D535744" +Content-Disposition: attachment; filename="PGP_Cmts_on_12-14-01_Pkg.doc" + ; modification-date="Thu, 10 Jan 2002 13:58:10 -0800" +Content-Transfer-Encoding: x-uuencode + + +--============_-1201422494==_============-- diff --git a/spec/fixtures/emails/error_emails/empty_group_lists.eml b/spec/fixtures/emails/error_emails/empty_group_lists.eml index 9491b16ad..214bcbfe2 100644 --- a/spec/fixtures/emails/error_emails/empty_group_lists.eml +++ b/spec/fixtures/emails/error_emails/empty_group_lists.eml @@ -1,162 +1,162 @@ -Return-Path: -Received: from murder ([unix socket]) - by i.aaa.net (Cyrus v2.2.12-Invoca-RPM-2.2.12-6.fc4) with LMTPA; - Thu, 03 Dec 2009 10:50:45 -0800 -X-Sieve: CMU Sieve 2.2 -Received: from smtp.aaa.org (unknown [10.1.1.254]) - by i.aaa.net (Postfix) with ESMTP id B789577FFC - for ; Thu, 3 Dec 2009 10:50:44 -0800 (PST) -Received: from imr-f9b5566049f9cb01.prolexic.com (unknown [10.2.2.254]) - by smtp.aaa.org (Postfix) with ESMTP id 6B026D64546 - for ; Thu, 3 Dec 2009 12:08:32 -0800 (PST) -Received: from web82107.mail.mud.yahoo.com (web82107.mail.mud.yahoo.com [209.191.84.220]) - by imr-f9b5566049f9cb01.prolexic.com (Postfix) with SMTP id 6B5392BA0459 - for ; Thu, 3 Dec 2009 10:50:23 -0800 (PST) -Received: (qmail 85490 invoked by uid 60001); 3 Dec 2009 18:50:22 -0000 -DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1259866222; bh=aBaCpZTcwSmyoRxhnNZNc5KV/Eb3zHvR3BG0svTu0C0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=cREZCCsrtGfOYR9ckj97DV792GZUX/4Hktzlm5+WBuxdD8Q4XpjRz7dZ1Rei9JOKH8gseoE6KqujBA7EulWGx/XPX5TlDxgO8c2Vk3ae/Qeh38bDJ8MZXRc3dU1w+IMykQyU+qfFKHjkS1sTE7qcmheL1JsTs+BAXtyyqJL+J+4= -DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; - s=s1024; d=sbcglobal.net; - h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; - b=nvmIZcXhl5ZMIwmDabz/TSUlgtHH5VdCGrTn1U6/zkGM1pZvwJgq/BMbY+5o+mwlMz78DrUT9TJwfx48JDz8j4swqWh1dlEfztr4S18hgoVt7RqeuIxGOfOEpa6jlzbgE04EQcKy9ePZsSgOv97IH1Oh8HU7MxPUj1KO9NaKsTA=; -Message-ID: <203751.85280.qm@web82107.mail.mud.yahoo.com> -X-YMail-OSG: M3VWGGoVM1mRrN0VVqOo_OuQD_g7jcvHWnqhUlpmVpXhEVZvd0t2zfR8Zvl5BY34dERYPAO_SdtSjPrdGHXgu8LQ7s1z74yCasGWj5jLvgVb.l8helkzU2RuUVfjxzO5AxztzNz1gt0nMG0iY4LrYoHWj1fvC6iduhm_H7LRUzBa5MezeY8soTyY1i0ugmXCgsAYu3etOBvYfwqnNmJmRBBgrgu7LB5aXqiQFTWhxKirD7cQrygLK3QPv7r4utOXt2viJDLFBgITADv.ZMOV5HL7VexNpvTIgDDxfYhDLy8F.h8nTquqIYSUUv5eMZUSbEml.QvSrtj5tjuryeWcIFTL6bHTwDBKNq_0gcEZWWbF_g6XiTjcGPVNDlVXVzni3DMOlt8_cscWGy95q_y2ArbGRrJLO5.0OQPdi6uxNIN.qXGwlijACJTlnpd1_k._CkT5_ivRiof0WAcmszBifAA8PLImnre40_vLQfGQN3cN0QfyYgv_dgVaXBhwkeuBfnthQugsAUbBcifuS7ymi37vSSTYpJ.nuHinkBsm8fVBr3FXNGZXB.YtpcxSSbvhimTtoZviodhD7zG2a1oE.X0GUT6FmsnUwVZPZkw0n_17m9.SSe8Qok8YXc9xfTKJyQAtn2yoMrS5.zMMhoQ8h26dmiXyv2N7V5SjOBYCc7ynqi7H6yPWe7FHQls_arY8vzF8xiC1THpiXJkiN4JHScNPk8aVxwY8L278d3RwSdTKa6CjDw1eIxu9XanW.eB0x3t6_VmuNcDRjhTG022kURXkA6x.UuCrKdP0eiVnSXFI0KiI9Xzhg1AMoiMPZRYDQneEPkgtMw.PJePhfVrOo.svKrGzuk5dG6PDHIqTSmd8MwlhZ56eTsDrakeo3ooVoRW_4oi9vyc7LVaJ32shn5mD5RwNyKhPHvzCAVCc3tc_AwkNqoEehTKOaxWuZc_jVuVB4bjJZsXPGeDqh - FuKqBNQHUzr8v6AeX3grpz3M_0jE2qPES2GbJEItyat4WrVzA4SerkByWZHS9xNj.j_xbqdnVznbAdftUA4GFjQMZZql1KgFqrOHnhNkp6Z1QO7IQjCDaVwTATJ5h5uEFbKdmr1QPmmFNbFQub.HwmfikVgWNBn90wUKS2CsJf2IEOHSOicDzIMoC6PWzjCXGGZHZMRcSmtaIXkZ4UYELtiQQCBRgZWh7mhV6wjjbxLE0xv5.lKPSsLzql8COylkhrnoVF2jckLWroGXHsFtEQ5qD2nhDmN.ZlJJ01c1BdE2rGCKbKNfh9qvqXYA0kt9TsfO.H_sp7NWKZmFVnVrGbszkg6xXs4Bo1ITBjxzITVenK_WwO_YPXUV2cHNAXFP88bhiRvKSS31GxaT12QR4RHrWqe0ZjkgfoO.jK9ysUx3NnVSmiDzmnENJAoYbO1Sf8JDVj5yDSCyMxvL4iI7xUBHIzq.lpr6yk1IRkE5074pxlITkHejyzljPbzIUF6OWg95Edlro_QjIQHGeEE1EzNE_JrscrjDYX6mW40CCLFu7ImZVuFmwxC11sC5MIj4KUp8TYSNj2n0WVcTt4jXzSOB4eOlRxtE9dDo3wACeEXc_dzD2BjIOpfUYnIUw2xgRN7wFpd4z6EQ2g3eEv6ny7x9sd0SEh36xG0ZC0juI7Qp0Rj6_1A_YBiIY0AODUdtV1vVuWLTq82Fj0xOhH7I5c03ZYRcJoQBpuc4GDnU.wCi3n.eb1_oHaocDz0E6b6UkpGBB.2d1SXx6BOVu1DEdm6KSg3BUeDld.GzUOUKtWbzyOYdPdedcTa4gljnujUb5tCkjpgEmz_iP0GCs7SYbTcj6AIQxAliexrcdQeNxqxS7hlNOwQmsSGyjufJ7Xrq_NnTp8cWCNUhgmtb4r_gcUjOnPJoz.YpZ8asjZ.uZOgHXpmPIsZL1gozfp_rqYzkx3NYJ8S47IMD84Fa3iVco5SWXVlUx - pF_rRHgvkNQtdMaVU5YZdEGr6OlG.CTrAlZa0IoZ0HgFtB_Lg_ -Received: from [41.222.192.69] by web82107.mail.mud.yahoo.com via HTTP; Thu, 03 Dec 2009 10:50:22 PST -X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.8.100.260964 -Date: Thu, 3 Dec 2009 10:50:22 -0800 (PST) -From: Cecil Edwards -Reply-To: western.uniontransfer1@hotmail.fr -Subject: Western Union Swift Money Transfer -To: undisclosed recipients: ; -MIME-Version: 1.0 -Content-Type: multipart/alternative; boundary="0-2052022825-1259866222=:85280" -X-CSI-MailScanner-Information: Please contact the ISP for more information -X-CSI-MailScanner: Found to be clean -X-CSI-MailScanner-SpamCheck: spam, ORDB-RBL -X-CSI-MailScanner-From: ceciledwards@sbcglobal.net -X-Spam-Status: Yes - - ---0-2052022825-1259866222=:85280 -Content-Type: text/plain; charset=iso-8859-1 -Content-Transfer-Encoding: quoted-printable - -Attention Beneficiary: -=A0 -This is to officially informed you that we have concluded arrangements to e= -ffect your payment of $1,500,000.00 United States Dollars through WESTERN U= -NION Swift Money transfer services today, but the maximum amount you will b= -e receiving every day starting from tomorrow is $5,000.00 as reflected in o= -ur transfer system daily until the funds is completely transferred. -=A0 -This special arrangement is being used to avoid all scrupulous demands by b= -oth the states and federal authorities that have previously delayed your pa= -yment till date; we shall need your maximum co-operation to ensure that str= -ictness and confidence is maintained to avoid any further delays.You are to= - discard any request asking you to send money to any agency such as courier= - company,Bank and Security Agency as there are no such and any money commit= -ted their will be regret, so be wise.=20 -=A0 -Please contact the Accredited WESTERN UNION Agent for the details of your f= -irst payment of $5,000 United States Dollars and reconfirm your correct det= -ails that you will like the first transfer to be program with such as Recei= -vers Name, destination where you will like the transfer to be send to and y= -our cell phone number for urgent communication if the need arise. -Fill your details below for reference purposes: -*NAME OF CUSTOMER: ......... -*ADDRESS: .......... -*COUNTRY: ................. -*TEL: ..................... -*OCCUPATION: .............. -=A0 -Remember your obligation to secure an International Remittance Form as stat= -ed in United Nation act of (FRT209) that will help build and renew your tra= -nsfer file for record keeping as a way of checkmating the present Economics= - crisis situations. -Contact the below Electronic Transfer unit of WESTERN UNION for immediate p= -rograming of your first transfer: -=A0 -Name: Rev.John Ntepe -Mobile:+229 97292685 -Email: (western.union1891@live.fr) or (westerrnunion_2@sify.com) - -=A0 -Regards. -Thanks and God Bless. -Mrs.Cecil Edward - - ---=20 -Filter4: This message has been scanned for viruses and -dangerous content by MailScanner, and is -believed to be clean. - - ---0-2052022825-1259866222=:85280 -Content-Type: text/html; charset=iso-8859-1 -Content-Transfer-Encoding: quoted-printable - -
    Attention = -Beneficiary:
     
    This is to officially informed you that we have concluded= - arrangements to effect your payment of $1,500,000.00 United States Dollars= - through WESTERN UNION Swift Money transfer services today, but the maximum= - amount you will be receiving every day starting from tomorrow is $5,000.00= - as reflected in our transfer system daily until the funds is completely tr= -ansferred.
     
    This special arrangement is being used to avoid all scrupul= -ous demands by both the states and federal authorities that have previously= - delayed your payment - till date; we shall need your maximum co-operation to ensure that strictne= -ss and confidence is maintained to avoid any further delays.You are to disc= -ard any request asking you to send money to any agency such as courier comp= -any,Bank and Security Agency as there are no such and any money committed t= -heir will be regret, so be wise.
     
    Please contact the Accredited WESTER= -N UNION Agent for the details of your first payment of $5,000 United States= - Dollars and reconfirm your correct details that you will like the first tr= -ansfer to be program with such as Receivers Name, destination where you wil= -l like the transfer to be send to and your cell phone number for urgent com= -munication if the need arise.
    Fill your details below for reference - purposes:
    *NAME OF CUSTOMER: .........
    *ADDRESS: ..........
    *COUNTRY: ......= -............
    *TEL: .....................
    *OCCUPATION: .............. 
    Reme= -mber your obligation to secure an International Remittance Form as stated i= -n United Nation act of (FRT209) that will help build and renew your transfe= -r file for record keeping as a way of checkmating the present Economics cri= -sis situations.
    Contact the - below Electronic Transfer unit of WESTERN UNION for immediate programing o= -f your first transfer:
     
    Name: Rev.John Ntepe

    Mobile:+229 97292685
    Email= -: (western.union1891@live.fr) or (westerrnunion_2@sify.com)

     
    Regards.
    Thanks and God Bless.

    Mrs.Cecil Edward


    --=20 -
    This message has been scanned for viruses and -
    dangerous content by -MailScanner, and is -
    believed to be clean. - - - ---0-2052022825-1259866222=:85280-- +Return-Path: +Received: from murder ([unix socket]) + by i.aaa.net (Cyrus v2.2.12-Invoca-RPM-2.2.12-6.fc4) with LMTPA; + Thu, 03 Dec 2009 10:50:45 -0800 +X-Sieve: CMU Sieve 2.2 +Received: from smtp.aaa.org (unknown [10.1.1.254]) + by i.aaa.net (Postfix) with ESMTP id B789577FFC + for ; Thu, 3 Dec 2009 10:50:44 -0800 (PST) +Received: from imr-f9b5566049f9cb01.prolexic.com (unknown [10.2.2.254]) + by smtp.aaa.org (Postfix) with ESMTP id 6B026D64546 + for ; Thu, 3 Dec 2009 12:08:32 -0800 (PST) +Received: from web82107.mail.mud.yahoo.com (web82107.mail.mud.yahoo.com [209.191.84.220]) + by imr-f9b5566049f9cb01.prolexic.com (Postfix) with SMTP id 6B5392BA0459 + for ; Thu, 3 Dec 2009 10:50:23 -0800 (PST) +Received: (qmail 85490 invoked by uid 60001); 3 Dec 2009 18:50:22 -0000 +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1259866222; bh=aBaCpZTcwSmyoRxhnNZNc5KV/Eb3zHvR3BG0svTu0C0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=cREZCCsrtGfOYR9ckj97DV792GZUX/4Hktzlm5+WBuxdD8Q4XpjRz7dZ1Rei9JOKH8gseoE6KqujBA7EulWGx/XPX5TlDxgO8c2Vk3ae/Qeh38bDJ8MZXRc3dU1w+IMykQyU+qfFKHjkS1sTE7qcmheL1JsTs+BAXtyyqJL+J+4= +DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; + s=s1024; d=sbcglobal.net; + h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; + b=nvmIZcXhl5ZMIwmDabz/TSUlgtHH5VdCGrTn1U6/zkGM1pZvwJgq/BMbY+5o+mwlMz78DrUT9TJwfx48JDz8j4swqWh1dlEfztr4S18hgoVt7RqeuIxGOfOEpa6jlzbgE04EQcKy9ePZsSgOv97IH1Oh8HU7MxPUj1KO9NaKsTA=; +Message-ID: <203751.85280.qm@web82107.mail.mud.yahoo.com> +X-YMail-OSG: M3VWGGoVM1mRrN0VVqOo_OuQD_g7jcvHWnqhUlpmVpXhEVZvd0t2zfR8Zvl5BY34dERYPAO_SdtSjPrdGHXgu8LQ7s1z74yCasGWj5jLvgVb.l8helkzU2RuUVfjxzO5AxztzNz1gt0nMG0iY4LrYoHWj1fvC6iduhm_H7LRUzBa5MezeY8soTyY1i0ugmXCgsAYu3etOBvYfwqnNmJmRBBgrgu7LB5aXqiQFTWhxKirD7cQrygLK3QPv7r4utOXt2viJDLFBgITADv.ZMOV5HL7VexNpvTIgDDxfYhDLy8F.h8nTquqIYSUUv5eMZUSbEml.QvSrtj5tjuryeWcIFTL6bHTwDBKNq_0gcEZWWbF_g6XiTjcGPVNDlVXVzni3DMOlt8_cscWGy95q_y2ArbGRrJLO5.0OQPdi6uxNIN.qXGwlijACJTlnpd1_k._CkT5_ivRiof0WAcmszBifAA8PLImnre40_vLQfGQN3cN0QfyYgv_dgVaXBhwkeuBfnthQugsAUbBcifuS7ymi37vSSTYpJ.nuHinkBsm8fVBr3FXNGZXB.YtpcxSSbvhimTtoZviodhD7zG2a1oE.X0GUT6FmsnUwVZPZkw0n_17m9.SSe8Qok8YXc9xfTKJyQAtn2yoMrS5.zMMhoQ8h26dmiXyv2N7V5SjOBYCc7ynqi7H6yPWe7FHQls_arY8vzF8xiC1THpiXJkiN4JHScNPk8aVxwY8L278d3RwSdTKa6CjDw1eIxu9XanW.eB0x3t6_VmuNcDRjhTG022kURXkA6x.UuCrKdP0eiVnSXFI0KiI9Xzhg1AMoiMPZRYDQneEPkgtMw.PJePhfVrOo.svKrGzuk5dG6PDHIqTSmd8MwlhZ56eTsDrakeo3ooVoRW_4oi9vyc7LVaJ32shn5mD5RwNyKhPHvzCAVCc3tc_AwkNqoEehTKOaxWuZc_jVuVB4bjJZsXPGeDqh + FuKqBNQHUzr8v6AeX3grpz3M_0jE2qPES2GbJEItyat4WrVzA4SerkByWZHS9xNj.j_xbqdnVznbAdftUA4GFjQMZZql1KgFqrOHnhNkp6Z1QO7IQjCDaVwTATJ5h5uEFbKdmr1QPmmFNbFQub.HwmfikVgWNBn90wUKS2CsJf2IEOHSOicDzIMoC6PWzjCXGGZHZMRcSmtaIXkZ4UYELtiQQCBRgZWh7mhV6wjjbxLE0xv5.lKPSsLzql8COylkhrnoVF2jckLWroGXHsFtEQ5qD2nhDmN.ZlJJ01c1BdE2rGCKbKNfh9qvqXYA0kt9TsfO.H_sp7NWKZmFVnVrGbszkg6xXs4Bo1ITBjxzITVenK_WwO_YPXUV2cHNAXFP88bhiRvKSS31GxaT12QR4RHrWqe0ZjkgfoO.jK9ysUx3NnVSmiDzmnENJAoYbO1Sf8JDVj5yDSCyMxvL4iI7xUBHIzq.lpr6yk1IRkE5074pxlITkHejyzljPbzIUF6OWg95Edlro_QjIQHGeEE1EzNE_JrscrjDYX6mW40CCLFu7ImZVuFmwxC11sC5MIj4KUp8TYSNj2n0WVcTt4jXzSOB4eOlRxtE9dDo3wACeEXc_dzD2BjIOpfUYnIUw2xgRN7wFpd4z6EQ2g3eEv6ny7x9sd0SEh36xG0ZC0juI7Qp0Rj6_1A_YBiIY0AODUdtV1vVuWLTq82Fj0xOhH7I5c03ZYRcJoQBpuc4GDnU.wCi3n.eb1_oHaocDz0E6b6UkpGBB.2d1SXx6BOVu1DEdm6KSg3BUeDld.GzUOUKtWbzyOYdPdedcTa4gljnujUb5tCkjpgEmz_iP0GCs7SYbTcj6AIQxAliexrcdQeNxqxS7hlNOwQmsSGyjufJ7Xrq_NnTp8cWCNUhgmtb4r_gcUjOnPJoz.YpZ8asjZ.uZOgHXpmPIsZL1gozfp_rqYzkx3NYJ8S47IMD84Fa3iVco5SWXVlUx + pF_rRHgvkNQtdMaVU5YZdEGr6OlG.CTrAlZa0IoZ0HgFtB_Lg_ +Received: from [41.222.192.69] by web82107.mail.mud.yahoo.com via HTTP; Thu, 03 Dec 2009 10:50:22 PST +X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.8.100.260964 +Date: Thu, 3 Dec 2009 10:50:22 -0800 (PST) +From: Cecil Edwards +Reply-To: western.uniontransfer1@hotmail.fr +Subject: Western Union Swift Money Transfer +To: undisclosed recipients: ; +MIME-Version: 1.0 +Content-Type: multipart/alternative; boundary="0-2052022825-1259866222=:85280" +X-CSI-MailScanner-Information: Please contact the ISP for more information +X-CSI-MailScanner: Found to be clean +X-CSI-MailScanner-SpamCheck: spam, ORDB-RBL +X-CSI-MailScanner-From: ceciledwards@sbcglobal.net +X-Spam-Status: Yes + + +--0-2052022825-1259866222=:85280 +Content-Type: text/plain; charset=iso-8859-1 +Content-Transfer-Encoding: quoted-printable + +Attention Beneficiary: +=A0 +This is to officially informed you that we have concluded arrangements to e= +ffect your payment of $1,500,000.00 United States Dollars through WESTERN U= +NION Swift Money transfer services today, but the maximum amount you will b= +e receiving every day starting from tomorrow is $5,000.00 as reflected in o= +ur transfer system daily until the funds is completely transferred. +=A0 +This special arrangement is being used to avoid all scrupulous demands by b= +oth the states and federal authorities that have previously delayed your pa= +yment till date; we shall need your maximum co-operation to ensure that str= +ictness and confidence is maintained to avoid any further delays.You are to= + discard any request asking you to send money to any agency such as courier= + company,Bank and Security Agency as there are no such and any money commit= +ted their will be regret, so be wise.=20 +=A0 +Please contact the Accredited WESTERN UNION Agent for the details of your f= +irst payment of $5,000 United States Dollars and reconfirm your correct det= +ails that you will like the first transfer to be program with such as Recei= +vers Name, destination where you will like the transfer to be send to and y= +our cell phone number for urgent communication if the need arise. +Fill your details below for reference purposes: +*NAME OF CUSTOMER: ......... +*ADDRESS: .......... +*COUNTRY: ................. +*TEL: ..................... +*OCCUPATION: .............. +=A0 +Remember your obligation to secure an International Remittance Form as stat= +ed in United Nation act of (FRT209) that will help build and renew your tra= +nsfer file for record keeping as a way of checkmating the present Economics= + crisis situations. +Contact the below Electronic Transfer unit of WESTERN UNION for immediate p= +rograming of your first transfer: +=A0 +Name: Rev.John Ntepe +Mobile:+229 97292685 +Email: (western.union1891@live.fr) or (westerrnunion_2@sify.com) + +=A0 +Regards. +Thanks and God Bless. +Mrs.Cecil Edward + + +--=20 +Filter4: This message has been scanned for viruses and +dangerous content by MailScanner, and is +believed to be clean. + + +--0-2052022825-1259866222=:85280 +Content-Type: text/html; charset=iso-8859-1 +Content-Transfer-Encoding: quoted-printable + +
    Attention = +Beneficiary:
     
    This is to officially informed you that we have concluded= + arrangements to effect your payment of $1,500,000.00 United States Dollars= + through WESTERN UNION Swift Money transfer services today, but the maximum= + amount you will be receiving every day starting from tomorrow is $5,000.00= + as reflected in our transfer system daily until the funds is completely tr= +ansferred.
     
    This special arrangement is being used to avoid all scrupul= +ous demands by both the states and federal authorities that have previously= + delayed your payment + till date; we shall need your maximum co-operation to ensure that strictne= +ss and confidence is maintained to avoid any further delays.You are to disc= +ard any request asking you to send money to any agency such as courier comp= +any,Bank and Security Agency as there are no such and any money committed t= +heir will be regret, so be wise.
     
    Please contact the Accredited WESTER= +N UNION Agent for the details of your first payment of $5,000 United States= + Dollars and reconfirm your correct details that you will like the first tr= +ansfer to be program with such as Receivers Name, destination where you wil= +l like the transfer to be send to and your cell phone number for urgent com= +munication if the need arise.
    Fill your details below for reference + purposes:
    *NAME OF CUSTOMER: .........
    *ADDRESS: ..........
    *COUNTRY: ......= +............
    *TEL: .....................
    *OCCUPATION: .............. 
    Reme= +mber your obligation to secure an International Remittance Form as stated i= +n United Nation act of (FRT209) that will help build and renew your transfe= +r file for record keeping as a way of checkmating the present Economics cri= +sis situations.
    Contact the + below Electronic Transfer unit of WESTERN UNION for immediate programing o= +f your first transfer:
     
    Name: Rev.John Ntepe

    Mobile:+229 97292685
    Email= +: (western.union1891@live.fr) or (westerrnunion_2@sify.com)

     
    Regards.
    Thanks and God Bless.

    Mrs.Cecil Edward


    --=20 +
    This message has been scanned for viruses and +
    dangerous content by +MailScanner, and is +
    believed to be clean. + + + +--0-2052022825-1259866222=:85280-- diff --git a/spec/fixtures/emails/error_emails/empty_in_reply_to.eml b/spec/fixtures/emails/error_emails/empty_in_reply_to.eml index 531bbe579..0b8323ef5 100644 --- a/spec/fixtures/emails/error_emails/empty_in_reply_to.eml +++ b/spec/fixtures/emails/error_emails/empty_in_reply_to.eml @@ -1,52 +1,52 @@ -Return-path: -Envelope-to: abuser@r.ru -Delivery-date: Sat, 19 Sep 2009 21:41:40 +0400 -Received: from mail-fx0-f215.google.com ([209.85.220.215]:39047) - by mail.rg.com with esmtp - id 1Mp3wA-0007kA-Ic - for ; Sat, 19 Sep 2009 21:41:30 +0400 -Received: by fxm11 with SMTP id 11so1412272fxm.15 - for ; Sat, 19 Sep 2009 10:40:39 -0700 (PDT) -DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; - d=gmail.com; s=gamma; - h=domainkey-signature:received:received:from:to:subject:date - :message-id:mime-version:content-type:x-priority:x-msmail-priority - :x-mailer:importance:x-mimeole:in-reply-to; - bh=U4LmZ2XrYxpE2gzziKYLSJXvmTsl0JSdrp4OYcIw2xw=; - b=N4ZFNsnhqgG0qILwgjv0Sh0qKgSR+A5hMn60yxtSlACUDq/xQ/52pJkCuMChX0Pzxo - HaRYdiAsxyzlzmSStwtM/fAHZSNrXD0pLpeQOCi1r8ZSyQ6mKb4WgO56FFNOjCA0rLl8 - NOelymNmCIYTwuYz5Dd0PthnWL0YZPU+YUEHU= -DomainKey-Signature: a=rsa-sha1; c=nofws; - d=gmail.com; s=gamma; - h=from:to:subject:date:message-id:mime-version:content-type - :x-priority:x-msmail-priority:x-mailer:importance:x-mimeole - :in-reply-to; - b=ZTs05s6OpCmZp0GWYqGIv8xGM+AmM7+QL6SdaR45KgwCcN8sJH0SB4PI4QMFSW3+ZX - IdYVUGjqer/bEz7POPS8FOTCZW1QTkRcTHqVEFezAmotlc0VfLVSnnW9oRpzJ/UFQUWM - +Wn0vcObiGmrUPUJWWiNgBvuRnrJHk+nICCQI= -Received: by 10.86.240.9 with SMTP id n9mr2799028fgh.70.1253375382709; - Sat, 19 Sep 2009 08:49:42 -0700 (PDT) -Return-Path: -Received: from articondell (ppp85-140-104-88.pppoe.mtu-net.ru [85.140.104.88]) - by mx.google.com with ESMTPS id e11sm2485072fga.21.2009.09.19.08.49.39 - (version=SSLv3 cipher=RC4-MD5); - Sat, 19 Sep 2009 08:49:40 -0700 (PDT) -From: "Andrey Kuznetsov" -To: -Subject: illegal copy of our patient education software -Date: Sat, 19 Sep 2009 19:49:36 +0400 -Message-ID: -MIME-Version: 1.0 -Content-Type: multipart/related; - boundary="----=_NextPart_000_000A_01CA3962.51E52370" -X-Priority: 3 (Normal) -X-MSMail-Priority: Normal -X-Mailer: Microsoft Outlook, Build 10.0.4024 -Importance: Normal -X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 -In-Reply-To: -Recivied-SPF: (invalid) -RSpam-Score: 40 -List-Id: abuser@rg.com Mailing List -Reply-To: ak@g.com - +Return-path: +Envelope-to: abuser@r.ru +Delivery-date: Sat, 19 Sep 2009 21:41:40 +0400 +Received: from mail-fx0-f215.google.com ([209.85.220.215]:39047) + by mail.rg.com with esmtp + id 1Mp3wA-0007kA-Ic + for ; Sat, 19 Sep 2009 21:41:30 +0400 +Received: by fxm11 with SMTP id 11so1412272fxm.15 + for ; Sat, 19 Sep 2009 10:40:39 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=gmail.com; s=gamma; + h=domainkey-signature:received:received:from:to:subject:date + :message-id:mime-version:content-type:x-priority:x-msmail-priority + :x-mailer:importance:x-mimeole:in-reply-to; + bh=U4LmZ2XrYxpE2gzziKYLSJXvmTsl0JSdrp4OYcIw2xw=; + b=N4ZFNsnhqgG0qILwgjv0Sh0qKgSR+A5hMn60yxtSlACUDq/xQ/52pJkCuMChX0Pzxo + HaRYdiAsxyzlzmSStwtM/fAHZSNrXD0pLpeQOCi1r8ZSyQ6mKb4WgO56FFNOjCA0rLl8 + NOelymNmCIYTwuYz5Dd0PthnWL0YZPU+YUEHU= +DomainKey-Signature: a=rsa-sha1; c=nofws; + d=gmail.com; s=gamma; + h=from:to:subject:date:message-id:mime-version:content-type + :x-priority:x-msmail-priority:x-mailer:importance:x-mimeole + :in-reply-to; + b=ZTs05s6OpCmZp0GWYqGIv8xGM+AmM7+QL6SdaR45KgwCcN8sJH0SB4PI4QMFSW3+ZX + IdYVUGjqer/bEz7POPS8FOTCZW1QTkRcTHqVEFezAmotlc0VfLVSnnW9oRpzJ/UFQUWM + +Wn0vcObiGmrUPUJWWiNgBvuRnrJHk+nICCQI= +Received: by 10.86.240.9 with SMTP id n9mr2799028fgh.70.1253375382709; + Sat, 19 Sep 2009 08:49:42 -0700 (PDT) +Return-Path: +Received: from articondell (ppp85-140-104-88.pppoe.mtu-net.ru [85.140.104.88]) + by mx.google.com with ESMTPS id e11sm2485072fga.21.2009.09.19.08.49.39 + (version=SSLv3 cipher=RC4-MD5); + Sat, 19 Sep 2009 08:49:40 -0700 (PDT) +From: "Andrey Kuznetsov" +To: +Subject: illegal copy of our patient education software +Date: Sat, 19 Sep 2009 19:49:36 +0400 +Message-ID: +MIME-Version: 1.0 +Content-Type: multipart/related; + boundary="----=_NextPart_000_000A_01CA3962.51E52370" +X-Priority: 3 (Normal) +X-MSMail-Priority: Normal +X-Mailer: Microsoft Outlook, Build 10.0.4024 +Importance: Normal +X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 +In-Reply-To: +Recivied-SPF: (invalid) +RSpam-Score: 40 +List-Id: abuser@rg.com Mailing List +Reply-To: ak@g.com + diff --git a/spec/fixtures/emails/error_emails/encoding_madness.eml b/spec/fixtures/emails/error_emails/encoding_madness.eml index 77b2191c7..c6ff237a8 100644 --- a/spec/fixtures/emails/error_emails/encoding_madness.eml +++ b/spec/fixtures/emails/error_emails/encoding_madness.eml @@ -1,32 +1,32 @@ -Delivered-To: e-f5f4@app.ar-example.com -Received: by 10.2.1.1 with SMTP id p21cs62610wem; - Wed, 22 Sep 2010 00:30:55 -0700 (PDT) -Received: by 10.15.2.1 with SMTP id p24mr499372ybh.380.1285140655013; - Wed, 22 Sep 2010 00:30:55 -0700 (PDT) -Return-Path: -Received: from aquila.el-example.org ([174.1.8.2]) - by mx.google.com with ESMTP id a6si11272839ybo.18.2010.09.22.00.30.54; - Wed, 22 Sep 2010 00:30:54 -0700 (PDT) -Received-SPF: neutral (google.com: 174.1.8.2 is neither permitted nor denied by best guess record for domain of production@aquila.el-example.org) client-ip=174.1.8.2; -Authentication-Results: mx.google.com; spf=neutral (google.com: 174.1.8.2 is neither permitted nor denied by best guess record for domain of production@aquila.el-example.org) smtp.mail=production@aquila.el-example.org -Received: from aquila.el-example.org (localhost [127.0.0.1]) - by aquila.el-example.org (8.14.2/8.14.2) with ESMTP id o8M7UrfD018673 - for ; Wed, 22 Sep 2010 02:30:54 -0500 (CDT) - (envelope-from production@aquila.el-example.org) -Received: (from production@localhost) - by aquila.el-example.org (8.14.2/8.14.2/Submit) id o8M7Urh3018672; - Wed, 22 Sep 2010 02:30:53 -0500 (CDT) - (envelope-from production) -Message-Id: <201009220730.o8M7Urh3018672@aquila.el-example.org> -MIME-Version: 1.0 -Content-Disposition: inline -Content-Transfer-Encoding: quoted-printable -Content-Type: text/plain -X-Mailer: MIME::Lite 3.027 (F2.74; T1.28; A2.04; B3.07; Q3.07) -Date: Wed, 22 Sep 2010 02:30:53 -0500 -From: no-reply@crm.el-example.org -To: e-f5f4@app.ar-example.com -Reply-To: "KLAUS- HÄNSCHEL" <> -Subject: eBay Bid - 2008 Ford Super Duty F-350 DRW King Ranch Crew Cab 4x4 (156) - Stock# XXXX - +Delivered-To: e-f5f4@app.ar-example.com +Received: by 10.2.1.1 with SMTP id p21cs62610wem; + Wed, 22 Sep 2010 00:30:55 -0700 (PDT) +Received: by 10.15.2.1 with SMTP id p24mr499372ybh.380.1285140655013; + Wed, 22 Sep 2010 00:30:55 -0700 (PDT) +Return-Path: +Received: from aquila.el-example.org ([174.1.8.2]) + by mx.google.com with ESMTP id a6si11272839ybo.18.2010.09.22.00.30.54; + Wed, 22 Sep 2010 00:30:54 -0700 (PDT) +Received-SPF: neutral (google.com: 174.1.8.2 is neither permitted nor denied by best guess record for domain of production@aquila.el-example.org) client-ip=174.1.8.2; +Authentication-Results: mx.google.com; spf=neutral (google.com: 174.1.8.2 is neither permitted nor denied by best guess record for domain of production@aquila.el-example.org) smtp.mail=production@aquila.el-example.org +Received: from aquila.el-example.org (localhost [127.0.0.1]) + by aquila.el-example.org (8.14.2/8.14.2) with ESMTP id o8M7UrfD018673 + for ; Wed, 22 Sep 2010 02:30:54 -0500 (CDT) + (envelope-from production@aquila.el-example.org) +Received: (from production@localhost) + by aquila.el-example.org (8.14.2/8.14.2/Submit) id o8M7Urh3018672; + Wed, 22 Sep 2010 02:30:53 -0500 (CDT) + (envelope-from production) +Message-Id: <201009220730.o8M7Urh3018672@aquila.el-example.org> +MIME-Version: 1.0 +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable +Content-Type: text/plain +X-Mailer: MIME::Lite 3.027 (F2.74; T1.28; A2.04; B3.07; Q3.07) +Date: Wed, 22 Sep 2010 02:30:53 -0500 +From: no-reply@crm.el-example.org +To: e-f5f4@app.ar-example.com +Reply-To: "KLAUS- HÄNSCHEL" <> +Subject: eBay Bid - 2008 Ford Super Duty F-350 DRW King Ranch Crew Cab 4x4 (156) - Stock# XXXX + Body Text \ No newline at end of file diff --git a/spec/fixtures/emails/error_emails/invalid_subject_characters.eml b/spec/fixtures/emails/error_emails/invalid_subject_characters.eml index a9c95fd89..f9d365388 100644 --- a/spec/fixtures/emails/error_emails/invalid_subject_characters.eml +++ b/spec/fixtures/emails/error_emails/invalid_subject_characters.eml @@ -1,5 +1,5 @@ -From: "=?Windows-1252?B?Rm9ybWHn428gRnJlbmV0aWtwb2xpcw==?=" -To: martin@internet.ao, iris@internet.ao, support@maxnet.ao -Subject: Formao FrenetikPolis: Mega Campanha Final Vero | Cursos de Setembro - -TEST +From: "=?Windows-1252?B?Rm9ybWHn428gRnJlbmV0aWtwb2xpcw==?=" +To: martin@internet.ao, iris@internet.ao, support@maxnet.ao +Subject: Formao FrenetikPolis: Mega Campanha Final Vero | Cursos de Setembro + +TEST diff --git a/spec/fixtures/emails/error_emails/missing_body.eml b/spec/fixtures/emails/error_emails/missing_body.eml index 9156fd0b6..a67fbd9f3 100644 --- a/spec/fixtures/emails/error_emails/missing_body.eml +++ b/spec/fixtures/emails/error_emails/missing_body.eml @@ -1,16 +1,16 @@ -Message-ID: <001301c17797$9cd0ef30$a3ab620c@vaio> -From: "SCS_2" -To: -Subject: REDACTED -Date: Tue, 27 Nov 2001 15:02:35 -0800 -MIME-Version: 1.0 -Content-Type: multipart/mixed; - boundary="----=_NextPart_000_000F_01C17754.8C3CAF30" -X-Priority: 3 -X-MSMail-Priority: Normal -X-Mailer: Microsoft Outlook Express 5.00.2919.6700 -X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 -Return-Path: redacted@attglobal.net - - - +Message-ID: <001301c17797$9cd0ef30$a3ab620c@vaio> +From: "SCS_2" +To: +Subject: REDACTED +Date: Tue, 27 Nov 2001 15:02:35 -0800 +MIME-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_NextPart_000_000F_01C17754.8C3CAF30" +X-Priority: 3 +X-MSMail-Priority: Normal +X-Mailer: Microsoft Outlook Express 5.00.2919.6700 +X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 +Return-Path: redacted@attglobal.net + + + diff --git a/spec/fixtures/emails/error_emails/missing_content_disposition.eml b/spec/fixtures/emails/error_emails/missing_content_disposition.eml index b7403ebfb..a3b06969f 100644 --- a/spec/fixtures/emails/error_emails/missing_content_disposition.eml +++ b/spec/fixtures/emails/error_emails/missing_content_disposition.eml @@ -1,43 +1,43 @@ -Message-Id: <200201221435.g0MEZP927213@mailman.enron.com> -Content-Type: multipart/related; boundary="_----------=_10117101281980" -MIME-Version: 1.0 -Date: Tue, 22 Jan 2002 14:35:28 UT -Subject: Redacted -To: redacted@example.com -From: redacted@example.com -Return-Path: redacted@example.com - ---_----------=_10117101281980 -Content-Location: somefile.jpg -Content-Transfer-Encoding: base64 -Content-Type: image/jpg -Content-Disposition: -Date: Tue, 22 Jan 2002 14:35:28 UT -X-Mailer: -MIME-Version: - - -ICAKIApUaGFuayB5b3UgZm9yIHVzaW5nIG91ciBhdXRvbWF0ZWQgc2VsZiBzZXJ2aWNlIHBhc3N3 -b3JkIHJlc2V0IG9wdGlvbi4gICAgCiAKVGhlIHVzZXIgaWQgYW5kIHBhc3N3b3JkIGluIFNBUCAo -QXBvbGxvIFByb2R1Y3Rpb24gYW5kIEhSIFByb2R1Y3Rpb24pLCBlSFJvbmxpbmUsIGlCdXlpdCBh -bmQgaVBheWl0IGFyZSBhbGwgc3luY2hyb25pemVkLiAgV2hlbiB5b3UgcmVzZXQgeW91ciBwYXNz -d29yZCBpbiBlSFJvbmxpbmUsIGl0IGF1dG9tYXRpY2FsbHkgc3luY2hyb25pemVzIHRoZSBwYXNz -d29yZCBpbiB0aGUgb3RoZXIgc3lzdGVtcy4gIAogClBsZWFzZSBmb2xsb3cgdGhlIHN0ZXBzIHRv -IHJlc2V0IGFuZCBzeW5jaHJvbml6ZSB5b3VyIHBhc3N3b3Jkcy4KIAoxLiAgICAgICAgR28gdG8g -ZWhyb25saW5lLmVucm9uLmNvbQoyLiAgICAgICBDbGljayBvbiB0aGUgICBidXR0b24KMy4gICAg -ICAgRW50ZXIgeW91ciBVc2VyIElkIChTQVAgUGVyc29ubmVsIE51bWJlcikgYW5kIHRlbXBvcmFy -eSBwYXNzd29yZCAobG9jYXRlZCBhdCB0aGUgYm90dG9tIG9mIHRoaXMgZW1haWwpCjQuICAgICAg -IFlvdSB3aWxsIHRoZW4gYmUgYXNrZWQgdG8gY2hhbmdlIHlvdXIgcGFzc3dvcmQKNS4gICAgICAg -RW50ZXIgeW91ciBuZXcgcGFzc3dvcmQgdHdpY2UKNi4gICAgICAgT25jZSB5b3UgaGF2ZSBzdWNj -ZXNzZnVsbHkgY2hhbmdlZCB5b3VyIHBhc3N3b3JkIGluIGVIUm9ubGluZSwgeW91IGhhdmUgc3lu -Y2hyb25pemVkIHlvdXIgcGFzc3dvcmQgZm9yIFNBUCAoQXBvbGxvIFByb2R1Y3Rpb24gYW5kIEhS -IFByb2R1Y3Rpb24pLCBlSFJvbmxpbmUsIGlCdXlpdCBhbmQgaVBheWl0CjcuICAgICAgIElmIHlv -dSB3ZXJlIHRyeWluZyB0byBhY2Nlc3MgYW4gYXBwbGljYXRpb24gb3RoZXIgdGhhbiBlSFJvbmxp -bmUsIGNsb3NlIGVIUm9ubGluZSBhbmQgcHJvY2VlZCB0byB0aGUgZGVzaXJlZCBhcHBsaWNhdGlv -bi4gIFlvdSB3aWxsIG5vdyBiZSBhYmxlIHRvIGxvZyBpbiB3aXRoIHlvdXIgTkVXIHBhc3N3b3Jk -LgogCiBUSElTIElTIEEgR0VORVJBVEVEIEVNQUlMIC0gRE8gTk9UIFJFUExZIQogCklGIFlPVSBO -RUVEIEZVUlRIRVIgQVNTSVNUQU5DRSwgQ09OVEFDVCBUSEUgSVNDIEhFTFAgREVTSyBBVDogIDcx -My0zNDUtNDcyNwogClRoZSBwYXNzd29yZCBmb3IgeW91ciBhY2NvdW50OiBQMDA1MDA1NTMgICBo -YXMgYmVlbiByZXNldCB0bzogMTIyODIyNjYgIAogCkdvIHRvIGVIUm9ubGluZSBub3c6IGh0dHA6 -Ly9laHJvbmxpbmUuZW5yb24uY29tIDxodHRwczovL2Vocm9ubGluZS5lbnJvbi5jb20vPiAgIAoK ---_----------=_10117101281980-- +Message-Id: <200201221435.g0MEZP927213@mailman.enron.com> +Content-Type: multipart/related; boundary="_----------=_10117101281980" +MIME-Version: 1.0 +Date: Tue, 22 Jan 2002 14:35:28 UT +Subject: Redacted +To: redacted@example.com +From: redacted@example.com +Return-Path: redacted@example.com + +--_----------=_10117101281980 +Content-Location: somefile.jpg +Content-Transfer-Encoding: base64 +Content-Type: image/jpg +Content-Disposition: +Date: Tue, 22 Jan 2002 14:35:28 UT +X-Mailer: +MIME-Version: + + +ICAKIApUaGFuayB5b3UgZm9yIHVzaW5nIG91ciBhdXRvbWF0ZWQgc2VsZiBzZXJ2aWNlIHBhc3N3 +b3JkIHJlc2V0IG9wdGlvbi4gICAgCiAKVGhlIHVzZXIgaWQgYW5kIHBhc3N3b3JkIGluIFNBUCAo +QXBvbGxvIFByb2R1Y3Rpb24gYW5kIEhSIFByb2R1Y3Rpb24pLCBlSFJvbmxpbmUsIGlCdXlpdCBh +bmQgaVBheWl0IGFyZSBhbGwgc3luY2hyb25pemVkLiAgV2hlbiB5b3UgcmVzZXQgeW91ciBwYXNz +d29yZCBpbiBlSFJvbmxpbmUsIGl0IGF1dG9tYXRpY2FsbHkgc3luY2hyb25pemVzIHRoZSBwYXNz +d29yZCBpbiB0aGUgb3RoZXIgc3lzdGVtcy4gIAogClBsZWFzZSBmb2xsb3cgdGhlIHN0ZXBzIHRv +IHJlc2V0IGFuZCBzeW5jaHJvbml6ZSB5b3VyIHBhc3N3b3Jkcy4KIAoxLiAgICAgICAgR28gdG8g +ZWhyb25saW5lLmVucm9uLmNvbQoyLiAgICAgICBDbGljayBvbiB0aGUgICBidXR0b24KMy4gICAg +ICAgRW50ZXIgeW91ciBVc2VyIElkIChTQVAgUGVyc29ubmVsIE51bWJlcikgYW5kIHRlbXBvcmFy +eSBwYXNzd29yZCAobG9jYXRlZCBhdCB0aGUgYm90dG9tIG9mIHRoaXMgZW1haWwpCjQuICAgICAg +IFlvdSB3aWxsIHRoZW4gYmUgYXNrZWQgdG8gY2hhbmdlIHlvdXIgcGFzc3dvcmQKNS4gICAgICAg +RW50ZXIgeW91ciBuZXcgcGFzc3dvcmQgdHdpY2UKNi4gICAgICAgT25jZSB5b3UgaGF2ZSBzdWNj +ZXNzZnVsbHkgY2hhbmdlZCB5b3VyIHBhc3N3b3JkIGluIGVIUm9ubGluZSwgeW91IGhhdmUgc3lu +Y2hyb25pemVkIHlvdXIgcGFzc3dvcmQgZm9yIFNBUCAoQXBvbGxvIFByb2R1Y3Rpb24gYW5kIEhS +IFByb2R1Y3Rpb24pLCBlSFJvbmxpbmUsIGlCdXlpdCBhbmQgaVBheWl0CjcuICAgICAgIElmIHlv +dSB3ZXJlIHRyeWluZyB0byBhY2Nlc3MgYW4gYXBwbGljYXRpb24gb3RoZXIgdGhhbiBlSFJvbmxp +bmUsIGNsb3NlIGVIUm9ubGluZSBhbmQgcHJvY2VlZCB0byB0aGUgZGVzaXJlZCBhcHBsaWNhdGlv +bi4gIFlvdSB3aWxsIG5vdyBiZSBhYmxlIHRvIGxvZyBpbiB3aXRoIHlvdXIgTkVXIHBhc3N3b3Jk +LgogCiBUSElTIElTIEEgR0VORVJBVEVEIEVNQUlMIC0gRE8gTk9UIFJFUExZIQogCklGIFlPVSBO +RUVEIEZVUlRIRVIgQVNTSVNUQU5DRSwgQ09OVEFDVCBUSEUgSVNDIEhFTFAgREVTSyBBVDogIDcx +My0zNDUtNDcyNwogClRoZSBwYXNzd29yZCBmb3IgeW91ciBhY2NvdW50OiBQMDA1MDA1NTMgICBo +YXMgYmVlbiByZXNldCB0bzogMTIyODIyNjYgIAogCkdvIHRvIGVIUm9ubGluZSBub3c6IGh0dHA6 +Ly9laHJvbmxpbmUuZW5yb24uY29tIDxodHRwczovL2Vocm9ubGluZS5lbnJvbi5jb20vPiAgIAoK +--_----------=_10117101281980-- diff --git a/spec/fixtures/emails/error_emails/multiple_content_types.eml b/spec/fixtures/emails/error_emails/multiple_content_types.eml index 2cc5fb766..fe0c068b7 100644 --- a/spec/fixtures/emails/error_emails/multiple_content_types.eml +++ b/spec/fixtures/emails/error_emails/multiple_content_types.eml @@ -1,25 +1,25 @@ -From: -Subject: Redacted -To: -Message-ID: <105647271315.NCV17523@x263.net> -MIME-version: 1.0 -Content-Type: multipart/alternative; boundary="----_001_5973_47T00ZN9.15SY2428" -Content-type: text/plain - -This is a multi-part message in MIME format. - -------_001_5973_47T00ZN9.15SY2428 -Content-Type: text/plain; - charset="utf-8" -Content-Transfer-Encoding: 7Bit - -foo - -------_001_5973_47T00ZN9.15SY2428 -Content-Type: text/html; - charset="utf-8" -Content-Transfer-Encoding: 7Bit - -

    foo

    - -------_001_5973_47T00ZN9.15SY2428-- +From: +Subject: Redacted +To: +Message-ID: <105647271315.NCV17523@x263.net> +MIME-version: 1.0 +Content-Type: multipart/alternative; boundary="----_001_5973_47T00ZN9.15SY2428" +Content-type: text/plain + +This is a multi-part message in MIME format. + +------_001_5973_47T00ZN9.15SY2428 +Content-Type: text/plain; + charset="utf-8" +Content-Transfer-Encoding: 7Bit + +foo + +------_001_5973_47T00ZN9.15SY2428 +Content-Type: text/html; + charset="utf-8" +Content-Transfer-Encoding: 7Bit + +

    foo

    + +------_001_5973_47T00ZN9.15SY2428-- diff --git a/spec/fixtures/emails/error_emails/new_line_in_to_header.eml b/spec/fixtures/emails/error_emails/new_line_in_to_header.eml index 9f16569bd..40340657c 100644 --- a/spec/fixtures/emails/error_emails/new_line_in_to_header.eml +++ b/spec/fixtures/emails/error_emails/new_line_in_to_header.eml @@ -1,33 +1,33 @@ -Delivered-To: e-s-a-g-8718@app.ar.com -Received: by 10.2.1.1 with SMTP id c60cs12954wel; - Wed, 13 Oct 2010 07:44:39 -0700 (PDT) -Received: by 10.15.1.1 with SMTP id f12mr1139775ybe.360.1286981078364; - Wed, 13 Oct 2010 07:44:38 -0700 (PDT) -Return-Path: -Received: from services.travidiabamboo.com (services.travidiabamboo.com [72.21.1.1]) - by mx.google.com with ESMTP id v33si16714378yba.88.2010.10.13.07.44.37; - Wed, 13 Oct 2010 07:44:38 -0700 (PDT) -Received-SPF: pass (google.com: domain of l@gcn-example.com designates 72.21.1.1 as permitted sender) client-ip=72.21.1.1; -Authentication-Results: mx.google.com; spf=pass (google.com: domain of l@gcn-example.com designates 72.21.1.1 as permitted sender) smtp.mail=l@gcn-example.com -Received: from travidiabamboo.com (services [10.0.0.2]) - by services.travidiabamboo.com (Postfix) with ESMTP id A532170702; - Wed, 13 Oct 2010 07:53:04 -0700 (PDT) -Date: Wed, 13 Oct 2010 07:53:04 -0700 -From: l@gcn-example.com -To: leads@sg.dc.com, - sag@leads.gs.ry.com, - sn@example-hotmail.com, - e-s-a-g-8718@app.ar.com, - jp@t-exmaple.com, - - cc@c-l-example.com -Message-Id: <4cb5c7d0a3cce_120e..fdbed2b861958562@s.t-example.com.tmail> -Subject: [Online Lead] Online Lead #1111111 -Mime-Version: 1.0 -Content-Type: text/plain; charset=utf-8 - - - - - 2010-10-13T07:53:04-09:00 +Delivered-To: e-s-a-g-8718@app.ar.com +Received: by 10.2.1.1 with SMTP id c60cs12954wel; + Wed, 13 Oct 2010 07:44:39 -0700 (PDT) +Received: by 10.15.1.1 with SMTP id f12mr1139775ybe.360.1286981078364; + Wed, 13 Oct 2010 07:44:38 -0700 (PDT) +Return-Path: +Received: from services.travidiabamboo.com (services.travidiabamboo.com [72.21.1.1]) + by mx.google.com with ESMTP id v33si16714378yba.88.2010.10.13.07.44.37; + Wed, 13 Oct 2010 07:44:38 -0700 (PDT) +Received-SPF: pass (google.com: domain of l@gcn-example.com designates 72.21.1.1 as permitted sender) client-ip=72.21.1.1; +Authentication-Results: mx.google.com; spf=pass (google.com: domain of l@gcn-example.com designates 72.21.1.1 as permitted sender) smtp.mail=l@gcn-example.com +Received: from travidiabamboo.com (services [10.0.0.2]) + by services.travidiabamboo.com (Postfix) with ESMTP id A532170702; + Wed, 13 Oct 2010 07:53:04 -0700 (PDT) +Date: Wed, 13 Oct 2010 07:53:04 -0700 +From: l@gcn-example.com +To: leads@sg.dc.com, + sag@leads.gs.ry.com, + sn@example-hotmail.com, + e-s-a-g-8718@app.ar.com, + jp@t-exmaple.com, + + cc@c-l-example.com +Message-Id: <4cb5c7d0a3cce_120e..fdbed2b861958562@s.t-example.com.tmail> +Subject: [Online Lead] Online Lead #1111111 +Mime-Version: 1.0 +Content-Type: text/plain; charset=utf-8 + + + + + 2010-10-13T07:53:04-09:00 ... (not important) ... \ No newline at end of file diff --git a/spec/fixtures/emails/error_emails/trademark_character_in_subject.eml b/spec/fixtures/emails/error_emails/trademark_character_in_subject.eml index ae65308f1..cb659c871 100644 --- a/spec/fixtures/emails/error_emails/trademark_character_in_subject.eml +++ b/spec/fixtures/emails/error_emails/trademark_character_in_subject.eml @@ -1,35 +1,35 @@ -Delivered-To: e-r-w-a-4462@app.ar.com -Received: by 10.1.1.1 with SMTP id w10cs10896muo; - Tue, 12 Oct 2010 13:20:24 -0700 (PDT) -Received: by 10.2.1.5 with SMTP id bk15mr6105827qab.89.1286914824124; - Tue, 12 Oct 2010 13:20:24 -0700 (PDT) -Return-Path: -Received: from mail.ga-example.com (mail.ga-example.com [64.1.2.3]) - by mx.google.com with ESMTP id 13si112341247qcd.23.2010.10.12.13.20.23; - Tue, 12 Oct 2010 13:20:24 -0700 (PDT) -Received-SPF: neutral (google.com: 64.1.2.3 is neither permitted nor denied by best guess record for domain of j@yahoo-example.com) client-ip=64.1.2.3; -Authentication-Results: mx.google.com; spf=neutral (google.com: 64.1.2.3 is neither permitted nor denied by best guess record for domain of j@yahoo-example.com) smtp.mail=j@yahoo-example.com -X-MDAV-Processed: mail.ga-example.com, Tue, 12 Oct 2010 16:21:07 -0400 -X-Spam-Processed: mail.ga-example.com, Tue, 12 Oct 2010 16:21:06 -0400 -X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on - MAIL02.VD-example.com -X-Spam-Level: -X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, - FORGED_YAHOO_RCVD,INVALID_DATE,NO_RELAYS,SUBJECT_NEEDS_ENCODING - shortcircuit=no autolearn=no version=3.2.5 -Received: from GAWWW03 by ga-example.com (MDaemon PRO v11.0.3) - with ESMTP id md50004804310.msg - for ; Tue, 12 Oct 2010 16:21:05 -0400 -X-MDRemoteIP: 192.168.254.73 -X-Return-Path: j@yahoo-example.com -X-Envelope-From: j@yahoo-example.com -X-MDaemon-Deliver-To: e-r-w-a-4462@app.ar.com -Date: Tue, 12 Oct 2010 16:21:05 H0500 -Subject: GA.comô has a lead for you -To: c@ra-example.com,e-r-w-a-4462@app.ar.com,leads@ga-example.com -MIME-Version: 1.0 -Content-type: text/plain; charset=iso-8859-1 -From: j@yahoo-example.com -Message-ID: - +Delivered-To: e-r-w-a-4462@app.ar.com +Received: by 10.1.1.1 with SMTP id w10cs10896muo; + Tue, 12 Oct 2010 13:20:24 -0700 (PDT) +Received: by 10.2.1.5 with SMTP id bk15mr6105827qab.89.1286914824124; + Tue, 12 Oct 2010 13:20:24 -0700 (PDT) +Return-Path: +Received: from mail.ga-example.com (mail.ga-example.com [64.1.2.3]) + by mx.google.com with ESMTP id 13si112341247qcd.23.2010.10.12.13.20.23; + Tue, 12 Oct 2010 13:20:24 -0700 (PDT) +Received-SPF: neutral (google.com: 64.1.2.3 is neither permitted nor denied by best guess record for domain of j@yahoo-example.com) client-ip=64.1.2.3; +Authentication-Results: mx.google.com; spf=neutral (google.com: 64.1.2.3 is neither permitted nor denied by best guess record for domain of j@yahoo-example.com) smtp.mail=j@yahoo-example.com +X-MDAV-Processed: mail.ga-example.com, Tue, 12 Oct 2010 16:21:07 -0400 +X-Spam-Processed: mail.ga-example.com, Tue, 12 Oct 2010 16:21:06 -0400 +X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on + MAIL02.VD-example.com +X-Spam-Level: +X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, + FORGED_YAHOO_RCVD,INVALID_DATE,NO_RELAYS,SUBJECT_NEEDS_ENCODING + shortcircuit=no autolearn=no version=3.2.5 +Received: from GAWWW03 by ga-example.com (MDaemon PRO v11.0.3) + with ESMTP id md50004804310.msg + for ; Tue, 12 Oct 2010 16:21:05 -0400 +X-MDRemoteIP: 192.168.254.73 +X-Return-Path: j@yahoo-example.com +X-Envelope-From: j@yahoo-example.com +X-MDaemon-Deliver-To: e-r-w-a-4462@app.ar.com +Date: Tue, 12 Oct 2010 16:21:05 H0500 +Subject: GA.comô has a lead for you +To: c@ra-example.com,e-r-w-a-4462@app.ar.com,leads@ga-example.com +MIME-Version: 1.0 +Content-type: text/plain; charset=iso-8859-1 +From: j@yahoo-example.com +Message-ID: + Body Text - not important \ No newline at end of file diff --git a/spec/fixtures/emails/error_emails/weird_to_header.eml b/spec/fixtures/emails/error_emails/weird_to_header.eml index eb12d2c5d..0926b5dc1 100644 --- a/spec/fixtures/emails/error_emails/weird_to_header.eml +++ b/spec/fixtures/emails/error_emails/weird_to_header.eml @@ -1,29 +1,29 @@ -Delivered-To: e-s-a-s-2200@app.ar.com -Received: by 10.103.1.1 with SMTP id w10cs50835muo; - Thu, 14 Oct 2010 20:25:16 -0700 (PDT) -Received: by 10.150.205.4 with SMTP id c4mr736200ybg.26.1287113115711; - Thu, 14 Oct 2010 20:25:15 -0700 (PDT) -Return-Path: -Received: from i.tp.host ([172.1.1.1]) - by mx.google.com with ESMTP id s21si2123456.90.2010.10.14.20.25.15; - Thu, 14 Oct 2010 20:25:15 -0700 (PDT) -Received-SPF: neutral (google.com: 172.1.1.1 is neither permitted nor denied by best guess record for domain of anonymous@i.tp.host) client-ip=172.1.1.1; -Authentication-Results: mx.google.com; spf=neutral (google.com: 172.1.1.1 is neither permitted nor denied by best guess record for domain of anonymous@i.tp.host) smtp.mail=anonymous@i.tp.host -Received: (qmail 28454 invoked by uid 48); 14 Oct 2010 23:25:06 -0400 -Date: 14 Oct 2010 23:25:06 -0400 -Message-ID: <20101015032506.28448.qmail@i.tp.host> -From: anonymous@i.tp.host -To: , user-example@aol.com, e-s-a-s-2200@app.ar.com -Subject: - - -CONTACT: - - - - -COMMENT: - - -PAGE THEY WERE ON: - +Delivered-To: e-s-a-s-2200@app.ar.com +Received: by 10.103.1.1 with SMTP id w10cs50835muo; + Thu, 14 Oct 2010 20:25:16 -0700 (PDT) +Received: by 10.150.205.4 with SMTP id c4mr736200ybg.26.1287113115711; + Thu, 14 Oct 2010 20:25:15 -0700 (PDT) +Return-Path: +Received: from i.tp.host ([172.1.1.1]) + by mx.google.com with ESMTP id s21si2123456.90.2010.10.14.20.25.15; + Thu, 14 Oct 2010 20:25:15 -0700 (PDT) +Received-SPF: neutral (google.com: 172.1.1.1 is neither permitted nor denied by best guess record for domain of anonymous@i.tp.host) client-ip=172.1.1.1; +Authentication-Results: mx.google.com; spf=neutral (google.com: 172.1.1.1 is neither permitted nor denied by best guess record for domain of anonymous@i.tp.host) smtp.mail=anonymous@i.tp.host +Received: (qmail 28454 invoked by uid 48); 14 Oct 2010 23:25:06 -0400 +Date: 14 Oct 2010 23:25:06 -0400 +Message-ID: <20101015032506.28448.qmail@i.tp.host> +From: anonymous@i.tp.host +To: , user-example@aol.com, e-s-a-s-2200@app.ar.com +Subject: + + +CONTACT: + + + + +COMMENT: + + +PAGE THEY WERE ON: + diff --git a/spec/fixtures/emails/mime_emails/email_with_similar_boundaries.eml b/spec/fixtures/emails/mime_emails/email_with_similar_boundaries.eml index f5648284c..7b2f8e3d2 100644 --- a/spec/fixtures/emails/mime_emails/email_with_similar_boundaries.eml +++ b/spec/fixtures/emails/mime_emails/email_with_similar_boundaries.eml @@ -1,45 +1,45 @@ -Received: from xxxx.xxxxxxx.xxx (127.0.0.1) by - xxxx.xxxxxxxx.xxx (127.0.01) with Microsoft SMTP Server id - 11.1.111.1; Thu, 5 Apr 2012 01:01:01 -0700 -Message-ID: -To: -Subject: Xxxxxx -Date: Fri, 6 Apr 2012 01:01:01 +0000 -From: Xxxxx -X-Mailer: PHP/5.2.6 -Content-Type: multipart/mixed; - boundary="----=_NextPart_476c4fde88e507bb8028170e8cf47c73" -MIME-Version: 1.0 - -------=_NextPart_476c4fde88e507bb8028170e8cf47c73 -Content-Type: multipart/alternative; - boundary="----=_NextPart_476c4fde88e507bb8028170e8cf47c73_alt" - -------=_NextPart_476c4fde88e507bb8028170e8cf47c73_alt -Content-Type: text/plain; charset="utf-8" -Content-Transfer-Encoding: 8bit - -Test - -------=_NextPart_476c4fde88e507bb8028170e8cf47c73_alt -Content-Type: text/html; charset="utf-8" -Content-Transfer-Encoding: 8bit - - - -Test - -

    Test

    - - -------=_NextPart_476c4fde88e507bb8028170e8cf47c73_alt-- - -------=_NextPart_476c4fde88e507bb8028170e8cf47c73 -Content-Type: application/octetstream -Content-Transfer-Encoding: base64 -Content-Disposition: attachment; filename="LOGO.png" -Content-ID: - -SNIP - -------=_NextPart_476c4fde88e507bb8028170e8cf47c73-- +Received: from xxxx.xxxxxxx.xxx (127.0.0.1) by + xxxx.xxxxxxxx.xxx (127.0.01) with Microsoft SMTP Server id + 11.1.111.1; Thu, 5 Apr 2012 01:01:01 -0700 +Message-ID: +To: +Subject: Xxxxxx +Date: Fri, 6 Apr 2012 01:01:01 +0000 +From: Xxxxx +X-Mailer: PHP/5.2.6 +Content-Type: multipart/mixed; + boundary="----=_NextPart_476c4fde88e507bb8028170e8cf47c73" +MIME-Version: 1.0 + +------=_NextPart_476c4fde88e507bb8028170e8cf47c73 +Content-Type: multipart/alternative; + boundary="----=_NextPart_476c4fde88e507bb8028170e8cf47c73_alt" + +------=_NextPart_476c4fde88e507bb8028170e8cf47c73_alt +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Test + +------=_NextPart_476c4fde88e507bb8028170e8cf47c73_alt +Content-Type: text/html; charset="utf-8" +Content-Transfer-Encoding: 8bit + + + +Test + +

    Test

    + + +------=_NextPart_476c4fde88e507bb8028170e8cf47c73_alt-- + +------=_NextPart_476c4fde88e507bb8028170e8cf47c73 +Content-Type: application/octetstream +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="LOGO.png" +Content-ID: + +SNIP + +------=_NextPart_476c4fde88e507bb8028170e8cf47c73-- diff --git a/spec/fixtures/emails/mime_emails/raw_email11.eml b/spec/fixtures/emails/mime_emails/raw_email11.eml index c084afc77..7b6073881 100644 --- a/spec/fixtures/emails/mime_emails/raw_email11.eml +++ b/spec/fixtures/emails/mime_emails/raw_email11.eml @@ -1,34 +1,34 @@ -From xxx@xxxx.com Wed Apr 27 14:15:31 2005 -Mime-Version: 1.0 (Apple Message framework v619.2) -To: "xxxxx@xxxxx" -Message-Id: <416eaebec6d333ec6939eaf8a7d80724@xxxxx> -Content-Type: multipart/alternative; - boundary=Apple-Mail-5-1037861608 -From: "xxxxx@xxxxx" -Subject: worse when you use them. -Date: Wed, 27 Apr 2005 14:15:31 -0700 - - - - ---Apple-Mail-5-1037861608 -Content-Transfer-Encoding: 7bit -Content-Type: text/plain; - charset=US-ASCII; - format=flowed - - -XXXXX Xxxxx - ---Apple-Mail-5-1037861608 -Content-Transfer-Encoding: 7bit -Content-Type: text/enriched; - charset=US-ASCII - - - -XXXXX Xxxxx - - ---Apple-Mail-5-1037861608-- - +From xxx@xxxx.com Wed Apr 27 14:15:31 2005 +Mime-Version: 1.0 (Apple Message framework v619.2) +To: "xxxxx@xxxxx" +Message-Id: <416eaebec6d333ec6939eaf8a7d80724@xxxxx> +Content-Type: multipart/alternative; + boundary=Apple-Mail-5-1037861608 +From: "xxxxx@xxxxx" +Subject: worse when you use them. +Date: Wed, 27 Apr 2005 14:15:31 -0700 + + + + +--Apple-Mail-5-1037861608 +Content-Transfer-Encoding: 7bit +Content-Type: text/plain; + charset=US-ASCII; + format=flowed + + +XXXXX Xxxxx + +--Apple-Mail-5-1037861608 +Content-Transfer-Encoding: 7bit +Content-Type: text/enriched; + charset=US-ASCII + + + +XXXXX Xxxxx + + +--Apple-Mail-5-1037861608-- + diff --git a/spec/fixtures/emails/mime_emails/raw_email12.eml b/spec/fixtures/emails/mime_emails/raw_email12.eml index 2cd31720d..123d7d358 100644 --- a/spec/fixtures/emails/mime_emails/raw_email12.eml +++ b/spec/fixtures/emails/mime_emails/raw_email12.eml @@ -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: -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: +Content-Disposition: inline + +jamisSqGSIb3DQEHAqCAMIjamisxCzAJBgUrDgMCGgUAMIAGCSqGSjamisEHAQAAoIIFSjCCBUYw +ggQujamisQICBD++ukQwDQYJKojamisNAQEFBQAwMTELMAkGA1UEBhMCRjamisAKBgNVBAoTA1RE +QzEUMBIGjamisxMLVERDIE9DRVMgQ0jamisNMDQwMjI5MTE1OTAxWhcNMDYwMjamisIyOTAxWjCB +gDELMAkGA1UEjamisEsxKTAnBgNVBAoTIEjamisuIG9yZ2FuaXNhdG9yaXNrIHRpbjamisRuaW5= + +--Apple-Mail-13-196941151-- + diff --git a/spec/fixtures/emails/mime_emails/raw_email2.eml b/spec/fixtures/emails/mime_emails/raw_email2.eml index 3999fcc87..6cf218b48 100644 --- a/spec/fixtures/emails/mime_emails/raw_email2.eml +++ b/spec/fixtures/emails/mime_emails/raw_email2.eml @@ -1,114 +1,114 @@ -From xxxxxxxxx.xxxxxxx@gmail.com Sun May 8 19:07:09 2005 -Return-Path: -X-Original-To: xxxxx@xxxxx.xxxxxxxxx.com -Delivered-To: xxxxx@xxxxx.xxxxxxxxx.com -Received: from localhost (localhost [127.0.0.1]) - by xxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 06C9DA98D - for ; Sun, 8 May 2005 19:09:13 +0000 (GMT) -Received: from xxxxx.xxxxxxxxx.com ([127.0.0.1]) - by localhost (xxxxx.xxxxxxxxx.com [127.0.0.1]) (amavisd-new, port 10024) - with LMTP id 88783-08 for ; - Sun, 8 May 2005 19:09:12 +0000 (GMT) -Received: from xxxxxxx.xxxxxxxxx.com (xxxxxxx.xxxxxxxxx.com [69.36.39.150]) - by xxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 10D8BA960 - for ; Sun, 8 May 2005 19:09:12 +0000 (GMT) -Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) - by xxxxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 9EBC4148EAB - for ; Sun, 8 May 2005 14:09:11 -0500 (CDT) -Received: by zproxy.gmail.com with SMTP id 13so1233405nzp - for ; Sun, 08 May 2005 12:09:11 -0700 (PDT) -DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; - s=beta; d=gmail.com; - h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; - b=cid1mzGEFa3gtRa06oSrrEYfKca2CTKu9sLMkWxjbvCsWMtp9RGEILjUz0L5RySdH5iO661LyNUoHRFQIa57bylAbXM3g2DTEIIKmuASDG3x3rIQ4sHAKpNxP7Pul+mgTaOKBv+spcH7af++QEJ36gHFXD2O/kx9RePs3JNf/K8= -Received: by 10.36.10.16 with SMTP id 16mr1012493nzj; - Sun, 08 May 2005 12:09:11 -0700 (PDT) -Received: by 10.36.5.10 with HTTP; Sun, 8 May 2005 12:09:11 -0700 (PDT) -Message-ID: -Date: Sun, 8 May 2005 14:09:11 -0500 -From: xxxxxxxxx xxxxxxx -Reply-To: xxxxxxxxx xxxxxxx -To: xxxxx xxxx -Subject: Fwd: Signed email causes file attachments -In-Reply-To: -Mime-Version: 1.0 -Content-Type: multipart/mixed; - boundary="----=_Part_5028_7368284.1115579351471" -References: - -------=_Part_5028_7368284.1115579351471 -Content-Type: text/plain; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - -We should not include these files or vcards as attachments. - ----------- Forwarded message ---------- -From: xxxxx xxxxxx -Date: May 8, 2005 1:17 PM -Subject: Signed email causes file attachments -To: xxxxxxx@xxxxxxxxxx.com - - -Hi, - -Just started to use my xxxxxxxx account (to set-up a GTD system, -natch) and noticed that when I send content via email the signature/ -certificate from my email account gets added as a file (e.g. -"smime.p7s"). - -Obviously I can uncheck the signature option in the Mail compose -window but how often will I remember to do that? - -Is there any way these kind of files could be ignored, e.g. via some -sort of exclusions list? - -------=_Part_5028_7368284.1115579351471 -Content-Type: application/pkcs7-signature; name=smime.p7s -Content-Transfer-Encoding: base64 -Content-Disposition: attachment; filename="smime.p7s" - -MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFDCCAs0w -ggI2oAMCAQICAw5c+TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh -d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt -YWlsIElzc3VpbmcgQ0EwHhcNMDUwMzI5MDkzOTEwWhcNMDYwMzI5MDkzOTEwWjBCMR8wHQYDVQQD -ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBzbWhhdW5jaEBtYWMuY29t -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn90dPsYS3LjfMY211OSYrDQLzwNYPlAL -7+/0XA+kdy8/rRnyEHFGwhNCDmg0B6pxC7z3xxJD/8GfCd+IYUUNUQV5m9MkxfP9pTVXZVIYLaBw -o8xS3A0a1LXealcmlEbJibmKkEaoXci3MhryLgpaa+Kk/sH02SNatDO1vS28bPsibZpcc6deFrla -hSYnL+PW54mDTGHIcCN2fbx/Y6qspzqmtKaXrv75NBtuy9cB6KzU4j2xXbTkAwz3pRSghJJaAwdp -+yIivAD3vr0kJE3p+Ez34HMh33EXEpFoWcN+MCEQZD9WnmFViMrvfvMXLGVFQfAAcC060eGFSRJ1 -ZQ9UVQIDAQABoy0wKzAbBgNVHREEFDASgRBzbWhhdW5jaEBtYWMuY29tMAwGA1UdEwEB/wQCMAAw -DQYJKoZIhvcNAQEEBQADgYEAQMrg1n2pXVWteP7BBj+Pk3UfYtbuHb42uHcLJjfjnRlH7AxnSwrd -L3HED205w3Cq8T7tzVxIjRRLO/ljq0GedSCFBky7eYo1PrXhztGHCTSBhsiWdiyLWxKlOxGAwJc/ -lMMnwqLOdrQcoF/YgbjeaUFOQbUh94w9VDNpWZYCZwcwggM/MIICqKADAgECAgENMA0GCSqGSIb3 -DQEBBQUAMIHRMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYDVQQHEwlD -YXBlIFRvd24xGjAYBgNVBAoTEVRoYXd0ZSBDb25zdWx0aW5nMSgwJgYDVQQLEx9DZXJ0aWZpY2F0 -aW9uIFNlcnZpY2VzIERpdmlzaW9uMSQwIgYDVQQDExtUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg -Q0ExKzApBgkqhkiG9w0BCQEWHHBlcnNvbmFsLWZyZWVtYWlsQHRoYXd0ZS5jb20wHhcNMDMwNzE3 -MDAwMDAwWhcNMTMwNzE2MjM1OTU5WjBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENv -bnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElz -c3VpbmcgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMSmPFVzVftOucqZWh5owHUEcJ3f -6f+jHuy9zfVb8hp2vX8MOmHyv1HOAdTlUAow1wJjWiyJFXCO3cnwK4Vaqj9xVsuvPAsH5/EfkTYk -KhPPK9Xzgnc9A74r/rsYPge/QIACZNenprufZdHFKlSFD0gEf6e20TxhBEAeZBlyYLf7AgMBAAGj -gZQwgZEwEgYDVR0TAQH/BAgwBgEB/wIBADBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vY3JsLnRo -YXd0ZS5jb20vVGhhd3RlUGVyc29uYWxGcmVlbWFpbENBLmNybDALBgNVHQ8EBAMCAQYwKQYDVR0R -BCIwIKQeMBwxGjAYBgNVBAMTEVByaXZhdGVMYWJlbDItMTM4MA0GCSqGSIb3DQEBBQUAA4GBAEiM -0VCD6gsuzA2jZqxnD3+vrL7CF6FDlpSdf0whuPg2H6otnzYvwPQcUCCTcDz9reFhYsPZOhl+hLGZ -GwDFGguCdJ4lUJRix9sncVcljd2pnDmOjCBPZV+V2vf3h9bGCE6u9uo05RAaWzVNd+NWIXiC3CEZ -Nd4ksdMdRv9dX2VPMYIC5zCCAuMCAQEwaTBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3Rl -IENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWls -IElzc3VpbmcgQ0ECAw5c+TAJBgUrDgMCGgUAoIIBUzAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcB -MBwGCSqGSIb3DQEJBTEPFw0wNTA1MDgxODE3NDZaMCMGCSqGSIb3DQEJBDEWBBQSkG9j6+hB0pKp -fV9tCi/iP59sNTB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3 -dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1h -aWwgSXNzdWluZyBDQQIDDlz5MHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG -A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv -bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAw5c+TANBgkqhkiG9w0BAQEFAASCAQAm1GeF7dWfMvrW -8yMPjkhE+R8D1DsiCoWSCp+5gAQm7lcK7V3KrZh5howfpI3TmCZUbbaMxOH+7aKRKpFemxoBY5Q8 -rnCkbpg/++/+MI01T69hF/rgMmrGcrv2fIYy8EaARLG0xUVFSZHSP+NQSYz0TTmh4cAESHMzY3JA -nHOoUkuPyl8RXrimY1zn0lceMXlweZRouiPGuPNl1hQKw8P+GhOC5oLlM71UtStnrlk3P9gqX5v7 -Tj7Hx057oVfY8FMevjxGwU3EK5TczHezHbWWgTyum9l2ZQbUQsDJxSniD3BM46C1VcbDLPaotAZ0 -fTYLZizQfm5hcWEbfYVzkSzLAAAAAAAA -------=_Part_5028_7368284.1115579351471-- - +From xxxxxxxxx.xxxxxxx@gmail.com Sun May 8 19:07:09 2005 +Return-Path: +X-Original-To: xxxxx@xxxxx.xxxxxxxxx.com +Delivered-To: xxxxx@xxxxx.xxxxxxxxx.com +Received: from localhost (localhost [127.0.0.1]) + by xxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 06C9DA98D + for ; Sun, 8 May 2005 19:09:13 +0000 (GMT) +Received: from xxxxx.xxxxxxxxx.com ([127.0.0.1]) + by localhost (xxxxx.xxxxxxxxx.com [127.0.0.1]) (amavisd-new, port 10024) + with LMTP id 88783-08 for ; + Sun, 8 May 2005 19:09:12 +0000 (GMT) +Received: from xxxxxxx.xxxxxxxxx.com (xxxxxxx.xxxxxxxxx.com [69.36.39.150]) + by xxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 10D8BA960 + for ; Sun, 8 May 2005 19:09:12 +0000 (GMT) +Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) + by xxxxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 9EBC4148EAB + for ; Sun, 8 May 2005 14:09:11 -0500 (CDT) +Received: by zproxy.gmail.com with SMTP id 13so1233405nzp + for ; Sun, 08 May 2005 12:09:11 -0700 (PDT) +DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; + s=beta; d=gmail.com; + h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; + b=cid1mzGEFa3gtRa06oSrrEYfKca2CTKu9sLMkWxjbvCsWMtp9RGEILjUz0L5RySdH5iO661LyNUoHRFQIa57bylAbXM3g2DTEIIKmuASDG3x3rIQ4sHAKpNxP7Pul+mgTaOKBv+spcH7af++QEJ36gHFXD2O/kx9RePs3JNf/K8= +Received: by 10.36.10.16 with SMTP id 16mr1012493nzj; + Sun, 08 May 2005 12:09:11 -0700 (PDT) +Received: by 10.36.5.10 with HTTP; Sun, 8 May 2005 12:09:11 -0700 (PDT) +Message-ID: +Date: Sun, 8 May 2005 14:09:11 -0500 +From: xxxxxxxxx xxxxxxx +Reply-To: xxxxxxxxx xxxxxxx +To: xxxxx xxxx +Subject: Fwd: Signed email causes file attachments +In-Reply-To: +Mime-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_5028_7368284.1115579351471" +References: + +------=_Part_5028_7368284.1115579351471 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + +We should not include these files or vcards as attachments. + +---------- Forwarded message ---------- +From: xxxxx xxxxxx +Date: May 8, 2005 1:17 PM +Subject: Signed email causes file attachments +To: xxxxxxx@xxxxxxxxxx.com + + +Hi, + +Just started to use my xxxxxxxx account (to set-up a GTD system, +natch) and noticed that when I send content via email the signature/ +certificate from my email account gets added as a file (e.g. +"smime.p7s"). + +Obviously I can uncheck the signature option in the Mail compose +window but how often will I remember to do that? + +Is there any way these kind of files could be ignored, e.g. via some +sort of exclusions list? + +------=_Part_5028_7368284.1115579351471 +Content-Type: application/pkcs7-signature; name=smime.p7s +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.p7s" + +MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFDCCAs0w +ggI2oAMCAQICAw5c+TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh +d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt +YWlsIElzc3VpbmcgQ0EwHhcNMDUwMzI5MDkzOTEwWhcNMDYwMzI5MDkzOTEwWjBCMR8wHQYDVQQD +ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBzbWhhdW5jaEBtYWMuY29t +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn90dPsYS3LjfMY211OSYrDQLzwNYPlAL +7+/0XA+kdy8/rRnyEHFGwhNCDmg0B6pxC7z3xxJD/8GfCd+IYUUNUQV5m9MkxfP9pTVXZVIYLaBw +o8xS3A0a1LXealcmlEbJibmKkEaoXci3MhryLgpaa+Kk/sH02SNatDO1vS28bPsibZpcc6deFrla +hSYnL+PW54mDTGHIcCN2fbx/Y6qspzqmtKaXrv75NBtuy9cB6KzU4j2xXbTkAwz3pRSghJJaAwdp ++yIivAD3vr0kJE3p+Ez34HMh33EXEpFoWcN+MCEQZD9WnmFViMrvfvMXLGVFQfAAcC060eGFSRJ1 +ZQ9UVQIDAQABoy0wKzAbBgNVHREEFDASgRBzbWhhdW5jaEBtYWMuY29tMAwGA1UdEwEB/wQCMAAw +DQYJKoZIhvcNAQEEBQADgYEAQMrg1n2pXVWteP7BBj+Pk3UfYtbuHb42uHcLJjfjnRlH7AxnSwrd +L3HED205w3Cq8T7tzVxIjRRLO/ljq0GedSCFBky7eYo1PrXhztGHCTSBhsiWdiyLWxKlOxGAwJc/ +lMMnwqLOdrQcoF/YgbjeaUFOQbUh94w9VDNpWZYCZwcwggM/MIICqKADAgECAgENMA0GCSqGSIb3 +DQEBBQUAMIHRMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBDYXBlMRIwEAYDVQQHEwlD +YXBlIFRvd24xGjAYBgNVBAoTEVRoYXd0ZSBDb25zdWx0aW5nMSgwJgYDVQQLEx9DZXJ0aWZpY2F0 +aW9uIFNlcnZpY2VzIERpdmlzaW9uMSQwIgYDVQQDExtUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg +Q0ExKzApBgkqhkiG9w0BCQEWHHBlcnNvbmFsLWZyZWVtYWlsQHRoYXd0ZS5jb20wHhcNMDMwNzE3 +MDAwMDAwWhcNMTMwNzE2MjM1OTU5WjBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENv +bnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElz +c3VpbmcgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMSmPFVzVftOucqZWh5owHUEcJ3f +6f+jHuy9zfVb8hp2vX8MOmHyv1HOAdTlUAow1wJjWiyJFXCO3cnwK4Vaqj9xVsuvPAsH5/EfkTYk +KhPPK9Xzgnc9A74r/rsYPge/QIACZNenprufZdHFKlSFD0gEf6e20TxhBEAeZBlyYLf7AgMBAAGj +gZQwgZEwEgYDVR0TAQH/BAgwBgEB/wIBADBDBgNVHR8EPDA6MDigNqA0hjJodHRwOi8vY3JsLnRo +YXd0ZS5jb20vVGhhd3RlUGVyc29uYWxGcmVlbWFpbENBLmNybDALBgNVHQ8EBAMCAQYwKQYDVR0R +BCIwIKQeMBwxGjAYBgNVBAMTEVByaXZhdGVMYWJlbDItMTM4MA0GCSqGSIb3DQEBBQUAA4GBAEiM +0VCD6gsuzA2jZqxnD3+vrL7CF6FDlpSdf0whuPg2H6otnzYvwPQcUCCTcDz9reFhYsPZOhl+hLGZ +GwDFGguCdJ4lUJRix9sncVcljd2pnDmOjCBPZV+V2vf3h9bGCE6u9uo05RAaWzVNd+NWIXiC3CEZ +Nd4ksdMdRv9dX2VPMYIC5zCCAuMCAQEwaTBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3Rl +IENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWls +IElzc3VpbmcgQ0ECAw5c+TAJBgUrDgMCGgUAoIIBUzAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcB +MBwGCSqGSIb3DQEJBTEPFw0wNTA1MDgxODE3NDZaMCMGCSqGSIb3DQEJBDEWBBQSkG9j6+hB0pKp +fV9tCi/iP59sNTB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3 +dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1h +aWwgSXNzdWluZyBDQQIDDlz5MHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG +A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv +bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAw5c+TANBgkqhkiG9w0BAQEFAASCAQAm1GeF7dWfMvrW +8yMPjkhE+R8D1DsiCoWSCp+5gAQm7lcK7V3KrZh5howfpI3TmCZUbbaMxOH+7aKRKpFemxoBY5Q8 +rnCkbpg/++/+MI01T69hF/rgMmrGcrv2fIYy8EaARLG0xUVFSZHSP+NQSYz0TTmh4cAESHMzY3JA +nHOoUkuPyl8RXrimY1zn0lceMXlweZRouiPGuPNl1hQKw8P+GhOC5oLlM71UtStnrlk3P9gqX5v7 +Tj7Hx057oVfY8FMevjxGwU3EK5TczHezHbWWgTyum9l2ZQbUQsDJxSniD3BM46C1VcbDLPaotAZ0 +fTYLZizQfm5hcWEbfYVzkSzLAAAAAAAA +------=_Part_5028_7368284.1115579351471-- + diff --git a/spec/fixtures/emails/mime_emails/raw_email4.eml b/spec/fixtures/emails/mime_emails/raw_email4.eml index 639ad40e4..a56bd1bf4 100644 --- a/spec/fixtures/emails/mime_emails/raw_email4.eml +++ b/spec/fixtures/emails/mime_emails/raw_email4.eml @@ -1,59 +1,59 @@ -Return-Path: -Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id 6AAEE3B4D23 for ; Sun, 8 May 2005 12:30:23 -0500 -Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id j48HUC213279 for ; Sun, 8 May 2005 12:30:13 -0500 -Received: from conversion-xxx.xxxx.xxx.net by xxx.xxxx.xxx id <0IG600901LQ64I@xxx.xxxx.xxx> for ; Sun, 8 May 2005 12:30:12 -0500 -Received: from agw1 by xxx.xxxx.xxx with ESMTP id <0IG600JFYLYCAxxx@xxxx.xxx> for ; Sun, 8 May 2005 12:30:12 -0500 -Date: Sun, 8 May 2005 12:30:08 -0500 -From: xxx@xxxx.xxx -To: xxx@xxxx.xxx -Message-Id: <7864245.1115573412626.JavaMxxx@xxxx.xxx> -Subject: Filth -Mime-Version: 1.0 -Content-Type: multipart/mixed; boundary=mimepart_427e4cb4ca329_133ae40413c81ef -X-Mms-Priority: 1 -X-Mms-Transaction-Id: 3198421808-0 -X-Mms-Message-Type: 0 -X-Mms-Sender-Visibility: 1 -X-Mms-Read-Reply: 1 -X-Original-To: xxx@xxxx.xxx -X-Mms-Message-Class: 0 -X-Mms-Delivery-Report: 0 -X-Mms-Mms-Version: 16 -Delivered-To: xxx@xxxx.xxx -X-Nokia-Ag-Version: 2.0 - -This is a multi-part message in MIME format. - ---mimepart_427e4cb4ca329_133ae40413c81ef -Content-Type: multipart/mixed; boundary=mimepart_427e4cb4cbd97_133ae40413c8217 - - - ---mimepart_427e4cb4cbd97_133ae40413c8217 -Content-Type: text/plain; charset=utf-8 -Content-Transfer-Encoding: 7bit -Content-Disposition: inline -Content-Location: text.txt - -Some text - ---mimepart_427e4cb4cbd97_133ae40413c8217-- - ---mimepart_427e4cb4ca329_133ae40413c81ef -Content-Type: text/plain; charset=us-ascii -Content-Transfer-Encoding: 7bit - - --- -This Orange Multi Media Message was sent wirefree from an Orange -MMS phone. If you would like to reply, please text or phone the -sender directly by using the phone number listed in the sender's -address. To learn more about Orange's Multi Media Messaging -Service, find us on the Web at xxx.xxxx.xxx.uk/mms - - ---mimepart_427e4cb4ca329_133ae40413c81ef - - ---mimepart_427e4cb4ca329_133ae40413c81ef- - +Return-Path: +Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id 6AAEE3B4D23 for ; Sun, 8 May 2005 12:30:23 -0500 +Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id j48HUC213279 for ; Sun, 8 May 2005 12:30:13 -0500 +Received: from conversion-xxx.xxxx.xxx.net by xxx.xxxx.xxx id <0IG600901LQ64I@xxx.xxxx.xxx> for ; Sun, 8 May 2005 12:30:12 -0500 +Received: from agw1 by xxx.xxxx.xxx with ESMTP id <0IG600JFYLYCAxxx@xxxx.xxx> for ; Sun, 8 May 2005 12:30:12 -0500 +Date: Sun, 8 May 2005 12:30:08 -0500 +From: xxx@xxxx.xxx +To: xxx@xxxx.xxx +Message-Id: <7864245.1115573412626.JavaMxxx@xxxx.xxx> +Subject: Filth +Mime-Version: 1.0 +Content-Type: multipart/mixed; boundary=mimepart_427e4cb4ca329_133ae40413c81ef +X-Mms-Priority: 1 +X-Mms-Transaction-Id: 3198421808-0 +X-Mms-Message-Type: 0 +X-Mms-Sender-Visibility: 1 +X-Mms-Read-Reply: 1 +X-Original-To: xxx@xxxx.xxx +X-Mms-Message-Class: 0 +X-Mms-Delivery-Report: 0 +X-Mms-Mms-Version: 16 +Delivered-To: xxx@xxxx.xxx +X-Nokia-Ag-Version: 2.0 + +This is a multi-part message in MIME format. + +--mimepart_427e4cb4ca329_133ae40413c81ef +Content-Type: multipart/mixed; boundary=mimepart_427e4cb4cbd97_133ae40413c8217 + + + +--mimepart_427e4cb4cbd97_133ae40413c8217 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 7bit +Content-Disposition: inline +Content-Location: text.txt + +Some text + +--mimepart_427e4cb4cbd97_133ae40413c8217-- + +--mimepart_427e4cb4ca329_133ae40413c81ef +Content-Type: text/plain; charset=us-ascii +Content-Transfer-Encoding: 7bit + + +-- +This Orange Multi Media Message was sent wirefree from an Orange +MMS phone. If you would like to reply, please text or phone the +sender directly by using the phone number listed in the sender's +address. To learn more about Orange's Multi Media Messaging +Service, find us on the Web at xxx.xxxx.xxx.uk/mms + + +--mimepart_427e4cb4ca329_133ae40413c81ef + + +--mimepart_427e4cb4ca329_133ae40413c81ef- + diff --git a/spec/fixtures/emails/mime_emails/raw_email7.eml b/spec/fixtures/emails/mime_emails/raw_email7.eml index da64ada8a..c8c8e3462 100644 --- a/spec/fixtures/emails/mime_emails/raw_email7.eml +++ b/spec/fixtures/emails/mime_emails/raw_email7.eml @@ -1,66 +1,66 @@ -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-Type: multipart/mixed; - boundary=Apple-Mail-12-196940926 - - ---Apple-Mail-12-196940926 -Content-Transfer-Encoding: quoted-printable -Content-Type: text/plain; - charset=ISO-8859-1; - delsp=yes; - format=flowed - -This is the first part. - ---Apple-Mail-12-196940926 -Content-Transfer-Encoding: 7bit -Content-Type: text/x-ruby-script; - x-unix-mode=0666; - name="test.rb" -Content-Disposition: attachment; - filename=test.rb - -puts "testing, testing" - ---Apple-Mail-12-196940926 -Content-Transfer-Encoding: base64 -Content-Type: application/pdf; - x-unix-mode=0666; - name="test.pdf" -Content-Disposition: inline; - filename=test.pdf - -YmxhaCBibGFoIGJsYWg= - ---Apple-Mail-12-196940926 -Content-Transfer-Encoding: 7bit -Content-Type: text/plain; - charset=US-ASCII; - format=flowed - - - ---Apple-Mail-12-196940926-- - ---Apple-Mail-13-196941151 -Content-Transfer-Encoding: base64 -Content-Type: application/pkcs7-signature; - name=smime.p7s -Content-Disposition: attachment; - filename=smime.p7s - -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-Type: multipart/mixed; + boundary=Apple-Mail-12-196940926 + + +--Apple-Mail-12-196940926 +Content-Transfer-Encoding: quoted-printable +Content-Type: text/plain; + charset=ISO-8859-1; + delsp=yes; + format=flowed + +This is the first part. + +--Apple-Mail-12-196940926 +Content-Transfer-Encoding: 7bit +Content-Type: text/x-ruby-script; + x-unix-mode=0666; + name="test.rb" +Content-Disposition: attachment; + filename=test.rb + +puts "testing, testing" + +--Apple-Mail-12-196940926 +Content-Transfer-Encoding: base64 +Content-Type: application/pdf; + x-unix-mode=0666; + name="test.pdf" +Content-Disposition: inline; + filename=test.pdf + +YmxhaCBibGFoIGJsYWg= + +--Apple-Mail-12-196940926 +Content-Transfer-Encoding: 7bit +Content-Type: text/plain; + charset=US-ASCII; + format=flowed + + + +--Apple-Mail-12-196940926-- + +--Apple-Mail-13-196941151 +Content-Transfer-Encoding: base64 +Content-Type: application/pkcs7-signature; + name=smime.p7s +Content-Disposition: attachment; + filename=smime.p7s + +jamisSqGSIb3DQEHAqCAMIjamisxCzAJBgUrDgMCGgUAMIAGCSqGSjamisEHAQAAoIIFSjCCBUYw +ggQujamisQICBD++ukQwDQYJKojamisNAQEFBQAwMTELMAkGA1UEBhMCRjamisAKBgNVBAoTA1RE +QzEUMBIGjamisxMLVERDIE9DRVMgQ0jamisNMDQwMjI5MTE1OTAxWhcNMDYwMjamisIyOTAxWjCB +gDELMAkGA1UEjamisEsxKTAnBgNVBAoTIEjamisuIG9yZ2FuaXNhdG9yaXNrIHRpbjamisRuaW5= + +--Apple-Mail-13-196941151-- diff --git a/spec/fixtures/emails/mime_emails/raw_email_encoded_stack_level_too_deep.eml b/spec/fixtures/emails/mime_emails/raw_email_encoded_stack_level_too_deep.eml index ef0856206..4981e59b4 100644 --- a/spec/fixtures/emails/mime_emails/raw_email_encoded_stack_level_too_deep.eml +++ b/spec/fixtures/emails/mime_emails/raw_email_encoded_stack_level_too_deep.eml @@ -1,53 +1,53 @@ -X-Gmail-Received: 220984aec4c4885e060987be043c9363cbef8551 -Received: by 10.36.47.16; Tue, 28 Jun 2005 01:02:11 -0700 (PDT) -Message-ID: <89d7557c0506280102495d555f@mail.gmail.com> -Date: Tue, 28 Jun 2005 01:02:11 -0700 -From: Gmail Team -Reply-To: x.y@gmail.com -To: =?ISO-8859-1?Q?Nicolas_Fouch=E9?= -Subject: =?ISO-8859-1?Q?Nicolas_Fouch=E9_has_accepted_your_invitation_to_Gmail?= -Mime-Version: 1.0 -Content-Type: multipart/alternative; - boundary="----=_Part_976_15222032.1119945731186" - -------=_Part_976_15222032.1119945731186 -Content-Type: text/plain; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - -Nicolas Fouch=E9 has accepted your invitation to Gmail and has chosen the= -=20 -brand new address x.y@gmail.com. Be one of the first to email Nicolas= -=20 -at this new Gmail address--just hit reply and send Nicolas a message.=20 -x.y@gmail.com has also been automatically added to your contact list= -=20 -so you can stay in touch with Gmail.=20 - - -Thanks,=20 - -The Gmail Team - -------=_Part_976_15222032.1119945731186 -Content-Type: text/html; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - - - -

    Nicolas Fouch=E9 has accepted your invitation to Gmail and has - chosen the brand new address x.y@gmail.com. Be one of the first to = -email=20 - Nicolas at this new Gmail address--just hit reply and send=20 - Nicolas a message. x.y@gmail.com has also been automatically added = -to - your contact list so you can stay in touch with Gmail. -

    -


    - Thanks,

    -

    The Gmail Team

    -
    - - +X-Gmail-Received: 220984aec4c4885e060987be043c9363cbef8551 +Received: by 10.36.47.16; Tue, 28 Jun 2005 01:02:11 -0700 (PDT) +Message-ID: <89d7557c0506280102495d555f@mail.gmail.com> +Date: Tue, 28 Jun 2005 01:02:11 -0700 +From: Gmail Team +Reply-To: x.y@gmail.com +To: =?ISO-8859-1?Q?Nicolas_Fouch=E9?= +Subject: =?ISO-8859-1?Q?Nicolas_Fouch=E9_has_accepted_your_invitation_to_Gmail?= +Mime-Version: 1.0 +Content-Type: multipart/alternative; + boundary="----=_Part_976_15222032.1119945731186" + +------=_Part_976_15222032.1119945731186 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + +Nicolas Fouch=E9 has accepted your invitation to Gmail and has chosen the= +=20 +brand new address x.y@gmail.com. Be one of the first to email Nicolas= +=20 +at this new Gmail address--just hit reply and send Nicolas a message.=20 +x.y@gmail.com has also been automatically added to your contact list= +=20 +so you can stay in touch with Gmail.=20 + + +Thanks,=20 + +The Gmail Team + +------=_Part_976_15222032.1119945731186 +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + + + +

    Nicolas Fouch=E9 has accepted your invitation to Gmail and has + chosen the brand new address x.y@gmail.com. Be one of the first to = +email=20 + Nicolas at this new Gmail address--just hit reply and send=20 + Nicolas a message. x.y@gmail.com has also been automatically added = +to + your contact list so you can stay in touch with Gmail. +

    +


    + Thanks,

    +

    The Gmail Team

    +
    + + ------=_Part_976_15222032.1119945731186-- \ No newline at end of file diff --git a/spec/fixtures/emails/mime_emails/raw_email_with_binary_encoded.eml b/spec/fixtures/emails/mime_emails/raw_email_with_binary_encoded.eml new file mode 100644 index 000000000..831c8e2cf --- /dev/null +++ b/spec/fixtures/emails/mime_emails/raw_email_with_binary_encoded.eml @@ -0,0 +1,24 @@ +From email_test@me.nowhere +Return-Path: +Received: from omta05sl.mx.bigpond.com by me.nowhere.else with ESMTP id 632BD5758 for ; Sun, 21 Oct 2007 19:38:21 +1000 +Received: from oaamta05sl.mx.bigpond.com by omta05sl.mx.bigpond.com with ESMTP id <20071021093820.HSPC16667.omta05sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Date: Sun, 21 Oct 2007 19:38:13 +1000 +From: Mikel Lindsaar +Reply-To: Mikel Lindsaar +To: mikel@me.nowhere +Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> +Subject: Testing outlook +Subject: Another PDF +Mime-Version: 1.0 +Content-Type: multipart/alternative; + boundary=----=_Part_13069834_15179892.1376435426074 + + +------=_Part_13069834_15179892.1376435426074 +Content-Type: image/jpeg; name=2013-08-13_19-08-28-1.jpg +Content-Transfer-Encoding: binary +Content-Location: 2013-08-13_19-08-28-1.jpg + +BINARY_CONTENT_GOES_HERE +------=_Part_13069834_15179892.1376435426074-- diff --git a/spec/fixtures/emails/mime_emails/raw_email_with_illegal_boundary.eml b/spec/fixtures/emails/mime_emails/raw_email_with_illegal_boundary.eml index 7e707af76..f3c2523cb 100644 --- a/spec/fixtures/emails/mime_emails/raw_email_with_illegal_boundary.eml +++ b/spec/fixtures/emails/mime_emails/raw_email_with_illegal_boundary.eml @@ -1,58 +1,58 @@ -From email_test@me.nowhere -Return-Path: -Received: from omta05sl.mx.bigpond.com by me.nowhere.else with ESMTP id 632BD5758 for ; Sun, 21 Oct 2007 19:38:21 +1000 -Received: from oaamta05sl.mx.bigpond.com by omta05sl.mx.bigpond.com with ESMTP id <20071021093820.HSPC16667.omta05sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com> for ; Sun, 21 Oct 2007 19:38:20 +1000 -Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 -Date: Sun, 21 Oct 2007 19:38:13 +1000 -From: Mikel Lindsaar -Reply-To: Mikel Lindsaar -To: mikel@me.nowhere -Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> -Subject: Testing outlook -Mime-Version: 1.0 -Content-Type: multipart/alternative; boundary=----=_NextPart_000_0093_01C81419.EB75E850 -X-Get_mail_default: mikel@me.nowhere.else -X-Priority: 3 -X-Original-To: mikel@me.nowhere -X-Mailer: Microsoft Outlook Express 6.00.2900.3138 -Delivered-To: mikel@me.nowhere -X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.3138 -X-Msmail-Priority: Normal - -This is a multi-part message in MIME format. - - -------=_NextPart_000_0093_01C81419.EB75E850 -Content-Type: text/plain; charset=iso-8859-1 -Content-Transfer-Encoding: Quoted-printable - -Hello -This is an outlook test - -So there. - -Me. - -------=_NextPart_000_0093_01C81419.EB75E850 -Content-Type: text/html; charset=iso-8859-1 -Content-Transfer-Encoding: Quoted-printable - - - - - - - - -
    Hello
    -
    This is an outlook=20 -test
    -
     
    -
    So there.
    -
     
    -
    Me.
    - - -------=_NextPart_000_0093_01C81419.EB75E850-- - +From email_test@me.nowhere +Return-Path: +Received: from omta05sl.mx.bigpond.com by me.nowhere.else with ESMTP id 632BD5758 for ; Sun, 21 Oct 2007 19:38:21 +1000 +Received: from oaamta05sl.mx.bigpond.com by omta05sl.mx.bigpond.com with ESMTP id <20071021093820.HSPC16667.omta05sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Date: Sun, 21 Oct 2007 19:38:13 +1000 +From: Mikel Lindsaar +Reply-To: Mikel Lindsaar +To: mikel@me.nowhere +Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> +Subject: Testing outlook +Mime-Version: 1.0 +Content-Type: multipart/alternative; boundary=----=_NextPart_000_0093_01C81419.EB75E850 +X-Get_mail_default: mikel@me.nowhere.else +X-Priority: 3 +X-Original-To: mikel@me.nowhere +X-Mailer: Microsoft Outlook Express 6.00.2900.3138 +Delivered-To: mikel@me.nowhere +X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.3138 +X-Msmail-Priority: Normal + +This is a multi-part message in MIME format. + + +------=_NextPart_000_0093_01C81419.EB75E850 +Content-Type: text/plain; charset=iso-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Hello +This is an outlook test + +So there. + +Me. + +------=_NextPart_000_0093_01C81419.EB75E850 +Content-Type: text/html; charset=iso-8859-1 +Content-Transfer-Encoding: Quoted-printable + + + + + + + + +
    Hello
    +
    This is an outlook=20 +test
    +
     
    +
    So there.
    +
     
    +
    Me.
    + + +------=_NextPart_000_0093_01C81419.EB75E850-- + diff --git a/spec/fixtures/emails/mime_emails/raw_email_with_mimepart_without_content_type.eml b/spec/fixtures/emails/mime_emails/raw_email_with_mimepart_without_content_type.eml index cd29e350f..6b6c16899 100644 --- a/spec/fixtures/emails/mime_emails/raw_email_with_mimepart_without_content_type.eml +++ b/spec/fixtures/emails/mime_emails/raw_email_with_mimepart_without_content_type.eml @@ -1,94 +1,94 @@ -X-Gmail-Received: b2c98353cc39d93e4204831226f778c200d28109 -Delivered-To: roor32@gmail.com -Received: by 10.64.10.4 with SMTP id 4cs594808qbj; - Fri, 20 Oct 2006 01:53:34 -0700 (PDT) -Received: by 10.65.224.11 with SMTP id b11mr149813qbr; - Fri, 20 Oct 2006 01:53:34 -0700 (PDT) -Return-Path: <> -Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6]) - by mx.google.com with ESMTP id e13si1575402qbe.2006.10.20.01.53.34; - Fri, 20 Oct 2006 01:53:34 -0700 (PDT) -Received-SPF: pass (google.com: best guess record for domain of anis.telecom.uqam.ca designates 132.208.250.6 as permitted sender) -Received: from anis4.telecom.uqam.ca (anis4.telecom.uqam.ca [132.208.250.236]) - by sortant.uqam.ca (8.13.6/8.12.1) with SMTP id k9K8SIwA023763 - for ; Fri, 20 Oct 2006 04:28:33 -0400 (EDT) -Received: from antivirus.uqam.ca ([127.0.0.1]) - by anis4.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id M2006102004283404041 - for ; Fri, 20 Oct 2006 04:28:34 -0400 -Received: from localhost (localhost) - by antivirus.uqam.ca (8.13.6/8.12.1) id k9JMDbg4005560; - Fri, 20 Oct 2006 04:28:33 -0400 (EDT) -Date: Fri, 20 Oct 2006 04:28:33 -0400 (EDT) -From: Mail Delivery Subsystem -Message-Id: <200610200828.k9JMDbg4005560@antivirus.uqam.ca> -To: -MIME-Version: 1.0 -Content-Type: multipart/report; report-type=delivery-status; - boundary="k9JMDbg4005560.1161332913/antivirus.uqam.ca" -Subject: Warning: could not send message for past 1 day -Auto-Submitted: auto-generated (warning-timeout) - -This is a MIME-encapsulated message - ---k9JMDbg4005560.1161332913/antivirus.uqam.ca - - ********************************************** - ** THIS IS A WARNING MESSAGE ONLY ** - ** YOU DO NOT NEED TO RESEND YOUR MESSAGE ** - ********************************************** - -The original message was received at Thu, 19 Oct 2006 01:23:47 -0400 (EDT) -from py-out-1112.google.com [64.233.166.178] - - ----- Transcript of session follows ----- -... Deferred -Warning: message still undelivered after 1 day -Will keep trying until message is 5 days old - ---k9JMDbg4005560.1161332913/antivirus.uqam.ca -Content-Type: message/delivery-status - -Reporting-MTA: dns; antivirus.uqam.ca -Arrival-Date: Thu, 19 Oct 2006 01:23:47 -0400 (EDT) - -Final-Recipient: RFC822; larose.julie@courrier.uqam.ca -Action: delayed -Status: 4.5.0 -Diagnostic-Code: SMTP; -Last-Attempt-Date: Fri, 20 Oct 2006 04:28:33 -0400 (EDT) -Will-Retry-Until: Tue, 24 Oct 2006 01:23:47 -0400 (EDT) - ---k9JMDbg4005560.1161332913/antivirus.uqam.ca -Content-Type: message/rfc822 - -Return-Path: -Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) - by intrant.uqam.ca (8.13.6/8.12.2/uqam-filtres) with SMTP id k9J5Ni8o007263 - for ; Thu, 19 Oct 2006 01:23:47 -0400 (EDT) -X-UQAM-Spam-Filter: Filtre-Uqam re: abuse@uqam.ca -Received: by py-out-1112.google.com with SMTP id t32so610221pyc - for ; Wed, 18 Oct 2006 22:23:33 -0700 (PDT) -DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; - s=beta; d=gmail.com; - h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; - b=Fwt0k1kaMU+1kM1iTG0q4Xf94p9alSohgM7QQN0CSjfBYUUhT+J4Y6+ZWotaaSffV3gX86RE/n97n0yQ/33EgYKIifuEpa0hi2mg3KTmcDqlCjiDfih58Z998GEFfbhu0he2jsoB+k6AgVRFPwP6LMRi6T66vr2f7IOAmX2IHiU= -Received: by 10.65.241.20 with SMTP id t20mr15391984qbr; - Wed, 18 Oct 2006 15:10:03 -0700 (PDT) -Received: by 10.64.10.4 with HTTP; Wed, 18 Oct 2006 15:10:03 -0700 (PDT) -Message-ID: <89d7557c0610181510r6fa5ebd8n66a7deec71ade118@mail.gmail.com> -Date: Wed, 18 Oct 2006 18:10:03 -0400 -From: "=?ISO-8859-1?Q?RogE9?=" -To: larose.julie@courrier.uqam.ca -Subject: Est-ce toi ? -MIME-Version: 1.0 -Content-Type: text/plain; charset=ISO-8859-1; format=flowed -Content-Transfer-Encoding: 7bit -Content-Disposition: inline - -Salut, -je ne suis pas sur de m'adresser a la bonne personne. -Mais si jamais tu me reconnais :p, peux-tu repondre a ce mail ? -Merci. -Roger - ---k9JMDbg4005560.1161332913/antivirus.uqam.ca-- +X-Gmail-Received: b2c98353cc39d93e4204831226f778c200d28109 +Delivered-To: roor32@gmail.com +Received: by 10.64.10.4 with SMTP id 4cs594808qbj; + Fri, 20 Oct 2006 01:53:34 -0700 (PDT) +Received: by 10.65.224.11 with SMTP id b11mr149813qbr; + Fri, 20 Oct 2006 01:53:34 -0700 (PDT) +Return-Path: <> +Received: from anis.telecom.uqam.ca (anis.telecom.uqam.ca [132.208.250.6]) + by mx.google.com with ESMTP id e13si1575402qbe.2006.10.20.01.53.34; + Fri, 20 Oct 2006 01:53:34 -0700 (PDT) +Received-SPF: pass (google.com: best guess record for domain of anis.telecom.uqam.ca designates 132.208.250.6 as permitted sender) +Received: from anis4.telecom.uqam.ca (anis4.telecom.uqam.ca [132.208.250.236]) + by sortant.uqam.ca (8.13.6/8.12.1) with SMTP id k9K8SIwA023763 + for ; Fri, 20 Oct 2006 04:28:33 -0400 (EDT) +Received: from antivirus.uqam.ca ([127.0.0.1]) + by anis4.telecom.uqam.ca (SAVSMTP 3.1.1.32) with SMTP id M2006102004283404041 + for ; Fri, 20 Oct 2006 04:28:34 -0400 +Received: from localhost (localhost) + by antivirus.uqam.ca (8.13.6/8.12.1) id k9JMDbg4005560; + Fri, 20 Oct 2006 04:28:33 -0400 (EDT) +Date: Fri, 20 Oct 2006 04:28:33 -0400 (EDT) +From: Mail Delivery Subsystem +Message-Id: <200610200828.k9JMDbg4005560@antivirus.uqam.ca> +To: +MIME-Version: 1.0 +Content-Type: multipart/report; report-type=delivery-status; + boundary="k9JMDbg4005560.1161332913/antivirus.uqam.ca" +Subject: Warning: could not send message for past 1 day +Auto-Submitted: auto-generated (warning-timeout) + +This is a MIME-encapsulated message + +--k9JMDbg4005560.1161332913/antivirus.uqam.ca + + ********************************************** + ** THIS IS A WARNING MESSAGE ONLY ** + ** YOU DO NOT NEED TO RESEND YOUR MESSAGE ** + ********************************************** + +The original message was received at Thu, 19 Oct 2006 01:23:47 -0400 (EDT) +from py-out-1112.google.com [64.233.166.178] + + ----- Transcript of session follows ----- +... Deferred +Warning: message still undelivered after 1 day +Will keep trying until message is 5 days old + +--k9JMDbg4005560.1161332913/antivirus.uqam.ca +Content-Type: message/delivery-status + +Reporting-MTA: dns; antivirus.uqam.ca +Arrival-Date: Thu, 19 Oct 2006 01:23:47 -0400 (EDT) + +Final-Recipient: RFC822; larose.julie@courrier.uqam.ca +Action: delayed +Status: 4.5.0 +Diagnostic-Code: SMTP; +Last-Attempt-Date: Fri, 20 Oct 2006 04:28:33 -0400 (EDT) +Will-Retry-Until: Tue, 24 Oct 2006 01:23:47 -0400 (EDT) + +--k9JMDbg4005560.1161332913/antivirus.uqam.ca +Content-Type: message/rfc822 + +Return-Path: +Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) + by intrant.uqam.ca (8.13.6/8.12.2/uqam-filtres) with SMTP id k9J5Ni8o007263 + for ; Thu, 19 Oct 2006 01:23:47 -0400 (EDT) +X-UQAM-Spam-Filter: Filtre-Uqam re: abuse@uqam.ca +Received: by py-out-1112.google.com with SMTP id t32so610221pyc + for ; Wed, 18 Oct 2006 22:23:33 -0700 (PDT) +DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; + s=beta; d=gmail.com; + h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; + b=Fwt0k1kaMU+1kM1iTG0q4Xf94p9alSohgM7QQN0CSjfBYUUhT+J4Y6+ZWotaaSffV3gX86RE/n97n0yQ/33EgYKIifuEpa0hi2mg3KTmcDqlCjiDfih58Z998GEFfbhu0he2jsoB+k6AgVRFPwP6LMRi6T66vr2f7IOAmX2IHiU= +Received: by 10.65.241.20 with SMTP id t20mr15391984qbr; + Wed, 18 Oct 2006 15:10:03 -0700 (PDT) +Received: by 10.64.10.4 with HTTP; Wed, 18 Oct 2006 15:10:03 -0700 (PDT) +Message-ID: <89d7557c0610181510r6fa5ebd8n66a7deec71ade118@mail.gmail.com> +Date: Wed, 18 Oct 2006 18:10:03 -0400 +From: "=?ISO-8859-1?Q?RogE9?=" +To: larose.julie@courrier.uqam.ca +Subject: Est-ce toi ? +MIME-Version: 1.0 +Content-Type: text/plain; charset=ISO-8859-1; format=flowed +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + +Salut, +je ne suis pas sur de m'adresser a la bonne personne. +Mais si jamais tu me reconnais :p, peux-tu repondre a ce mail ? +Merci. +Roger + +--k9JMDbg4005560.1161332913/antivirus.uqam.ca-- diff --git a/spec/fixtures/emails/mime_emails/raw_email_with_multipart_mixed_quoted_boundary.eml b/spec/fixtures/emails/mime_emails/raw_email_with_multipart_mixed_quoted_boundary.eml index a9e230702..e4c402cd1 100644 --- a/spec/fixtures/emails/mime_emails/raw_email_with_multipart_mixed_quoted_boundary.eml +++ b/spec/fixtures/emails/mime_emails/raw_email_with_multipart_mixed_quoted_boundary.eml @@ -1,50 +1,50 @@ -From email_test@me.nowhere -Return-Path: -Received: from omta05sl.mx.bigpond.com by me.nowhere.else with ESMTP id 632BD5758 for ; Sun, 21 Oct 2007 19:38:21 +1000 -Received: from oaamta05sl.mx.bigpond.com by omta05sl.mx.bigpond.com with ESMTP id <20071021093820.HSPC16667.omta05sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com> for ; Sun, 21 Oct 2007 19:38:20 +1000 -Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 -Date: Sun, 21 Oct 2007 19:38:13 +1000 -From: Mikel Lindsaar -Reply-To: Mikel Lindsaar -To: mikel@me.nowhere -Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> -Subject: Testing outlook -Subject: Another PDF -Mime-Version: 1.0 -Content-Type: multipart/mixed; - boundary="----=_Part_2192_32400445.1115745999735" -X-Virus-Scanned: amavisd-new at textdrive.com - -------=_Part_2192_32400445.1115745999735 -Content-Type: text/plain; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - -Just attaching another PDF, here, to see what the message looks like, -and to see if I can figure out what is going wrong here. - -------=_Part_2192_32400445.1115745999735 -Content-Type: application/pdf; name="broken.pdf" -Content-Transfer-Encoding: base64 -Content-Disposition: attachment; filename="broken.pdf" - -JVBERi0xLjQNCiXk9tzfDQoxIDAgb2JqDQo8PCAvTGVuZ3RoIDIgMCBSDQogICAvRmlsdGVyIC9G -bGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KeJy9Wt2KJbkNvm/od6jrhZxYln9hWEh2p+8HBvICySaE -ycLuTV4/1ifJ9qnq09NpSBimu76yLUuy/qzqcPz7+em3Ixx/CDc6CsXxs3b5+fvfjr/8cPz6/BRu -rbfAx/n3739/fuJylJ5u5fjX81OuDr4deK4Bz3z/aDP+8fz0yw8g0Ofq7ktr1Mn+u28rvhy/jVeD -QSa+9YNKHP/pxjvDNfVAx/m3MFz54FhvTbaseaxiDoN2LeMVMw+yA7RbHSCDzxZuaYB2E1Yay7QU -x89vz0+tyFDKMlAHK5yqLmnjF+c4RjEiQIUeKwblXMe+AsZjN1J5yGQL5DHpDHksurM81rF6PKab -gK6zAarIDzIiUY23rJsN9iorAE816aIu6lsgAdQFsuhhkHOUFgVjp2GjMqSewITXNQ27jrMeamkg -1rPI3iLWG2CIaSBB+V1245YVRICGbbpYKHc2USFDl6M09acQVQYhlwIrkBNLISvXhGlF1wi5FHCw -wxZkoGNJlVeJCEsqKA+3YAV5AMb6KkeaqEJQmFKKQU8T1pRi2ihE1Y4CDrqoYFFXYjJJOatsyzuI -8SIlykuxKTMibWK8H1PgEvqYgs4GmQSrEjJAalgGirIhik+p4ZQN9E3ETFPAHE1b8pp1l/0Rc1gl -fQs0ABWvyoZZzU8VnPXwVVcO9BEsyjEJaO6eBoZRyKGlrKoYoOygA8BGIzgwN3RQ15ouigG5idZQ -fx2U4Db2CqiLO0WHAZoylGiCAqhniNQjFjQPSkmjwfNTgQ6M1Ih+eWo36wFmjIxDJZiGUBiWsAyR -xX3EekGOizkGI96Ol9zVZTAivikURhRsHh2E3JhWMpSTZCnnonrLhMCodgrNcgo4uyJUJc6qnVss -nrGd1Ptr0YwisCOYyIbUwVjV4xBUNLbguSO2YHujonAMJkMdSI7bIw91Akq2AUlMUWGFTMAOamjU -OvZQCxIkY2pCpMFo/IwLdVLHs6nddwTRrgoVbvLU9eB0G4EMndV0TNoxHbt3JBWwK6hhv3iHfDtF -yokB302IpEBTnWICde4uYc/1khDbSIkQopO6lcqamGBu1OSE3N5IPSsZX00CkSHRiiyx6HQIShsS -HSVNswdVsaOUSAWq9aYhDtGDaoG5a3lBGkYt/lFlBFt1UqrYnzVtUpUQnLiZeouKgf1KhRBViRRk -ExepJCzTwEmFDalIRbLEGtw0gfpESOpIAF/NnpPzcVCG86s0g2DuSyd41uhNGbEgaSrWEXORErbw -------=_Part_2192_32400445.1115745999735-- - +From email_test@me.nowhere +Return-Path: +Received: from omta05sl.mx.bigpond.com by me.nowhere.else with ESMTP id 632BD5758 for ; Sun, 21 Oct 2007 19:38:21 +1000 +Received: from oaamta05sl.mx.bigpond.com by omta05sl.mx.bigpond.com with ESMTP id <20071021093820.HSPC16667.omta05sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Date: Sun, 21 Oct 2007 19:38:13 +1000 +From: Mikel Lindsaar +Reply-To: Mikel Lindsaar +To: mikel@me.nowhere +Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> +Subject: Testing outlook +Subject: Another PDF +Mime-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_2192_32400445.1115745999735" +X-Virus-Scanned: amavisd-new at textdrive.com + +------=_Part_2192_32400445.1115745999735 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + +Just attaching another PDF, here, to see what the message looks like, +and to see if I can figure out what is going wrong here. + +------=_Part_2192_32400445.1115745999735 +Content-Type: application/pdf; name="broken.pdf" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="broken.pdf" + +JVBERi0xLjQNCiXk9tzfDQoxIDAgb2JqDQo8PCAvTGVuZ3RoIDIgMCBSDQogICAvRmlsdGVyIC9G +bGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KeJy9Wt2KJbkNvm/od6jrhZxYln9hWEh2p+8HBvICySaE +ycLuTV4/1ifJ9qnq09NpSBimu76yLUuy/qzqcPz7+em3Ixx/CDc6CsXxs3b5+fvfjr/8cPz6/BRu +rbfAx/n3739/fuJylJ5u5fjX81OuDr4deK4Bz3z/aDP+8fz0yw8g0Ofq7ktr1Mn+u28rvhy/jVeD +QSa+9YNKHP/pxjvDNfVAx/m3MFz54FhvTbaseaxiDoN2LeMVMw+yA7RbHSCDzxZuaYB2E1Yay7QU +x89vz0+tyFDKMlAHK5yqLmnjF+c4RjEiQIUeKwblXMe+AsZjN1J5yGQL5DHpDHksurM81rF6PKab +gK6zAarIDzIiUY23rJsN9iorAE816aIu6lsgAdQFsuhhkHOUFgVjp2GjMqSewITXNQ27jrMeamkg +1rPI3iLWG2CIaSBB+V1245YVRICGbbpYKHc2USFDl6M09acQVQYhlwIrkBNLISvXhGlF1wi5FHCw +wxZkoGNJlVeJCEsqKA+3YAV5AMb6KkeaqEJQmFKKQU8T1pRi2ihE1Y4CDrqoYFFXYjJJOatsyzuI +8SIlykuxKTMibWK8H1PgEvqYgs4GmQSrEjJAalgGirIhik+p4ZQN9E3ETFPAHE1b8pp1l/0Rc1gl +fQs0ABWvyoZZzU8VnPXwVVcO9BEsyjEJaO6eBoZRyKGlrKoYoOygA8BGIzgwN3RQ15ouigG5idZQ +fx2U4Db2CqiLO0WHAZoylGiCAqhniNQjFjQPSkmjwfNTgQ6M1Ih+eWo36wFmjIxDJZiGUBiWsAyR +xX3EekGOizkGI96Ol9zVZTAivikURhRsHh2E3JhWMpSTZCnnonrLhMCodgrNcgo4uyJUJc6qnVss +nrGd1Ptr0YwisCOYyIbUwVjV4xBUNLbguSO2YHujonAMJkMdSI7bIw91Akq2AUlMUWGFTMAOamjU +OvZQCxIkY2pCpMFo/IwLdVLHs6nddwTRrgoVbvLU9eB0G4EMndV0TNoxHbt3JBWwK6hhv3iHfDtF +yokB302IpEBTnWICde4uYc/1khDbSIkQopO6lcqamGBu1OSE3N5IPSsZX00CkSHRiiyx6HQIShsS +HSVNswdVsaOUSAWq9aYhDtGDaoG5a3lBGkYt/lFlBFt1UqrYnzVtUpUQnLiZeouKgf1KhRBViRRk +ExepJCzTwEmFDalIRbLEGtw0gfpESOpIAF/NnpPzcVCG86s0g2DuSyd41uhNGbEgaSrWEXORErbw +------=_Part_2192_32400445.1115745999735-- + diff --git a/spec/fixtures/emails/mime_emails/raw_email_with_nested_attachment.eml b/spec/fixtures/emails/mime_emails/raw_email_with_nested_attachment.eml index 429c408c5..9d49e6fab 100644 --- a/spec/fixtures/emails/mime_emails/raw_email_with_nested_attachment.eml +++ b/spec/fixtures/emails/mime_emails/raw_email_with_nested_attachment.eml @@ -1,100 +1,100 @@ -From jamis@37signals.com Thu Feb 22 11:20:31 2007 -Mime-Version: 1.0 (Apple Message framework v752.3) -Message-Id: <2CCE0408-10C7-4045-9B16-A1C11C31469B@37signals.com> -Content-Type: multipart/signed; - micalg=sha1; - boundary=Apple-Mail-42-587703407; - protocol="application/pkcs7-signature" -To: Jamis Buck -Subject: Testing attachments -From: Jamis Buck -Date: Thu, 22 Feb 2007 11:20:31 -0700 - - ---Apple-Mail-42-587703407 -Content-Type: multipart/mixed; - boundary=Apple-Mail-41-587703287 - - ---Apple-Mail-41-587703287 -Content-Transfer-Encoding: 7bit -Content-Type: text/plain; - charset=US-ASCII; - format=flowed - -Here is a test of an attachment via email. - -- Jamis - - ---Apple-Mail-41-587703287 -Content-Transfer-Encoding: base64 -Content-Type: image/png; - x-unix-mode=0644; - name=byo-ror-cover.png -Content-Disposition: inline; - filename=truncated.png - -iVBORw0KGgoAAAANSUhEUgAAAKUAAADXCAYAAAB7wZEQAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz -AAALEgAACxIB0t1+/AAAABd0RVh0Q3JlYXRpb24gVGltZQAxLzI1LzIwMDeD9CJVAAAAGHRFWHRT -b2Z0d2FyZQBBZG9iZSBGaXJld29ya3NPsx9OAAAyBWlUWHRYTUw6Y29tLmFkb2JlLnhtcDw/eHBh -Y2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1l -dGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1j -MDIwIDEuMjU1NzE2LCBUdWUgT2N0IDEwIDIwMDYgMjM6MTY6MzQiPgogICA8cmRmOlJERiB4bWxu -czpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAg -ICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0 -dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFk -b2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVE -YXRlPjIwMDctMDEtMjVUMDU6Mjg6MjFaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpN -b2RpZnlEYXRlPjIwMDctMDEtMjVUMDU6Mjg6MjFaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9y -ZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAg -ICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAg -ICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0 -hhojpmnJMfaYFmSkXWg5PGCmHXVj/c9At0hSK2xGdd8F3muk0VFjb4f5Ue0ksQ8qAcq0delaXhdb -DjKNnF+3B3t9kObZYmk7AZgWYqO9anpR3wpM9sQ5XslB9a+kWyTtNb0fOmudzGHfPFBQDKesyycm -DBL7Cw5bXjIEuci+SSOm/LYnXDZu6iuPEj8lYBb+OU8xx1f9m+e5rhJiYKqjo5vHfiZp+VUkW9xc -Ufd6JHNWc47PkQqb9ie3SLEZB/ZqyAssiqURY+G35iOMZUrHbasHnb80QAPv9FHtAbJIyro7bi5b -ai2TEAKen5+LJNWrglZjm3UbZvt7KryA2J5b5J1jZF8kL6GzvG1Zqx54Y1y7J7n20wMOt9frG2sW -uwGP07kNz3732vf6bfvAvLldfS+9fts2euXY37D+R29FGZdlnhzV4TTFmPJduBP2RbNNua4rTqcT -Qt7Xy1KUB0AHSdP5AZQYvHZg7WD1XvYeMO1A9HhZPqMX5KXbMBrn2efxns/ee21674efxz4Tp/fq -2HZ648dgYaC1i3Vq1IbNPq3PvDTPezY9FaRISjvnzWqdgcWN8EJgjnNq+Z7ktOm9l2Nfth28EZi4 -bG/we5JwxM+Tql47/D/X6b38I8/RyxvxPJrX6zvQbo3h9jyJx+C0ALX327QETHl5eYlaYCT5rPTb -+5/rAq26t3lKIxV/p88hq6ptngdgCzoPjJqndiLfc/6y5A14WeDFGNPct4iUsJBV2bYzLEV7m83s -6Rp63VPhHKC/g/LzaU9qexJRr56043JWinqAtfZqsSm1sjoznthl54dtCqv+uL4nIY+oYWuc3+nH -kGfn8b0HQpvOYLQAZUDanbJs3jQhITZEgdarZK+cO6ySlL13rut5nFaN23s7u3Snz6eRPTkCoc2/ -Vp1zHfZVFpZ87FiMVLV1iqyK5rlzfji2GzjfDsodlD+Weo5UD4h6PwKqzQMqID0tq2VjjFVSMpis -ZLRAs7sePZBZAHI+gIanB8I7MD+femAceeUe2Kxa5jS950kZ1p5eNEdeX1+jFmSpZ+1EdWCsDcne -NPNgUHNw3aYpnzv9PGTX0uo94EtN9qq1rOdxe3kc79T8ukeHJJ8Fnxej6qlylbLLsjQLOy6Xy2a1 -kefs/N+nM7+S7IG5/E5Yc7F003pWErLjbH0O5cGadiMptSB/DZ5U5DI9yeg5MFYyMj8lC/Y7/Xjq -OZlWcnpg9aQfXz2HRq+Wn5xOp6gN8tWq8R44e2pfyzLYemEgprst+XXk2Zj2nXlbsG05BprndTMv -C3QRaXczshhVsHnMgfYn80Y2g5JureA6wBasPeP7LkE/jvZMJAaf/g/U2RelHsisvan5FqweIAHg -Pwc7L68GxvVDAAAAAElFTkSuQmCC - ---Apple-Mail-41-587703287-- - ---Apple-Mail-42-587703407 -Content-Transfer-Encoding: base64 -Content-Type: application/pkcs7-signature; - name=smime.p7s -Content-Disposition: attachment; - filename=smime.p7s - -MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGJzCCAuAw -ggJJoAMCAQICEFjnFNYXwDEZRWY5EkfzopUwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx -JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ -ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDkxMjE3MDExMloXDTA3MDkxMjE3MDEx -MlowRTEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEiMCAGCSqGSIb3DQEJARYTamFt -aXNAMzdzaWduYWxzLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO2A9JeOFIFJ -G6z8pTcAldrZ2nMe+Xb1tNrbHgoVzN/QhHXM4qst2Ml93cmFLjMmwG7P9RJeU4oNx+jTqVoBB7NV -Ne1/o56Do0KhfMZ9iUDQdPLbkZMq4EEpFMdm6PyM3muRKwPhj66iAWe/osCb8DowUK2f66vaRx0Z -Y0MQHIIrXE02Ta4IfAhIfPqBLkZ4WgTYBHN9vMdYea1jF0GO4gqGk1wqwb3yxv2QMYMbwJ6SI+k/ -ZjkSR/OilTCBhwYLKoZIhvcNAQkQAgsxeKB2MGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3 -dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1h -aWwgSXNzdWluZyBDQQIQWOcU1hfAMRlFZjkSR/OilTANBgkqhkiG9w0BAQEFAASCAQCfwQiC3v6/ -yleRDGv3bJ4nQYQ+c3mz3+mn3Xi6uU35n3piwxZZaWRdmLyiXPvU+QReHpSf3l2qsEZM3sdE0XF9 -eRul/+QTFJcDNXOEAxG1zC2Gpz+6c6RrX4Ou12Pwkp+pNrZWTSY/mZgdqcArupOBcZi7qBjoWcy5 -wb54dfvSSjrjmqLbkH/E8ww/6gGQuU/xXpAUZgUrTmQHrNKeIdSh5oDkOxFaFWvnmb8Z/2ixKqW/ -Ux6WqamyvBtTs/5YBEtnpZOk+uVoscYEUBhU+DVJ2OSvTdXSivMtBdXmGTsG22k+P1NGUHi/A7ev -xPaO0uk4V8xyjNlN4HPuGpkrlXwPAAAAAAAA - ---Apple-Mail-42-587703407-- +From jamis@37signals.com Thu Feb 22 11:20:31 2007 +Mime-Version: 1.0 (Apple Message framework v752.3) +Message-Id: <2CCE0408-10C7-4045-9B16-A1C11C31469B@37signals.com> +Content-Type: multipart/signed; + micalg=sha1; + boundary=Apple-Mail-42-587703407; + protocol="application/pkcs7-signature" +To: Jamis Buck +Subject: Testing attachments +From: Jamis Buck +Date: Thu, 22 Feb 2007 11:20:31 -0700 + + +--Apple-Mail-42-587703407 +Content-Type: multipart/mixed; + boundary=Apple-Mail-41-587703287 + + +--Apple-Mail-41-587703287 +Content-Transfer-Encoding: 7bit +Content-Type: text/plain; + charset=US-ASCII; + format=flowed + +Here is a test of an attachment via email. + +- Jamis + + +--Apple-Mail-41-587703287 +Content-Transfer-Encoding: base64 +Content-Type: image/png; + x-unix-mode=0644; + name=byo-ror-cover.png +Content-Disposition: inline; + filename=truncated.png + +iVBORw0KGgoAAAANSUhEUgAAAKUAAADXCAYAAAB7wZEQAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz +AAALEgAACxIB0t1+/AAAABd0RVh0Q3JlYXRpb24gVGltZQAxLzI1LzIwMDeD9CJVAAAAGHRFWHRT +b2Z0d2FyZQBBZG9iZSBGaXJld29ya3NPsx9OAAAyBWlUWHRYTUw6Y29tLmFkb2JlLnhtcDw/eHBh +Y2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1l +dGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1j +MDIwIDEuMjU1NzE2LCBUdWUgT2N0IDEwIDIwMDYgMjM6MTY6MzQiPgogICA8cmRmOlJERiB4bWxu +czpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAg +ICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0 +dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFk +b2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVE +YXRlPjIwMDctMDEtMjVUMDU6Mjg6MjFaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpN +b2RpZnlEYXRlPjIwMDctMDEtMjVUMDU6Mjg6MjFaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9y +ZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAg +ICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAg +ICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0 +hhojpmnJMfaYFmSkXWg5PGCmHXVj/c9At0hSK2xGdd8F3muk0VFjb4f5Ue0ksQ8qAcq0delaXhdb +DjKNnF+3B3t9kObZYmk7AZgWYqO9anpR3wpM9sQ5XslB9a+kWyTtNb0fOmudzGHfPFBQDKesyycm +DBL7Cw5bXjIEuci+SSOm/LYnXDZu6iuPEj8lYBb+OU8xx1f9m+e5rhJiYKqjo5vHfiZp+VUkW9xc +Ufd6JHNWc47PkQqb9ie3SLEZB/ZqyAssiqURY+G35iOMZUrHbasHnb80QAPv9FHtAbJIyro7bi5b +ai2TEAKen5+LJNWrglZjm3UbZvt7KryA2J5b5J1jZF8kL6GzvG1Zqx54Y1y7J7n20wMOt9frG2sW +uwGP07kNz3732vf6bfvAvLldfS+9fts2euXY37D+R29FGZdlnhzV4TTFmPJduBP2RbNNua4rTqcT +Qt7Xy1KUB0AHSdP5AZQYvHZg7WD1XvYeMO1A9HhZPqMX5KXbMBrn2efxns/ee21674efxz4Tp/fq +2HZ648dgYaC1i3Vq1IbNPq3PvDTPezY9FaRISjvnzWqdgcWN8EJgjnNq+Z7ktOm9l2Nfth28EZi4 +bG/we5JwxM+Tql47/D/X6b38I8/RyxvxPJrX6zvQbo3h9jyJx+C0ALX327QETHl5eYlaYCT5rPTb ++5/rAq26t3lKIxV/p88hq6ptngdgCzoPjJqndiLfc/6y5A14WeDFGNPct4iUsJBV2bYzLEV7m83s +6Rp63VPhHKC/g/LzaU9qexJRr56043JWinqAtfZqsSm1sjoznthl54dtCqv+uL4nIY+oYWuc3+nH +kGfn8b0HQpvOYLQAZUDanbJs3jQhITZEgdarZK+cO6ySlL13rut5nFaN23s7u3Snz6eRPTkCoc2/ +Vp1zHfZVFpZ87FiMVLV1iqyK5rlzfji2GzjfDsodlD+Weo5UD4h6PwKqzQMqID0tq2VjjFVSMpis +ZLRAs7sePZBZAHI+gIanB8I7MD+femAceeUe2Kxa5jS950kZ1p5eNEdeX1+jFmSpZ+1EdWCsDcne +NPNgUHNw3aYpnzv9PGTX0uo94EtN9qq1rOdxe3kc79T8ukeHJJ8Fnxej6qlylbLLsjQLOy6Xy2a1 +kefs/N+nM7+S7IG5/E5Yc7F003pWErLjbH0O5cGadiMptSB/DZ5U5DI9yeg5MFYyMj8lC/Y7/Xjq +OZlWcnpg9aQfXz2HRq+Wn5xOp6gN8tWq8R44e2pfyzLYemEgprst+XXk2Zj2nXlbsG05BprndTMv +C3QRaXczshhVsHnMgfYn80Y2g5JureA6wBasPeP7LkE/jvZMJAaf/g/U2RelHsisvan5FqweIAHg +Pwc7L68GxvVDAAAAAElFTkSuQmCC + +--Apple-Mail-41-587703287-- + +--Apple-Mail-42-587703407 +Content-Transfer-Encoding: base64 +Content-Type: application/pkcs7-signature; + name=smime.p7s +Content-Disposition: attachment; + filename=smime.p7s + +MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGJzCCAuAw +ggJJoAMCAQICEFjnFNYXwDEZRWY5EkfzopUwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx +JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ +ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDkxMjE3MDExMloXDTA3MDkxMjE3MDEx +MlowRTEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEiMCAGCSqGSIb3DQEJARYTamFt +aXNAMzdzaWduYWxzLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO2A9JeOFIFJ +G6z8pTcAldrZ2nMe+Xb1tNrbHgoVzN/QhHXM4qst2Ml93cmFLjMmwG7P9RJeU4oNx+jTqVoBB7NV +Ne1/o56Do0KhfMZ9iUDQdPLbkZMq4EEpFMdm6PyM3muRKwPhj66iAWe/osCb8DowUK2f66vaRx0Z +Y0MQHIIrXE02Ta4IfAhIfPqBLkZ4WgTYBHN9vMdYea1jF0GO4gqGk1wqwb3yxv2QMYMbwJ6SI+k/ +ZjkSR/OilTCBhwYLKoZIhvcNAQkQAgsxeKB2MGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3 +dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1h +aWwgSXNzdWluZyBDQQIQWOcU1hfAMRlFZjkSR/OilTANBgkqhkiG9w0BAQEFAASCAQCfwQiC3v6/ +yleRDGv3bJ4nQYQ+c3mz3+mn3Xi6uU35n3piwxZZaWRdmLyiXPvU+QReHpSf3l2qsEZM3sdE0XF9 +eRul/+QTFJcDNXOEAxG1zC2Gpz+6c6RrX4Ou12Pwkp+pNrZWTSY/mZgdqcArupOBcZi7qBjoWcy5 +wb54dfvSSjrjmqLbkH/E8ww/6gGQuU/xXpAUZgUrTmQHrNKeIdSh5oDkOxFaFWvnmb8Z/2ixKqW/ +Ux6WqamyvBtTs/5YBEtnpZOk+uVoscYEUBhU+DVJ2OSvTdXSivMtBdXmGTsG22k+P1NGUHi/A7ev +xPaO0uk4V8xyjNlN4HPuGpkrlXwPAAAAAAAA + +--Apple-Mail-42-587703407-- diff --git a/spec/fixtures/emails/mime_emails/raw_email_with_quoted_illegal_boundary.eml b/spec/fixtures/emails/mime_emails/raw_email_with_quoted_illegal_boundary.eml index 2c4e2d549..fd0aa4f61 100644 --- a/spec/fixtures/emails/mime_emails/raw_email_with_quoted_illegal_boundary.eml +++ b/spec/fixtures/emails/mime_emails/raw_email_with_quoted_illegal_boundary.eml @@ -1,58 +1,58 @@ -From email_test@me.nowhere -Return-Path: -Received: from omta05sl.mx.bigpond.com by me.nowhere.else with ESMTP id 632BD5758 for ; Sun, 21 Oct 2007 19:38:21 +1000 -Received: from oaamta05sl.mx.bigpond.com by omta05sl.mx.bigpond.com with ESMTP id <20071021093820.HSPC16667.omta05sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com> for ; Sun, 21 Oct 2007 19:38:20 +1000 -Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 -Date: Sun, 21 Oct 2007 19:38:13 +1000 -From: Mikel Lindsaar -Reply-To: Mikel Lindsaar -To: mikel@me.nowhere -Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> -Subject: Testing outlook -Mime-Version: 1.0 -Content-Type: multipart/alternative; boundary="----=_NextPart_000_0093_01C81419.EB75E850" -X-Get_mail_default: mikel@me.nowhere.else -X-Priority: 3 -X-Original-To: mikel@me.nowhere -X-Mailer: Microsoft Outlook Express 6.00.2900.3138 -Delivered-To: mikel@me.nowhere -X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.3138 -X-Msmail-Priority: Normal - -This is a multi-part message in MIME format. - - -------=_NextPart_000_0093_01C81419.EB75E850 -Content-Type: text/plain; charset=iso-8859-1 -Content-Transfer-Encoding: Quoted-printable - -Hello -This is an outlook test - -So there. - -Me. - -------=_NextPart_000_0093_01C81419.EB75E850 -Content-Type: text/html; charset=iso-8859-1 -Content-Transfer-Encoding: Quoted-printable - - - - - - - - -
    Hello
    -
    This is an outlook=20 -test
    -
     
    -
    So there.
    -
     
    -
    Me.
    - - -------=_NextPart_000_0093_01C81419.EB75E850-- - +From email_test@me.nowhere +Return-Path: +Received: from omta05sl.mx.bigpond.com by me.nowhere.else with ESMTP id 632BD5758 for ; Sun, 21 Oct 2007 19:38:21 +1000 +Received: from oaamta05sl.mx.bigpond.com by omta05sl.mx.bigpond.com with ESMTP id <20071021093820.HSPC16667.omta05sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Date: Sun, 21 Oct 2007 19:38:13 +1000 +From: Mikel Lindsaar +Reply-To: Mikel Lindsaar +To: mikel@me.nowhere +Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> +Subject: Testing outlook +Mime-Version: 1.0 +Content-Type: multipart/alternative; boundary="----=_NextPart_000_0093_01C81419.EB75E850" +X-Get_mail_default: mikel@me.nowhere.else +X-Priority: 3 +X-Original-To: mikel@me.nowhere +X-Mailer: Microsoft Outlook Express 6.00.2900.3138 +Delivered-To: mikel@me.nowhere +X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.3138 +X-Msmail-Priority: Normal + +This is a multi-part message in MIME format. + + +------=_NextPart_000_0093_01C81419.EB75E850 +Content-Type: text/plain; charset=iso-8859-1 +Content-Transfer-Encoding: Quoted-printable + +Hello +This is an outlook test + +So there. + +Me. + +------=_NextPart_000_0093_01C81419.EB75E850 +Content-Type: text/html; charset=iso-8859-1 +Content-Transfer-Encoding: Quoted-printable + + + + + + + + +
    Hello
    +
    This is an outlook=20 +test
    +
     
    +
    So there.
    +
     
    +
    Me.
    + + +------=_NextPart_000_0093_01C81419.EB75E850-- + diff --git a/spec/fixtures/emails/mime_emails/sig_only_email.eml b/spec/fixtures/emails/mime_emails/sig_only_email.eml index 581ff7f7c..61721e979 100644 --- a/spec/fixtures/emails/mime_emails/sig_only_email.eml +++ b/spec/fixtures/emails/mime_emails/sig_only_email.eml @@ -1,29 +1,29 @@ -Date: Mon, 4 Jun 2007 15:01:31 -0700 -From: Test -To: Mikel -Subject: Re: Testing multipart/signed -Message-ID: <20070604150131.40d4fa1e@reforged> -Mime-Version: 1.0 -Content-Type: multipart/signed; boundary=Sig_2GIY2xfzqSADMmu9sKGJqWm; - protocol="application/pgp-signature"; micalg=PGP-SHA1 - ---Sig_2GIY2xfzqSADMmu9sKGJqWm -Content-Type: text/plain; charset=US-ASCII -Content-Transfer-Encoding: quoted-printable - -This is random text, not what has been signed below, ie, this sig -email is not signed correctly. - ---Sig_2GIY2xfzqSADMmu9sKGJqWm -Content-Type: application/pgp-signature; name=signature.asc -Content-Disposition: attachment; filename=signature.asc - ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.6 (GNU/Linux) - -iD8DB1111Iu7dfRchrkBInkRArniAKCue17JOxXBiAZHwLy3uFacU+pmhwCgwzhf -V5YSPv2xmYOA6mJ6oVaasseQ= -=T7p9 ------END PGP SIGNATURE----- - ---Sig_2GIY2xfzqSADMmu9sKGJqWm-- +Date: Mon, 4 Jun 2007 15:01:31 -0700 +From: Test +To: Mikel +Subject: Re: Testing multipart/signed +Message-ID: <20070604150131.40d4fa1e@reforged> +Mime-Version: 1.0 +Content-Type: multipart/signed; boundary=Sig_2GIY2xfzqSADMmu9sKGJqWm; + protocol="application/pgp-signature"; micalg=PGP-SHA1 + +--Sig_2GIY2xfzqSADMmu9sKGJqWm +Content-Type: text/plain; charset=US-ASCII +Content-Transfer-Encoding: quoted-printable + +This is random text, not what has been signed below, ie, this sig +email is not signed correctly. + +--Sig_2GIY2xfzqSADMmu9sKGJqWm +Content-Type: application/pgp-signature; name=signature.asc +Content-Disposition: attachment; filename=signature.asc + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.6 (GNU/Linux) + +iD8DB1111Iu7dfRchrkBInkRArniAKCue17JOxXBiAZHwLy3uFacU+pmhwCgwzhf +V5YSPv2xmYOA6mJ6oVaasseQ= +=T7p9 +-----END PGP SIGNATURE----- + +--Sig_2GIY2xfzqSADMmu9sKGJqWm-- diff --git a/spec/fixtures/emails/mime_emails/two_from_in_message.eml b/spec/fixtures/emails/mime_emails/two_from_in_message.eml index f2dfbc173..733cf1178 100644 --- a/spec/fixtures/emails/mime_emails/two_from_in_message.eml +++ b/spec/fixtures/emails/mime_emails/two_from_in_message.eml @@ -1,42 +1,42 @@ -Return-Path: -Received: from mail-xxx.google.com (mail-xxx.google.com [0.0.0.0]) - by smtp.test.com (Postfix) with ESMTP id xxxx - for ; Wed, 2 Dec 2009 09:39:57 +0000 (UTC) -Received: by qyk6 with SMTP id 6so3112qyk.3 - for ; Wed, 02 Dec 2009 01:39:53 -0800 (PST) -MIME-Version: 1.0 -Received: by 0.0.0.0 with SMTP id xxx.000.0000000000000; Wed, - 02 Dec 2009 01:39:53 -0800 (PST) -In-Reply-To: <8fc5086d0912020131y377ba0ccpf8f14783cfc3014a@test.com> -References: <8fc5086d0912020131y377ba0ccpf8f14783cfc3014a@test.com> -From: Tester 1 -Date: Wed, 2 Dec 2009 22:39:33 +1300 -Message-ID: <8fc5086d0912020139y1564ad32jb4f4209fa464f4a6@test.com> -Subject: Sending messages include last little bit -To: tester2@test.com -Content-Type: multipart/alternative; boundary=00c09fa216eb1bfc0a0479bba823 - ---00c09fa216eb1bfc0a0479bba823 -Content-Type: text/plain; charset=ISO-8859-1 - -When sending email: -* From Hotmail you get the ads as well. -* From GMail you also get the person's signature. - -I'm curious, and I might do some digging tomorrow as well, to see if its -possible to strip the last little bit (signature/ads) from email messages. - ---00c09fa216eb1bfc0a0479bba823 -Content-Type: text/html; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable - -
    When sending ema= -il:
    * From Hotmail you get the ads as well.
    * Fr= -om GMail you also get the person's signature.

    = -I'm curious, and I might do some digging tomorrow as well, to see if it= -s possible to strip the last little bit (signature/ads) from email messages= -.
    - -
    - +Return-Path: +Received: from mail-xxx.google.com (mail-xxx.google.com [0.0.0.0]) + by smtp.test.com (Postfix) with ESMTP id xxxx + for ; Wed, 2 Dec 2009 09:39:57 +0000 (UTC) +Received: by qyk6 with SMTP id 6so3112qyk.3 + for ; Wed, 02 Dec 2009 01:39:53 -0800 (PST) +MIME-Version: 1.0 +Received: by 0.0.0.0 with SMTP id xxx.000.0000000000000; Wed, + 02 Dec 2009 01:39:53 -0800 (PST) +In-Reply-To: <8fc5086d0912020131y377ba0ccpf8f14783cfc3014a@test.com> +References: <8fc5086d0912020131y377ba0ccpf8f14783cfc3014a@test.com> +From: Tester 1 +Date: Wed, 2 Dec 2009 22:39:33 +1300 +Message-ID: <8fc5086d0912020139y1564ad32jb4f4209fa464f4a6@test.com> +Subject: Sending messages include last little bit +To: tester2@test.com +Content-Type: multipart/alternative; boundary=00c09fa216eb1bfc0a0479bba823 + +--00c09fa216eb1bfc0a0479bba823 +Content-Type: text/plain; charset=ISO-8859-1 + +When sending email: +* From Hotmail you get the ads as well. +* From GMail you also get the person's signature. + +I'm curious, and I might do some digging tomorrow as well, to see if its +possible to strip the last little bit (signature/ads) from email messages. + +--00c09fa216eb1bfc0a0479bba823 +Content-Type: text/html; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable + +
    When sending ema= +il:
    * From Hotmail you get the ads as well.
    * Fr= +om GMail you also get the person's signature.

    = +I'm curious, and I might do some digging tomorrow as well, to see if it= +s possible to strip the last little bit (signature/ads) from email messages= +.
    + +
    + --00c09fa216eb1bfc0a0479bba823-- \ No newline at end of file diff --git a/spec/fixtures/emails/multi_charset/japanese.eml b/spec/fixtures/emails/multi_charset/japanese.eml index a36b0f2b6..f7a140c08 100644 --- a/spec/fixtures/emails/multi_charset/japanese.eml +++ b/spec/fixtures/emails/multi_charset/japanese.eml @@ -1,9 +1,9 @@ -MIME-Version: 1.0 -Subject: =?UTF-8?B?44G+44G/44KA44KB44KC?= -From: Mikel Lindsaar -To: =?UTF-8?B?44G/44GR44KL?= -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: base64 - -44GL44GN44GP44GI44GTCgotLSAKaHR0cDovL2xpbmRzYWFyLm5ldC8KUmFpbHMsIFJTcGVjIGFu +MIME-Version: 1.0 +Subject: =?UTF-8?B?44G+44G/44KA44KB44KC?= +From: Mikel Lindsaar +To: =?UTF-8?B?44G/44GR44KL?= +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: base64 + +44GL44GN44GP44GI44GTCgotLSAKaHR0cDovL2xpbmRzYWFyLm5ldC8KUmFpbHMsIFJTcGVjIGFu ZCBMaWZlIGJsb2cuLi4uCg== \ No newline at end of file diff --git a/spec/fixtures/emails/multi_charset/japanese_attachment.eml b/spec/fixtures/emails/multi_charset/japanese_attachment.eml index 8fec40dbb..b3640237a 100644 --- a/spec/fixtures/emails/multi_charset/japanese_attachment.eml +++ b/spec/fixtures/emails/multi_charset/japanese_attachment.eml @@ -1,27 +1,27 @@ -MIME-Version: 1.0 -Received: by 10.231.35.72 with HTTP; Fri, 16 Oct 2009 05:39:34 -0700 (PDT) -Date: Fri, 16 Oct 2009 23:39:34 +1100 -Delivered-To: raasdnil@gmail.com -Message-ID: <57a815bf0910160539m64240421gb35ea52e101aedbc@mail.gmail.com> -Subject: testing -From: Mikel Lindsaar -To: Mikel Lindsaar -Content-Type: multipart/mixed; boundary=00032557395e3572cf04760cb060 - ---00032557395e3572cf04760cb060 -Content-Type: text/plain; charset=UTF-8 - -testing - --- -http://lindsaar.net/ -Rails, RSpec and Life blog.... - ---00032557395e3572cf04760cb060 -Content-Type: text/plain; charset=UTF-8; name="=?UTF-8?B?44Gm44GZ44GoLnR4dA==?=" -Content-Disposition: attachment; filename="=?UTF-8?B?44Gm44GZ44GoLnR4dA==?=" -Content-Transfer-Encoding: base64 -X-Attachment-Id: f_g0uxfl510 - -dGhpcyBpcyBhIHRlc3QK44GT44KM44KP44Gm44GZ44Go +MIME-Version: 1.0 +Received: by 10.231.35.72 with HTTP; Fri, 16 Oct 2009 05:39:34 -0700 (PDT) +Date: Fri, 16 Oct 2009 23:39:34 +1100 +Delivered-To: raasdnil@gmail.com +Message-ID: <57a815bf0910160539m64240421gb35ea52e101aedbc@mail.gmail.com> +Subject: testing +From: Mikel Lindsaar +To: Mikel Lindsaar +Content-Type: multipart/mixed; boundary=00032557395e3572cf04760cb060 + +--00032557395e3572cf04760cb060 +Content-Type: text/plain; charset=UTF-8 + +testing + +-- +http://lindsaar.net/ +Rails, RSpec and Life blog.... + +--00032557395e3572cf04760cb060 +Content-Type: text/plain; charset=UTF-8; name="=?UTF-8?B?44Gm44GZ44GoLnR4dA==?=" +Content-Disposition: attachment; filename="=?UTF-8?B?44Gm44GZ44GoLnR4dA==?=" +Content-Transfer-Encoding: base64 +X-Attachment-Id: f_g0uxfl510 + +dGhpcyBpcyBhIHRlc3QK44GT44KM44KP44Gm44GZ44Go --00032557395e3572cf04760cb060-- \ No newline at end of file diff --git a/spec/fixtures/emails/multi_charset/japanese_attachment_long_name.eml b/spec/fixtures/emails/multi_charset/japanese_attachment_long_name.eml index 93f1fb641..824f3ae50 100644 --- a/spec/fixtures/emails/multi_charset/japanese_attachment_long_name.eml +++ b/spec/fixtures/emails/multi_charset/japanese_attachment_long_name.eml @@ -1,44 +1,44 @@ -Delivered-To: raasdnil@gmail.com -Received: by 10.231.12.67 with SMTP id w3cs164325ibw; - Fri, 30 Oct 2009 01:11:12 -0700 (PDT) -Received: by 10.150.44.2 with SMTP id r2mr2367210ybr.77.1256890271939; - Fri, 30 Oct 2009 01:11:11 -0700 (PDT) -Return-Path: -Received: from mx1.test.lindsaar.net.au (mx1.test.lindsaar.net.au [210.14.110.240]) - by mx.google.com with ESMTP id 25si7923673gxk.34.2009.10.30.01.11.11; - Fri, 30 Oct 2009 01:11:11 -0700 (PDT) -Received-SPF: neutral (google.com: 210.14.110.240 is neither permitted nor denied by domain of mikel@test.lindsaar.net) client-ip=210.14.110.240; -Authentication-Results: mx.google.com; spf=neutral (google.com: 210.14.110.240 is neither permitted nor denied by domain of mikel@test.lindsaar.net) smtp.mail=mikel@test.lindsaar.net -Received: from [192.168.4.253] (60-241-138-146.static.tpgi.com.au [60.241.138.146]) - (using TLSv1 with cipher AES128-SHA (128/128 bits)) - (No client certificate requested) - (Authenticated sender: mikel) - by mx1.test.lindsaar.net.au (Postfix) with ESMTPSA id 5C0186DD4CD - for ; Fri, 30 Oct 2009 19:11:08 +1100 (EST) -Subject: =?utf-8?B?44G+44G/44KA44KB44KC44G+44G/44KA44KB44KC44G+44G/44KA?= - =?utf-8?B?44KB44KC44G+44G/44KA44KB44KC44G+44G/44KA44KB44KC44G+?= - =?utf-8?B?44G/44KA44KB44KC44G+44G/44KA44KB44KC44G+44G/44KA44KB?= - =?utf-8?B?44KC44G+44G/44KA44KB44KC44G+44G/44KA44KB44KC?= -From: Mikel Lindsaar -Content-Type: multipart/mixed; boundary=Apple-Mail-6--589811753 -Message-Id: <60A112A8-F26C-4E23-95B8-4EB9F139D6A0@test.lindsaar.net> -Date: Fri, 30 Oct 2009 19:11:02 +1100 -To: Mikel Lindsaar -Mime-Version: 1.0 (Apple Message framework v1076) -X-Mailer: Apple Mail (2.1076) - - ---Apple-Mail-6--589811753 -Content-Disposition: attachment; - filename*0*=utf-8''%E3%81%8B%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93%E3%81%8B%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93%E3%81%8B%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93%E3%81%8B%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93%E3%81%8B; - filename*1*=%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93.txt -Content-Type: text/plain; - x-unix-mode=0644; - name="=?utf-8?B?44GL44GN44GP44GR44GT44GL44GN44GP44GR44GT44GL44GN44GP?= - =?utf-8?B?44GR44GT44GL44GN44GP44GR44GT44GL44GN44GP44GR44GTLnR4?= - =?utf-8?B?dA==?=" -Content-Transfer-Encoding: 7bit - -this is the data - +Delivered-To: raasdnil@gmail.com +Received: by 10.231.12.67 with SMTP id w3cs164325ibw; + Fri, 30 Oct 2009 01:11:12 -0700 (PDT) +Received: by 10.150.44.2 with SMTP id r2mr2367210ybr.77.1256890271939; + Fri, 30 Oct 2009 01:11:11 -0700 (PDT) +Return-Path: +Received: from mx1.test.lindsaar.net.au (mx1.test.lindsaar.net.au [210.14.110.240]) + by mx.google.com with ESMTP id 25si7923673gxk.34.2009.10.30.01.11.11; + Fri, 30 Oct 2009 01:11:11 -0700 (PDT) +Received-SPF: neutral (google.com: 210.14.110.240 is neither permitted nor denied by domain of mikel@test.lindsaar.net) client-ip=210.14.110.240; +Authentication-Results: mx.google.com; spf=neutral (google.com: 210.14.110.240 is neither permitted nor denied by domain of mikel@test.lindsaar.net) smtp.mail=mikel@test.lindsaar.net +Received: from [192.168.4.253] (60-241-138-146.static.tpgi.com.au [60.241.138.146]) + (using TLSv1 with cipher AES128-SHA (128/128 bits)) + (No client certificate requested) + (Authenticated sender: mikel) + by mx1.test.lindsaar.net.au (Postfix) with ESMTPSA id 5C0186DD4CD + for ; Fri, 30 Oct 2009 19:11:08 +1100 (EST) +Subject: =?utf-8?B?44G+44G/44KA44KB44KC44G+44G/44KA44KB44KC44G+44G/44KA?= + =?utf-8?B?44KB44KC44G+44G/44KA44KB44KC44G+44G/44KA44KB44KC44G+?= + =?utf-8?B?44G/44KA44KB44KC44G+44G/44KA44KB44KC44G+44G/44KA44KB?= + =?utf-8?B?44KC44G+44G/44KA44KB44KC44G+44G/44KA44KB44KC?= +From: Mikel Lindsaar +Content-Type: multipart/mixed; boundary=Apple-Mail-6--589811753 +Message-Id: <60A112A8-F26C-4E23-95B8-4EB9F139D6A0@test.lindsaar.net> +Date: Fri, 30 Oct 2009 19:11:02 +1100 +To: Mikel Lindsaar +Mime-Version: 1.0 (Apple Message framework v1076) +X-Mailer: Apple Mail (2.1076) + + +--Apple-Mail-6--589811753 +Content-Disposition: attachment; + filename*0*=utf-8''%E3%81%8B%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93%E3%81%8B%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93%E3%81%8B%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93%E3%81%8B%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93%E3%81%8B; + filename*1*=%E3%81%8D%E3%81%8F%E3%81%91%E3%81%93.txt +Content-Type: text/plain; + x-unix-mode=0644; + name="=?utf-8?B?44GL44GN44GP44GR44GT44GL44GN44GP44GR44GT44GL44GN44GP?= + =?utf-8?B?44GR44GT44GL44GN44GP44GR44GT44GL44GN44GP44GR44GTLnR4?= + =?utf-8?B?dA==?=" +Content-Transfer-Encoding: 7bit + +this is the data + --Apple-Mail-6--589811753-- \ No newline at end of file diff --git a/spec/fixtures/emails/multi_charset/japanese_iso_2022.eml b/spec/fixtures/emails/multi_charset/japanese_iso_2022.eml index ed66fca3b..35a0deff3 100644 --- a/spec/fixtures/emails/multi_charset/japanese_iso_2022.eml +++ b/spec/fixtures/emails/multi_charset/japanese_iso_2022.eml @@ -1,10 +1,10 @@ -MIME-Version: 1.0 -Subject: =?UTF-8?B?44G+44G/44KA44KB44KC?= -From: Mikel Lindsaar -To: =?UTF-8?B?44G/44GR44KL?= -Content-Type: text/plain; - charset=iso-2022-jp -Content-Transfer-Encoding: 7bit - -$B$9$_$^$;$s!#(B - +MIME-Version: 1.0 +Subject: =?UTF-8?B?44G+44G/44KA44KB44KC?= +From: Mikel Lindsaar +To: =?UTF-8?B?44G/44GR44KL?= +Content-Type: text/plain; + charset=iso-2022-jp +Content-Transfer-Encoding: 7bit + +$B$9$_$^$;$s!#(B + diff --git a/spec/fixtures/emails/multi_charset/japanese_shift_jis.eml b/spec/fixtures/emails/multi_charset/japanese_shift_jis.eml index b077fb9fe..b0ca9eb7b 100644 --- a/spec/fixtures/emails/multi_charset/japanese_shift_jis.eml +++ b/spec/fixtures/emails/multi_charset/japanese_shift_jis.eml @@ -1,15 +1,15 @@ -Delivered-To: unknown@example.com -Date: Wed, 28 May 2014 17:18:19 +0900 (JST) -From: xxxxxxx@docomo.ne.jp -To: unknown@example.com -Subject: test -Message-ID: -MIME-Version: 1.0 -Content-Type: text/plain; charset="Shift_JIS" -Content-Transfer-Encoding: 8bit - - - -̃[̓eXgp̃[łB - -Ƃ낵肢\グ܂I +Delivered-To: unknown@example.com +Date: Wed, 28 May 2014 17:18:19 +0900 (JST) +From: xxxxxxx@docomo.ne.jp +To: unknown@example.com +Subject: test +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain; charset="Shift_JIS" +Content-Transfer-Encoding: 8bit + + + +̃[̓eXgp̃[łB + +Ƃ낵肢\グ܂I diff --git a/spec/fixtures/emails/multi_charset/ks_c_5601-1987.eml b/spec/fixtures/emails/multi_charset/ks_c_5601-1987.eml index a7600a075..a5ad22924 100644 --- a/spec/fixtures/emails/multi_charset/ks_c_5601-1987.eml +++ b/spec/fixtures/emails/multi_charset/ks_c_5601-1987.eml @@ -1,11 +1,11 @@ -Delivered-To: unknown@example.com -Date: Wed, 28 May 2014 17:18:19 +0900 (JST) -From: from@example.com -To: unknown@example.com -Subject: test -Message-ID: -MIME-Version: 1.0 -Content-Type: text/plain; charset="ks_c_5601-1987" -Content-Transfer-Encoding: 8bit - -Ƽ +Delivered-To: unknown@example.com +Date: Wed, 28 May 2014 17:18:19 +0900 (JST) +From: from@example.com +To: unknown@example.com +Subject: test +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain; charset="ks_c_5601-1987" +Content-Transfer-Encoding: 8bit + +Ƽ diff --git a/spec/fixtures/emails/multipart_report_emails/multi_address_bounce1.eml b/spec/fixtures/emails/multipart_report_emails/multi_address_bounce1.eml index 1be2af957..74d92c410 100644 --- a/spec/fixtures/emails/multipart_report_emails/multi_address_bounce1.eml +++ b/spec/fixtures/emails/multipart_report_emails/multi_address_bounce1.eml @@ -1,179 +1,179 @@ -Received: from lvmail01.LL.com (LHLO lvmail01.LL.com) - (10.60.6.3) by lvmail01.LL.com with LMTP; Tue, 23 Feb 2010 22:16:41 - -0800 (PST) -Received: by lvmail01.LL.com (Postfix) - id 3E47A1BC025; Tue, 23 Feb 2010 22:16:41 -0800 (PST) -Date: Tue, 23 Feb 2010 22:16:41 -0800 (PST) -From: MAILER-DAEMON@lvmail01.LL.com (Mail Delivery System) -Subject: Undelivered Mail Returned to Sender -To: rahul.chaudhari@LL.com -Auto-Submitted: auto-replied -MIME-Version: 1.0 -Content-Type: multipart/report; report-type=delivery-status; - boundary="9B7841BC027.1266992201/lvmail01.LL.com" -Content-Transfer-Encoding: 7bit -Message-Id: <20100224061641.3E47A1BC025@lvmail01.LL.com> - -This is a MIME-encapsulated message. - ---9B7841BC027.1266992201/lvmail01.LL.com -Content-Description: Notification -Content-Type: text/plain; charset=us-ascii - -This is the mail system at host lvmail01.LL.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 - -: host - gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account - that you tried to reach does not exist. Please try 550-5.1.1 - double-checking the recipient's email address for typos or 550-5.1.1 - unnecessary spaces. Learn more at 550 5.1.1 - http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 - (in reply to RCPT TO command) - -: host - gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account - that you tried to reach does not exist. Please try 550-5.1.1 - double-checking the recipient's email address for typos or 550-5.1.1 - unnecessary spaces. Learn more at 550 5.1.1 - http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 - (in reply to RCPT TO command) - -: host gmail-smtp-in.l.google.com[209.85.223.33] - said: 550-5.1.1 The email account that you tried to reach does not exist. - Please try 550-5.1.1 double-checking the recipient's email address for - typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 (in reply to RCPT TO command) - -: host gmail-smtp-in.l.google.com[209.85.223.33] - said: 550-5.1.1 The email account that you tried to reach does not exist. - Please try 550-5.1.1 double-checking the recipient's email address for - typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 (in reply to RCPT TO command) - -: host - gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account - that you tried to reach does not exist. Please try 550-5.1.1 - double-checking the recipient's email address for typos or 550-5.1.1 - unnecessary spaces. Learn more at 550 5.1.1 - http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 - (in reply to RCPT TO command) - ---9B7841BC027.1266992201/lvmail01.LL.com -Content-Description: Delivery report -Content-Type: message/delivery-status - -Reporting-MTA: dns; lvmail01.LL.com -X-Postfix-Queue-ID: 9B7841BC027 -X-Postfix-Sender: rfc822; rahul.chaudhari@LL.com -Arrival-Date: Tue, 23 Feb 2010 22:16:15 -0800 (PST) - -Final-Recipient: rfc822; bbbbvhvbbvkjbhfbvbvjhb@gmail.com -Original-Recipient: rfc822;bbbbvhvbbvkjbhfbvbvjhb@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - -Final-Recipient: rfc822; bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com -Original-Recipient: rfc822;bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - -Final-Recipient: rfc822; egyfefsdvsfvvhjsd@gmail.com -Original-Recipient: rfc822;egyfefsdvsfvvhjsd@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - -Final-Recipient: rfc822; kfhejkfbsjkjsbhds@gmail.com -Original-Recipient: rfc822;kfhejkfbsjkjsbhds@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - -Final-Recipient: rfc822; qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com -Original-Recipient: rfc822;qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - ---9B7841BC027.1266992201/lvmail01.LL.com -Content-Description: Undelivered Message -Content-Type: message/rfc822 -Content-Transfer-Encoding: 7bit - -Return-Path: -Received: from localhost (localhost [127.0.0.1]) - by lvmail01.LL.com (Postfix) with ESMTP id 9B7841BC027; - Tue, 23 Feb 2010 22:16:15 -0800 (PST) -X-Virus-Scanned: amavisd-new at LL.com -Received: from lvmail01.LL.com ([127.0.0.1]) - by localhost (lvmail01.LL.com [127.0.0.1]) (amavisd-new, port 10024) - with ESMTP id HXMOLJWXGcFK; Tue, 23 Feb 2010 22:16:15 -0800 (PST) -Received: from lvmail01.LL.com (lvmail01.LL.com [10.60.6.3]) - by lvmail01.LL.com (Postfix) with ESMTP id 12D311BC025; - Tue, 23 Feb 2010 22:16:15 -0800 (PST) -Date: Tue, 23 Feb 2010 22:16:14 -0800 (PST) -From: Rahul Chaudhari -To: egyfefsdvsfvvhjsd@gmail.com, kfhejkfbsjkjsbhds@gmail.com, - bbbbvhvbbvkjbhfbvbvjhb@gmail.com, - qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com, - bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com -Message-ID: <118707422.15521266992174819.JavaMail.root@lvmail01> -Subject: Test of bounce email -MIME-Version: 1.0 -Content-Type: text/plain; charset=utf-8 -Content-Transfer-Encoding: 7bit -X-Originating-IP: [10.50.4.44] -X-Mailer: Zimbra 6.0.1_GA_1816.UBUNTU8_64 (ZimbraWebClient - FF3.0 (Linux)/6.0.1_GA_1816.UBUNTU8_64) - -This is just testing. - - -Thanks & Regards, -Rahul P. Chaudhari -Software Developer -LIVIA India Private Limited - -Board Line - +91.22.6725 5100 -Hand Phone - +91.809 783 3437 -Web URL: www.LL.com - ---9B7841BC027.1266992201/lvmail01.LL.com-- +Received: from lvmail01.LL.com (LHLO lvmail01.LL.com) + (10.60.6.3) by lvmail01.LL.com with LMTP; Tue, 23 Feb 2010 22:16:41 + -0800 (PST) +Received: by lvmail01.LL.com (Postfix) + id 3E47A1BC025; Tue, 23 Feb 2010 22:16:41 -0800 (PST) +Date: Tue, 23 Feb 2010 22:16:41 -0800 (PST) +From: MAILER-DAEMON@lvmail01.LL.com (Mail Delivery System) +Subject: Undelivered Mail Returned to Sender +To: rahul.chaudhari@LL.com +Auto-Submitted: auto-replied +MIME-Version: 1.0 +Content-Type: multipart/report; report-type=delivery-status; + boundary="9B7841BC027.1266992201/lvmail01.LL.com" +Content-Transfer-Encoding: 7bit +Message-Id: <20100224061641.3E47A1BC025@lvmail01.LL.com> + +This is a MIME-encapsulated message. + +--9B7841BC027.1266992201/lvmail01.LL.com +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + +This is the mail system at host lvmail01.LL.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 + +: host + gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account + that you tried to reach does not exist. Please try 550-5.1.1 + double-checking the recipient's email address for typos or 550-5.1.1 + unnecessary spaces. Learn more at 550 5.1.1 + http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 + (in reply to RCPT TO command) + +: host + gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account + that you tried to reach does not exist. Please try 550-5.1.1 + double-checking the recipient's email address for typos or 550-5.1.1 + unnecessary spaces. Learn more at 550 5.1.1 + http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 + (in reply to RCPT TO command) + +: host gmail-smtp-in.l.google.com[209.85.223.33] + said: 550-5.1.1 The email account that you tried to reach does not exist. + Please try 550-5.1.1 double-checking the recipient's email address for + typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 (in reply to RCPT TO command) + +: host gmail-smtp-in.l.google.com[209.85.223.33] + said: 550-5.1.1 The email account that you tried to reach does not exist. + Please try 550-5.1.1 double-checking the recipient's email address for + typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 (in reply to RCPT TO command) + +: host + gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account + that you tried to reach does not exist. Please try 550-5.1.1 + double-checking the recipient's email address for typos or 550-5.1.1 + unnecessary spaces. Learn more at 550 5.1.1 + http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 + (in reply to RCPT TO command) + +--9B7841BC027.1266992201/lvmail01.LL.com +Content-Description: Delivery report +Content-Type: message/delivery-status + +Reporting-MTA: dns; lvmail01.LL.com +X-Postfix-Queue-ID: 9B7841BC027 +X-Postfix-Sender: rfc822; rahul.chaudhari@LL.com +Arrival-Date: Tue, 23 Feb 2010 22:16:15 -0800 (PST) + +Final-Recipient: rfc822; bbbbvhvbbvkjbhfbvbvjhb@gmail.com +Original-Recipient: rfc822;bbbbvhvbbvkjbhfbvbvjhb@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +Final-Recipient: rfc822; bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com +Original-Recipient: rfc822;bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +Final-Recipient: rfc822; egyfefsdvsfvvhjsd@gmail.com +Original-Recipient: rfc822;egyfefsdvsfvvhjsd@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +Final-Recipient: rfc822; kfhejkfbsjkjsbhds@gmail.com +Original-Recipient: rfc822;kfhejkfbsjkjsbhds@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +Final-Recipient: rfc822; qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com +Original-Recipient: rfc822;qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +--9B7841BC027.1266992201/lvmail01.LL.com +Content-Description: Undelivered Message +Content-Type: message/rfc822 +Content-Transfer-Encoding: 7bit + +Return-Path: +Received: from localhost (localhost [127.0.0.1]) + by lvmail01.LL.com (Postfix) with ESMTP id 9B7841BC027; + Tue, 23 Feb 2010 22:16:15 -0800 (PST) +X-Virus-Scanned: amavisd-new at LL.com +Received: from lvmail01.LL.com ([127.0.0.1]) + by localhost (lvmail01.LL.com [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id HXMOLJWXGcFK; Tue, 23 Feb 2010 22:16:15 -0800 (PST) +Received: from lvmail01.LL.com (lvmail01.LL.com [10.60.6.3]) + by lvmail01.LL.com (Postfix) with ESMTP id 12D311BC025; + Tue, 23 Feb 2010 22:16:15 -0800 (PST) +Date: Tue, 23 Feb 2010 22:16:14 -0800 (PST) +From: Rahul Chaudhari +To: egyfefsdvsfvvhjsd@gmail.com, kfhejkfbsjkjsbhds@gmail.com, + bbbbvhvbbvkjbhfbvbvjhb@gmail.com, + qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com, + bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com +Message-ID: <118707422.15521266992174819.JavaMail.root@lvmail01> +Subject: Test of bounce email +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 7bit +X-Originating-IP: [10.50.4.44] +X-Mailer: Zimbra 6.0.1_GA_1816.UBUNTU8_64 (ZimbraWebClient - FF3.0 (Linux)/6.0.1_GA_1816.UBUNTU8_64) + +This is just testing. + + +Thanks & Regards, +Rahul P. Chaudhari +Software Developer +LIVIA India Private Limited + +Board Line - +91.22.6725 5100 +Hand Phone - +91.809 783 3437 +Web URL: www.LL.com + +--9B7841BC027.1266992201/lvmail01.LL.com-- diff --git a/spec/fixtures/emails/multipart_report_emails/multi_address_bounce2.eml b/spec/fixtures/emails/multipart_report_emails/multi_address_bounce2.eml index 1be2af957..74d92c410 100644 --- a/spec/fixtures/emails/multipart_report_emails/multi_address_bounce2.eml +++ b/spec/fixtures/emails/multipart_report_emails/multi_address_bounce2.eml @@ -1,179 +1,179 @@ -Received: from lvmail01.LL.com (LHLO lvmail01.LL.com) - (10.60.6.3) by lvmail01.LL.com with LMTP; Tue, 23 Feb 2010 22:16:41 - -0800 (PST) -Received: by lvmail01.LL.com (Postfix) - id 3E47A1BC025; Tue, 23 Feb 2010 22:16:41 -0800 (PST) -Date: Tue, 23 Feb 2010 22:16:41 -0800 (PST) -From: MAILER-DAEMON@lvmail01.LL.com (Mail Delivery System) -Subject: Undelivered Mail Returned to Sender -To: rahul.chaudhari@LL.com -Auto-Submitted: auto-replied -MIME-Version: 1.0 -Content-Type: multipart/report; report-type=delivery-status; - boundary="9B7841BC027.1266992201/lvmail01.LL.com" -Content-Transfer-Encoding: 7bit -Message-Id: <20100224061641.3E47A1BC025@lvmail01.LL.com> - -This is a MIME-encapsulated message. - ---9B7841BC027.1266992201/lvmail01.LL.com -Content-Description: Notification -Content-Type: text/plain; charset=us-ascii - -This is the mail system at host lvmail01.LL.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 - -: host - gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account - that you tried to reach does not exist. Please try 550-5.1.1 - double-checking the recipient's email address for typos or 550-5.1.1 - unnecessary spaces. Learn more at 550 5.1.1 - http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 - (in reply to RCPT TO command) - -: host - gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account - that you tried to reach does not exist. Please try 550-5.1.1 - double-checking the recipient's email address for typos or 550-5.1.1 - unnecessary spaces. Learn more at 550 5.1.1 - http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 - (in reply to RCPT TO command) - -: host gmail-smtp-in.l.google.com[209.85.223.33] - said: 550-5.1.1 The email account that you tried to reach does not exist. - Please try 550-5.1.1 double-checking the recipient's email address for - typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 (in reply to RCPT TO command) - -: host gmail-smtp-in.l.google.com[209.85.223.33] - said: 550-5.1.1 The email account that you tried to reach does not exist. - Please try 550-5.1.1 double-checking the recipient's email address for - typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 (in reply to RCPT TO command) - -: host - gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account - that you tried to reach does not exist. Please try 550-5.1.1 - double-checking the recipient's email address for typos or 550-5.1.1 - unnecessary spaces. Learn more at 550 5.1.1 - http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 - (in reply to RCPT TO command) - ---9B7841BC027.1266992201/lvmail01.LL.com -Content-Description: Delivery report -Content-Type: message/delivery-status - -Reporting-MTA: dns; lvmail01.LL.com -X-Postfix-Queue-ID: 9B7841BC027 -X-Postfix-Sender: rfc822; rahul.chaudhari@LL.com -Arrival-Date: Tue, 23 Feb 2010 22:16:15 -0800 (PST) - -Final-Recipient: rfc822; bbbbvhvbbvkjbhfbvbvjhb@gmail.com -Original-Recipient: rfc822;bbbbvhvbbvkjbhfbvbvjhb@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - -Final-Recipient: rfc822; bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com -Original-Recipient: rfc822;bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - -Final-Recipient: rfc822; egyfefsdvsfvvhjsd@gmail.com -Original-Recipient: rfc822;egyfefsdvsfvvhjsd@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - -Final-Recipient: rfc822; kfhejkfbsjkjsbhds@gmail.com -Original-Recipient: rfc822;kfhejkfbsjkjsbhds@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - -Final-Recipient: rfc822; qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com -Original-Recipient: rfc822;qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com -Action: failed -Status: 5.1.1 -Remote-MTA: dns; gmail-smtp-in.l.google.com -Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does - not exist. Please try 550-5.1.1 double-checking the recipient's email - address for typos or 550-5.1.1 unnecessary spaces. Learn more at - 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 - 41si5422799iwn.27 - ---9B7841BC027.1266992201/lvmail01.LL.com -Content-Description: Undelivered Message -Content-Type: message/rfc822 -Content-Transfer-Encoding: 7bit - -Return-Path: -Received: from localhost (localhost [127.0.0.1]) - by lvmail01.LL.com (Postfix) with ESMTP id 9B7841BC027; - Tue, 23 Feb 2010 22:16:15 -0800 (PST) -X-Virus-Scanned: amavisd-new at LL.com -Received: from lvmail01.LL.com ([127.0.0.1]) - by localhost (lvmail01.LL.com [127.0.0.1]) (amavisd-new, port 10024) - with ESMTP id HXMOLJWXGcFK; Tue, 23 Feb 2010 22:16:15 -0800 (PST) -Received: from lvmail01.LL.com (lvmail01.LL.com [10.60.6.3]) - by lvmail01.LL.com (Postfix) with ESMTP id 12D311BC025; - Tue, 23 Feb 2010 22:16:15 -0800 (PST) -Date: Tue, 23 Feb 2010 22:16:14 -0800 (PST) -From: Rahul Chaudhari -To: egyfefsdvsfvvhjsd@gmail.com, kfhejkfbsjkjsbhds@gmail.com, - bbbbvhvbbvkjbhfbvbvjhb@gmail.com, - qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com, - bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com -Message-ID: <118707422.15521266992174819.JavaMail.root@lvmail01> -Subject: Test of bounce email -MIME-Version: 1.0 -Content-Type: text/plain; charset=utf-8 -Content-Transfer-Encoding: 7bit -X-Originating-IP: [10.50.4.44] -X-Mailer: Zimbra 6.0.1_GA_1816.UBUNTU8_64 (ZimbraWebClient - FF3.0 (Linux)/6.0.1_GA_1816.UBUNTU8_64) - -This is just testing. - - -Thanks & Regards, -Rahul P. Chaudhari -Software Developer -LIVIA India Private Limited - -Board Line - +91.22.6725 5100 -Hand Phone - +91.809 783 3437 -Web URL: www.LL.com - ---9B7841BC027.1266992201/lvmail01.LL.com-- +Received: from lvmail01.LL.com (LHLO lvmail01.LL.com) + (10.60.6.3) by lvmail01.LL.com with LMTP; Tue, 23 Feb 2010 22:16:41 + -0800 (PST) +Received: by lvmail01.LL.com (Postfix) + id 3E47A1BC025; Tue, 23 Feb 2010 22:16:41 -0800 (PST) +Date: Tue, 23 Feb 2010 22:16:41 -0800 (PST) +From: MAILER-DAEMON@lvmail01.LL.com (Mail Delivery System) +Subject: Undelivered Mail Returned to Sender +To: rahul.chaudhari@LL.com +Auto-Submitted: auto-replied +MIME-Version: 1.0 +Content-Type: multipart/report; report-type=delivery-status; + boundary="9B7841BC027.1266992201/lvmail01.LL.com" +Content-Transfer-Encoding: 7bit +Message-Id: <20100224061641.3E47A1BC025@lvmail01.LL.com> + +This is a MIME-encapsulated message. + +--9B7841BC027.1266992201/lvmail01.LL.com +Content-Description: Notification +Content-Type: text/plain; charset=us-ascii + +This is the mail system at host lvmail01.LL.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 + +: host + gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account + that you tried to reach does not exist. Please try 550-5.1.1 + double-checking the recipient's email address for typos or 550-5.1.1 + unnecessary spaces. Learn more at 550 5.1.1 + http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 + (in reply to RCPT TO command) + +: host + gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account + that you tried to reach does not exist. Please try 550-5.1.1 + double-checking the recipient's email address for typos or 550-5.1.1 + unnecessary spaces. Learn more at 550 5.1.1 + http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 + (in reply to RCPT TO command) + +: host gmail-smtp-in.l.google.com[209.85.223.33] + said: 550-5.1.1 The email account that you tried to reach does not exist. + Please try 550-5.1.1 double-checking the recipient's email address for + typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 (in reply to RCPT TO command) + +: host gmail-smtp-in.l.google.com[209.85.223.33] + said: 550-5.1.1 The email account that you tried to reach does not exist. + Please try 550-5.1.1 double-checking the recipient's email address for + typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 (in reply to RCPT TO command) + +: host + gmail-smtp-in.l.google.com[209.85.223.33] said: 550-5.1.1 The email account + that you tried to reach does not exist. Please try 550-5.1.1 + double-checking the recipient's email address for typos or 550-5.1.1 + unnecessary spaces. Learn more at 550 5.1.1 + http://mail.google.com/support/bin/answer.py?answer=6596 41si5422799iwn.27 + (in reply to RCPT TO command) + +--9B7841BC027.1266992201/lvmail01.LL.com +Content-Description: Delivery report +Content-Type: message/delivery-status + +Reporting-MTA: dns; lvmail01.LL.com +X-Postfix-Queue-ID: 9B7841BC027 +X-Postfix-Sender: rfc822; rahul.chaudhari@LL.com +Arrival-Date: Tue, 23 Feb 2010 22:16:15 -0800 (PST) + +Final-Recipient: rfc822; bbbbvhvbbvkjbhfbvbvjhb@gmail.com +Original-Recipient: rfc822;bbbbvhvbbvkjbhfbvbvjhb@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +Final-Recipient: rfc822; bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com +Original-Recipient: rfc822;bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +Final-Recipient: rfc822; egyfefsdvsfvvhjsd@gmail.com +Original-Recipient: rfc822;egyfefsdvsfvvhjsd@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +Final-Recipient: rfc822; kfhejkfbsjkjsbhds@gmail.com +Original-Recipient: rfc822;kfhejkfbsjkjsbhds@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +Final-Recipient: rfc822; qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com +Original-Recipient: rfc822;qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com +Action: failed +Status: 5.1.1 +Remote-MTA: dns; gmail-smtp-in.l.google.com +Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does + not exist. Please try 550-5.1.1 double-checking the recipient's email + address for typos or 550-5.1.1 unnecessary spaces. Learn more at + 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 + 41si5422799iwn.27 + +--9B7841BC027.1266992201/lvmail01.LL.com +Content-Description: Undelivered Message +Content-Type: message/rfc822 +Content-Transfer-Encoding: 7bit + +Return-Path: +Received: from localhost (localhost [127.0.0.1]) + by lvmail01.LL.com (Postfix) with ESMTP id 9B7841BC027; + Tue, 23 Feb 2010 22:16:15 -0800 (PST) +X-Virus-Scanned: amavisd-new at LL.com +Received: from lvmail01.LL.com ([127.0.0.1]) + by localhost (lvmail01.LL.com [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id HXMOLJWXGcFK; Tue, 23 Feb 2010 22:16:15 -0800 (PST) +Received: from lvmail01.LL.com (lvmail01.LL.com [10.60.6.3]) + by lvmail01.LL.com (Postfix) with ESMTP id 12D311BC025; + Tue, 23 Feb 2010 22:16:15 -0800 (PST) +Date: Tue, 23 Feb 2010 22:16:14 -0800 (PST) +From: Rahul Chaudhari +To: egyfefsdvsfvvhjsd@gmail.com, kfhejkfbsjkjsbhds@gmail.com, + bbbbvhvbbvkjbhfbvbvjhb@gmail.com, + qfvhgsvhgsduiohncdhcvhsdfvsfygusd@gmail.com, + bscdbcjhasbcjhbdscbhbsdhcbj@gmail.com +Message-ID: <118707422.15521266992174819.JavaMail.root@lvmail01> +Subject: Test of bounce email +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: 7bit +X-Originating-IP: [10.50.4.44] +X-Mailer: Zimbra 6.0.1_GA_1816.UBUNTU8_64 (ZimbraWebClient - FF3.0 (Linux)/6.0.1_GA_1816.UBUNTU8_64) + +This is just testing. + + +Thanks & Regards, +Rahul P. Chaudhari +Software Developer +LIVIA India Private Limited + +Board Line - +91.22.6725 5100 +Hand Phone - +91.809 783 3437 +Web URL: www.LL.com + +--9B7841BC027.1266992201/lvmail01.LL.com-- diff --git a/spec/fixtures/emails/multipart_report_emails/multipart_report_multiple_status.eml b/spec/fixtures/emails/multipart_report_emails/multipart_report_multiple_status.eml index e54ac4bf0..8c5adc0ba 100644 --- a/spec/fixtures/emails/multipart_report_emails/multipart_report_multiple_status.eml +++ b/spec/fixtures/emails/multipart_report_emails/multipart_report_multiple_status.eml @@ -1,112 +1,112 @@ -Return-Path: <> -X-Original-To: notification+promo@blah.com -Delivered-To: notification+promo@blah.com -Received: from schemailmta04.ci.com (schemailmta04.ci.com [209.183.37.58]) - by blah.com (Postfix) with ESMTP id 24EF419F546 - for ; Tue, 29 Jun 2010 15:42:46 +0000 (UTC) -To: notification+promo@blah.com -From: Mail Administrator -Reply-To: -Subject: Mail System Error - Returned Mail -Date: Tue, 29 Jun 2010 10:42:44 -0500 -Message-ID: <20100629154244.OZPA15102.schemailmta04.ci.com@schemailmta04> -MIME-Version: 1.0 -Content-Type: multipart/report; - report-type=delivery-status; - Boundary="===========================_ _= 6078796(15102)1277826164" -X-Cloudmark-Analysis: v=1.0 c=1 a=q8OS1GolVHwA:10 a=ev1gGZlfZ-EA:10 a=HQ-Cukr2AAAA:8 a=qihIh-XuXL65y3o_mUgA:9 a=mUL5bUDOV_-gjcCZylcY5Lz4jjsA:4 a=iQvSWfByulMA:10 a=ni8l3qMSI1sA:10 a=WHDNLAQ519cA:10 a=Fry9e7MVxuJdODrS104A:9 a=JYo4OF_E9TqbHrUN2TvLdggtx2cA:4 a=S0jCPnXDAAAA:8 a=pXkHMj1YAAAA:8 a=5ErcFzC0N3E7OloTRA8A:9 a=cC0RL7HlXt3RrKfnpEbxHCeM-zQA:4 a=cHEBK1Z0Lu8A:10 a=p9ZeupWRHUwA:10 a=7sPVfr_AX1EA:10 - - ---===========================_ _= 6078796(15102)1277826164 -Content-Type: message/delivery-status; - -This Message was undeliverable due to the following reason: - - - has restricted SMS e-mail - -Please reply to -if you feel this message to be in error. - ---===========================_ _= 6078796(15102)1277826164 -Content-Type: message/delivery-status - -Reporting-MTA: dns; schemailmta04.ci.com -Arrival-Date: Tue, 29 Jun 2010 10:42:37 -0500 -Received-From-MTA: dns; schemailedgegx04.ci.com (172.16.130.170) - -Original-Recipient: rfc822;u@ci.com -Final-Recipient: RFC822; -Action: failed -Status: 5.3.0 - ---===========================_ _= 6078796(15102)1277826164 -Content-Type: message/rfc822 - -Received: from schemailedgegx04.ci.com ([172.16.130.170]) - by schemailmta04.ci.com - (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP - id <20100629154237.OZBY15102.schemailmta04.ci.com@schemailedgegx04.ci.com> - for ; Tue, 29 Jun 2010 10:42:37 -0500 -Received: from blah.com ([1.1.1.1]) - by schemailedgegx04.ci.com - (InterMail vG.1.02.00.04 201-2136-104-104-20050323) with ESMTP - id <20100629154225.WEFB17009.schemailedgegx04.ci.com@blah.com> - for ; Tue, 29 Jun 2010 10:42:25 -0500 -Received: from blah.com (snooki [10.12.126.68]) - by blah.com (Postfix) with ESMTP id 4BDAE19F546 - for ; Tue, 29 Jun 2010 15:42:25 +0000 (UTC) -DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blah.com; - s=2010; t=1277826145; bh=wC3hHAhQgApcTmwQsi2F4OJf40rbyIek/WwIuzSc3V - M=; h=Date:From:Reply-To:To:Message-ID:Subject:Mime-Version: - Content-Type:Content-Transfer-Encoding:List-Unsubscribe; b=aw+Bhd8 - t1goZUXWBAHSrHaM1IdqhkXqF5WVMwGRYcnya4FHNw05XfpB3TTpTFda13DfhtziFRk - zHSfiNbMapv7Vz+D3A/9NHg5nKahSMosZVTa0BfajYWNd1aY8JUWUlxdQHxQQ4ygCBj - /MndJohtSm6K3gsqdIv88DNXdBGBEw= -Date: Tue, 29 Jun 2010 15:42:25 +0000 -From: HomeRun -Reply-To: HomeRun -To: u@ci.com -Message-ID: <4c2a146147ac8_61ff157c4ec1652df@s.h.c.mail> -Subject: Your Friend F M wants you to join HomeRun -Mime-Version: 1.0 -Content-Type: multipart/alternative; - boundary="--==_mimepart_4c2a146141756_61ff157c4ec1649a8"; - charset=UTF-8 -Content-Transfer-Encoding: 7bit -List-Unsubscribe: - - - -----==_mimepart_4c2a146141756_61ff157c4ec1649a8 -Date: Tue, 29 Jun 2010 15:42:25 +0000 -Mime-Version: 1.0 -Content-Type: text/plain; - charset=UTF-8 -Content-Transfer-Encoding: base64 -Content-ID: <4c2a146145451_61ff157c4ec165040@s.h.c.mail> - -SGV5IGNpbmd1bGFybWVmYXJpZGEsCgpGYXJpZGEgTWFsaWsgdGhpbmtzIHlv -dSBzaG91bGQgYXBwbHkgdG8gam9pbiBIb21lUnVuLCB5b3VyIHBsYWNlIGZv -dC4sIFNhbiBGcmFuY2lzY28sIENBLCA5NDEyMywgVVNB - - -----==_mimepart_4c2a146141756_61ff157c4ec1649a8 -Date: Tue, 29 Jun 2010 15:42:25 +0000 -Mime-Version: 1.0 -Content-Type: text/html; - charset=UTF-8 -Content-Transfer-Encoding: base64 -Content-ID: <4c2a1461468ae_61ff157c4ec165194@s.h.c.mail> - -PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPHRpdGxlPkhvbWVSdW4g -LSBZb3VyIEZyaWVuZCBGYXJpZGEgTWFsaWsgd2FudHMgeW91IHRvIGpvaW4g -cnVuLmNvbS9vLjQ1YjBkMzgwLmdpZicgd2lkdGg9JzEnIC8+CjwvdGQ+Cjwv -dHI+CjwvdGFibGU+CjwvdGQ+CjwvdHI+CjwvdGFibGU+CjwvZGl2Pgo8L2Jv -ZHk+CjwvaHRtbD4K - - -----==_mimepart_4c2a146141756_61ff157c4ec1649a8-- - ---===========================_ _= 6078796(15102)1277826164-- -Comments +Return-Path: <> +X-Original-To: notification+promo@blah.com +Delivered-To: notification+promo@blah.com +Received: from schemailmta04.ci.com (schemailmta04.ci.com [209.183.37.58]) + by blah.com (Postfix) with ESMTP id 24EF419F546 + for ; Tue, 29 Jun 2010 15:42:46 +0000 (UTC) +To: notification+promo@blah.com +From: Mail Administrator +Reply-To: +Subject: Mail System Error - Returned Mail +Date: Tue, 29 Jun 2010 10:42:44 -0500 +Message-ID: <20100629154244.OZPA15102.schemailmta04.ci.com@schemailmta04> +MIME-Version: 1.0 +Content-Type: multipart/report; + report-type=delivery-status; + Boundary="===========================_ _= 6078796(15102)1277826164" +X-Cloudmark-Analysis: v=1.0 c=1 a=q8OS1GolVHwA:10 a=ev1gGZlfZ-EA:10 a=HQ-Cukr2AAAA:8 a=qihIh-XuXL65y3o_mUgA:9 a=mUL5bUDOV_-gjcCZylcY5Lz4jjsA:4 a=iQvSWfByulMA:10 a=ni8l3qMSI1sA:10 a=WHDNLAQ519cA:10 a=Fry9e7MVxuJdODrS104A:9 a=JYo4OF_E9TqbHrUN2TvLdggtx2cA:4 a=S0jCPnXDAAAA:8 a=pXkHMj1YAAAA:8 a=5ErcFzC0N3E7OloTRA8A:9 a=cC0RL7HlXt3RrKfnpEbxHCeM-zQA:4 a=cHEBK1Z0Lu8A:10 a=p9ZeupWRHUwA:10 a=7sPVfr_AX1EA:10 + + +--===========================_ _= 6078796(15102)1277826164 +Content-Type: message/delivery-status; + +This Message was undeliverable due to the following reason: + + + has restricted SMS e-mail + +Please reply to +if you feel this message to be in error. + +--===========================_ _= 6078796(15102)1277826164 +Content-Type: message/delivery-status + +Reporting-MTA: dns; schemailmta04.ci.com +Arrival-Date: Tue, 29 Jun 2010 10:42:37 -0500 +Received-From-MTA: dns; schemailedgegx04.ci.com (172.16.130.170) + +Original-Recipient: rfc822;u@ci.com +Final-Recipient: RFC822; +Action: failed +Status: 5.3.0 + +--===========================_ _= 6078796(15102)1277826164 +Content-Type: message/rfc822 + +Received: from schemailedgegx04.ci.com ([172.16.130.170]) + by schemailmta04.ci.com + (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP + id <20100629154237.OZBY15102.schemailmta04.ci.com@schemailedgegx04.ci.com> + for ; Tue, 29 Jun 2010 10:42:37 -0500 +Received: from blah.com ([1.1.1.1]) + by schemailedgegx04.ci.com + (InterMail vG.1.02.00.04 201-2136-104-104-20050323) with ESMTP + id <20100629154225.WEFB17009.schemailedgegx04.ci.com@blah.com> + for ; Tue, 29 Jun 2010 10:42:25 -0500 +Received: from blah.com (snooki [10.12.126.68]) + by blah.com (Postfix) with ESMTP id 4BDAE19F546 + for ; Tue, 29 Jun 2010 15:42:25 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blah.com; + s=2010; t=1277826145; bh=wC3hHAhQgApcTmwQsi2F4OJf40rbyIek/WwIuzSc3V + M=; h=Date:From:Reply-To:To:Message-ID:Subject:Mime-Version: + Content-Type:Content-Transfer-Encoding:List-Unsubscribe; b=aw+Bhd8 + t1goZUXWBAHSrHaM1IdqhkXqF5WVMwGRYcnya4FHNw05XfpB3TTpTFda13DfhtziFRk + zHSfiNbMapv7Vz+D3A/9NHg5nKahSMosZVTa0BfajYWNd1aY8JUWUlxdQHxQQ4ygCBj + /MndJohtSm6K3gsqdIv88DNXdBGBEw= +Date: Tue, 29 Jun 2010 15:42:25 +0000 +From: HomeRun +Reply-To: HomeRun +To: u@ci.com +Message-ID: <4c2a146147ac8_61ff157c4ec1652df@s.h.c.mail> +Subject: Your Friend F M wants you to join HomeRun +Mime-Version: 1.0 +Content-Type: multipart/alternative; + boundary="--==_mimepart_4c2a146141756_61ff157c4ec1649a8"; + charset=UTF-8 +Content-Transfer-Encoding: 7bit +List-Unsubscribe: + + + +----==_mimepart_4c2a146141756_61ff157c4ec1649a8 +Date: Tue, 29 Jun 2010 15:42:25 +0000 +Mime-Version: 1.0 +Content-Type: text/plain; + charset=UTF-8 +Content-Transfer-Encoding: base64 +Content-ID: <4c2a146145451_61ff157c4ec165040@s.h.c.mail> + +SGV5IGNpbmd1bGFybWVmYXJpZGEsCgpGYXJpZGEgTWFsaWsgdGhpbmtzIHlv +dSBzaG91bGQgYXBwbHkgdG8gam9pbiBIb21lUnVuLCB5b3VyIHBsYWNlIGZv +dC4sIFNhbiBGcmFuY2lzY28sIENBLCA5NDEyMywgVVNB + + +----==_mimepart_4c2a146141756_61ff157c4ec1649a8 +Date: Tue, 29 Jun 2010 15:42:25 +0000 +Mime-Version: 1.0 +Content-Type: text/html; + charset=UTF-8 +Content-Transfer-Encoding: base64 +Content-ID: <4c2a1461468ae_61ff157c4ec165194@s.h.c.mail> + +PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPHRpdGxlPkhvbWVSdW4g +LSBZb3VyIEZyaWVuZCBGYXJpZGEgTWFsaWsgd2FudHMgeW91IHRvIGpvaW4g +cnVuLmNvbS9vLjQ1YjBkMzgwLmdpZicgd2lkdGg9JzEnIC8+CjwvdGQ+Cjwv +dHI+CjwvdGFibGU+CjwvdGQ+CjwvdHI+CjwvdGFibGU+CjwvZGl2Pgo8L2Jv +ZHk+CjwvaHRtbD4K + + +----==_mimepart_4c2a146141756_61ff157c4ec1649a8-- + +--===========================_ _= 6078796(15102)1277826164-- +Comments diff --git a/spec/fixtures/emails/multipart_report_emails/report_422.eml b/spec/fixtures/emails/multipart_report_emails/report_422.eml index f63208c25..849223c45 100644 --- a/spec/fixtures/emails/multipart_report_emails/report_422.eml +++ b/spec/fixtures/emails/multipart_report_emails/report_422.eml @@ -1,98 +1,98 @@ -Return-Path: -Received: from acomputer ([unix socket]) - by imap01.sssssss.net (Cyrus) with LMTPA; - Wed, 16 Jan 2008 13:51:42 -0800 -X-Sieve: CMU Sieve 2.2 -Received: from smtp.sssssss.org (unknown [198.0.0.92]) - by imap01.sssssss.net (Postfix) with ESMTP id BFE6477FAE - for ; Wed, 16 Jan 2008 13:51:40 -0800 (PST) -Received: from ns1.sssssss.net.au (ns1.sssssss.net.au [202.0.0.246]) - by smtp.sssssss.org (Postfix) with ESMTP id 96E5C6C6830 - for ; Wed, 16 Jan 2008 11:08:14 -0800 (PST) -Received: from ns1.sssssss.net.au (unknown [127.0.0.1]) - by ns1.sssssss.net.au (Postfix) with ESMTP id E1BCEF227 - for ; Thu, 17 Jan 2008 03:40:53 +1100 (EST) -Received: from ns1.sssssss.net.au (ns1.sssssss.net.au [202.0.0.246]) - by localhost (FormatMessage) with SMTP id ceaa681bbcb6c7f6 - for ; Thu, 17 Jan 2008 03:40:53 +1100 (EST) -Received: from mail11.tppppp.com.au (unknown [203.0.0.161]) - by ns1.sssssss.net.au (Postfix) with ESMTP id 7F2D2F225 - for ; Thu, 17 Jan 2008 03:40:52 +1100 (EST) -Received: from localhost (localhost) - by mail11.tppppp.com.au (envelope-from MAILER-DAEMON) (8.14.2/8.14.2) id m0GFZ1c3009410; - Thu, 17 Jan 2008 03:40:52 +1100 -Date: Thu, 17 Jan 2008 03:40:52 +1100 -From: Mail Delivery Subsystem -Message-Id: <200801161640.m0GFZ1c3009410@mail11.ttttt.com.au> -To: -MIME-Version: 1.0 -Content-Type: multipart/report; report-type=delivery-status; - boundary="m0GFZ1c3009410.1200501652/mail11.ttttt.com.au" -Subject: Warning: could not send message for past 8 hours -Auto-Submitted: auto-generated (warning-timeout) -Resent-Date: Thu, 17 Jan 2008 03:40:53 +1100 (EST) -Resent-From: -Resent-To: -Resent-Message-ID: -X-Spam-Status: No - - ---m0GFZ1c3009410.1200501652/mail11.ttttt.com.au -Content-Type: text/plain - - ********************************************** - ** THIS IS A WARNING MESSAGE ONLY ** - ** YOU DO NOT NEED TO RESEND YOUR MESSAGE ** - ********************************************** - -The original message was received at Wed, 16 Jan 2008 19:38:07 +1100 -from 60-0-0-61.static.tppppp.com.au [60.0.0.61] - -This message was generated by mail11.tppppp.com.au - - ----- Transcript of session follows ----- -.... while talking to mail.oooooooo.com.au.: ->>> DATA -<<< 452 4.2.2 ... Mailbox full -... Deferred: 452 4.2.2 ... Mailbox full -<<< 503 5.0.0 Need RCPT (recipient) -Warning: message still undelivered after 8 hours -Will keep trying until message is 5 days old - --- -This message has been scanned for viruses and -dangerous content by MailScanner, and is -believed to be clean. - - ---m0GFZ1c3009410.1200501652/mail11.ttttt.com.au -Content-Type: message/delivery-status - -Reporting-MTA: dns; mail11.ttttt.com.au -Arrival-Date: Wed, 16 Jan 2008 19:38:07 +1100 - -Final-Recipient: RFC822; fraser@oooooooo.com.au -Action: delayed -Status: 4.2.2 -Remote-MTA: DNS; mail.oooooooo.com.au -Diagnostic-Code: SMTP; 452 4.2.2 ... Mailbox full -Last-Attempt-Date: Thu, 17 Jan 2008 03:40:52 +1100 - ---m0GFZ1c3009410.1200501652/mail11.ttttt.com.au -Content-Type: text/rfc822-headers - -Return-Path: -Received: from k1s2yo86 (60-0-0-61.static.tppppp.com.au [60.0.0.61]) - by mail11.tppppp.com.au (envelope-from jennifer@sss.sssssss.net.au) (8.14.2/8.14.2) with ESMTP id m0G8c0fR020461 - for ; Wed, 16 Jan 2008 19:38:07 +1100 -Date: Wed, 16 Jan 2008 19:38:07 +1100 -From: Sydney -Message-ID: <15655788.13.1200472642578.JavaMail.Administrator@mail.ttttt.com.au> -Subject: Wanted -MIME-Version: 1.0 -Content-Type: multipart/mixed; - boundary="----=_Part_12_28168925.1200472642578" -X-Virus-Scanned: ClamAV 0.91.2/5484/Wed Jan 16 06:31:27 2008 on mail11.tppppp.com.au -X-Virus-Status: Clean - ---m0GFZ1c3009410.1200501652/mail11.ttttt.com.au-- +Return-Path: +Received: from acomputer ([unix socket]) + by imap01.sssssss.net (Cyrus) with LMTPA; + Wed, 16 Jan 2008 13:51:42 -0800 +X-Sieve: CMU Sieve 2.2 +Received: from smtp.sssssss.org (unknown [198.0.0.92]) + by imap01.sssssss.net (Postfix) with ESMTP id BFE6477FAE + for ; Wed, 16 Jan 2008 13:51:40 -0800 (PST) +Received: from ns1.sssssss.net.au (ns1.sssssss.net.au [202.0.0.246]) + by smtp.sssssss.org (Postfix) with ESMTP id 96E5C6C6830 + for ; Wed, 16 Jan 2008 11:08:14 -0800 (PST) +Received: from ns1.sssssss.net.au (unknown [127.0.0.1]) + by ns1.sssssss.net.au (Postfix) with ESMTP id E1BCEF227 + for ; Thu, 17 Jan 2008 03:40:53 +1100 (EST) +Received: from ns1.sssssss.net.au (ns1.sssssss.net.au [202.0.0.246]) + by localhost (FormatMessage) with SMTP id ceaa681bbcb6c7f6 + for ; Thu, 17 Jan 2008 03:40:53 +1100 (EST) +Received: from mail11.tppppp.com.au (unknown [203.0.0.161]) + by ns1.sssssss.net.au (Postfix) with ESMTP id 7F2D2F225 + for ; Thu, 17 Jan 2008 03:40:52 +1100 (EST) +Received: from localhost (localhost) + by mail11.tppppp.com.au (envelope-from MAILER-DAEMON) (8.14.2/8.14.2) id m0GFZ1c3009410; + Thu, 17 Jan 2008 03:40:52 +1100 +Date: Thu, 17 Jan 2008 03:40:52 +1100 +From: Mail Delivery Subsystem +Message-Id: <200801161640.m0GFZ1c3009410@mail11.ttttt.com.au> +To: +MIME-Version: 1.0 +Content-Type: multipart/report; report-type=delivery-status; + boundary="m0GFZ1c3009410.1200501652/mail11.ttttt.com.au" +Subject: Warning: could not send message for past 8 hours +Auto-Submitted: auto-generated (warning-timeout) +Resent-Date: Thu, 17 Jan 2008 03:40:53 +1100 (EST) +Resent-From: +Resent-To: +Resent-Message-ID: +X-Spam-Status: No + + +--m0GFZ1c3009410.1200501652/mail11.ttttt.com.au +Content-Type: text/plain + + ********************************************** + ** THIS IS A WARNING MESSAGE ONLY ** + ** YOU DO NOT NEED TO RESEND YOUR MESSAGE ** + ********************************************** + +The original message was received at Wed, 16 Jan 2008 19:38:07 +1100 +from 60-0-0-61.static.tppppp.com.au [60.0.0.61] + +This message was generated by mail11.tppppp.com.au + + ----- Transcript of session follows ----- +.... while talking to mail.oooooooo.com.au.: +>>> DATA +<<< 452 4.2.2 ... Mailbox full +... Deferred: 452 4.2.2 ... Mailbox full +<<< 503 5.0.0 Need RCPT (recipient) +Warning: message still undelivered after 8 hours +Will keep trying until message is 5 days old + +-- +This message has been scanned for viruses and +dangerous content by MailScanner, and is +believed to be clean. + + +--m0GFZ1c3009410.1200501652/mail11.ttttt.com.au +Content-Type: message/delivery-status + +Reporting-MTA: dns; mail11.ttttt.com.au +Arrival-Date: Wed, 16 Jan 2008 19:38:07 +1100 + +Final-Recipient: RFC822; fraser@oooooooo.com.au +Action: delayed +Status: 4.2.2 +Remote-MTA: DNS; mail.oooooooo.com.au +Diagnostic-Code: SMTP; 452 4.2.2 ... Mailbox full +Last-Attempt-Date: Thu, 17 Jan 2008 03:40:52 +1100 + +--m0GFZ1c3009410.1200501652/mail11.ttttt.com.au +Content-Type: text/rfc822-headers + +Return-Path: +Received: from k1s2yo86 (60-0-0-61.static.tppppp.com.au [60.0.0.61]) + by mail11.tppppp.com.au (envelope-from jennifer@sss.sssssss.net.au) (8.14.2/8.14.2) with ESMTP id m0G8c0fR020461 + for ; Wed, 16 Jan 2008 19:38:07 +1100 +Date: Wed, 16 Jan 2008 19:38:07 +1100 +From: Sydney +Message-ID: <15655788.13.1200472642578.JavaMail.Administrator@mail.ttttt.com.au> +Subject: Wanted +MIME-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_12_28168925.1200472642578" +X-Virus-Scanned: ClamAV 0.91.2/5484/Wed Jan 16 06:31:27 2008 on mail11.tppppp.com.au +X-Virus-Status: Clean + +--m0GFZ1c3009410.1200501652/mail11.ttttt.com.au-- diff --git a/spec/fixtures/emails/multipart_report_emails/report_530.eml b/spec/fixtures/emails/multipart_report_emails/report_530.eml index 6195feff6..ff0ae8b4d 100644 --- a/spec/fixtures/emails/multipart_report_emails/report_530.eml +++ b/spec/fixtures/emails/multipart_report_emails/report_530.eml @@ -1,97 +1,97 @@ -Return-Path: -Received: from acomputer ([unix socket]) - by imap01.sssss.net (Cyrus) with LMTPA; - Sun, 23 Dec 2007 15:04:04 -0800 -X-Sieve: CMU Sieve 2.2 -Received: from smtp.sssss.org (unknown [198.0.0.92]) - by imap01.sssss.net (Postfix) with ESMTP id E434877FB0 - for ; Sun, 23 Dec 2007 15:04:03 -0800 (PST) -Received: from mail12.tttttt.com.au (mail12.tttttt.com.au [203.0.0.162]) - by smtp.sssss.org (Postfix) with ESMTP id 53313B42B7 - for ; Sun, 23 Dec 2007 15:03:54 -0800 (PST) -Received: from localhost (localhost) - by mail12.tttttt.com.au (envelope-from MAILER-DAEMON) (8.14.2/8.14.2) id lBNN3rDp003436; - Mon, 24 Dec 2007 10:03:53 +1100 -Date: Mon, 24 Dec 2007 10:03:53 +1100 -From: Mail Delivery Subsystem -Message-Id: <200712232303.lBNN3rDp003436@mail12.rrrr.com.au> -To: -MIME-Version: 1.0 -Content-Type: multipart/report; report-type=delivery-status; - boundary="lBNN3rDp003436.1198451033/mail12.rrrr.com.au" -Subject: Returned mail: see transcript for details -Auto-Submitted: auto-generated (failure) -X-Spam-Status: No - -This is a MIME-encapsulated message - ---lBNN3rDp003436.1198451033/mail12.rrrr.com.au - -The original message was received at Mon, 24 Dec 2007 10:03:47 +1100 -from 60-0-0-146.static.tttttt.com.au [60.0.0.146] - -This message was generated by mail12.tttttt.com.au - - ----- The following addresses had permanent fatal errors ----- - - (reason: 553 5.3.0 ... Unknown E-Mail Address) - - ----- Transcript of session follows ----- -... while talking to mail.zzzzzz.com.: ->>> DATA -<<< 553 5.3.0 ... Unknown E-Mail Address -550 5.1.1 ... User unknown -<<< 503 5.0.0 Need RCPT (recipient) - --- -This message has been scanned for viruses and -dangerous content by MailScanner, and is -believed to be clean. - - ---lBNN3rDp003436.1198451033/mail12.rrrr.com.au -Content-Type: message/delivery-status - -Reporting-MTA: dns; mail12.rrrr.com.au -Received-From-MTA: DNS; 60-0-0-146.static.tttttt.com.au -Arrival-Date: Mon, 24 Dec 2007 10:03:47 +1100 - -Final-Recipient: RFC822; edwin@zzzzzzz.com -Action: failed -Status: 5.3.0 -Remote-MTA: DNS; mail.zzzzzz.com -Diagnostic-Code: SMTP; 553 5.3.0 ... Unknown E-Mail Address -Last-Attempt-Date: Mon, 24 Dec 2007 10:03:53 +1100 - ---lBNN3rDp003436.1198451033/mail12.rrrr.com.au -Content-Type: text/rfc822-headers - -Return-Path: -Received: from [192.168.0.3] (60-0-0-146.static.tttttt.com.au [60.0.0.146]) - by mail12.tttttt.com.au (envelope-from mikel@sssss.net) (8.14.2/8.14.2) with ESMTP id lBNN3jDq002941 - for ; Mon, 24 Dec 2007 10:03:47 +1100 -Resent-Date: Mon, 24 Dec 2007 10:03:47 +1100 -Date: Mon, 24 Dec 2007 10:03:47 +1100 -Resent-Message-Id: <200712232303.lBNN3jDq002941@mail12.rrrr.com.au> -Message-Id: <200712232303.lBNN3jDq002941@mail12.rrrr.com.au> -Mime-Version: 1.0 -Content-Type: multipart/report; - report-type=delivery-status; - boundary=80874BE0-2DFF-4BCB-8AA1-A00E17ACA2EA -Received: from murder ([unix socket]) by imap01.sssss.net (Cyrus v2.2.12-Invoca-RPM-2.2.12-6.fc4) with LMTPA; Sun, 23 Dec 2007 12:59:14 -0800 -Received: from smtp.sssss.org (unknown [198.0.0.92]) by imap01.sssss.net (Postfix) with ESMTP id 0AC9F77EDD for ; Sun, 23 Dec 2007 12:59:14 -0800 (PST) -Received: from ns1.sssss.net.au (ns1.sssss.net.au [202.0.0.246]) by smtp.sssss.org (Postfix) with ESMTP id 6FC83B42B4 for ; Sun, 23 Dec 2007 12:59:09 -0800 (PST) -Received: from unicom (unknown [85.0.0.121]) by ns1.sssss.net.au (Postfix) with ESMTP id 85ED5F1F7 for ; Mon, 24 Dec 2007 07:59:02 +1100 (EST) -Received: from [85.0.0.121] by mail.zzzzzz.com; , 23 Dec 2007 12:57:34 -0800 -X-Mailer: Apple Mail (2.753) -From: postoffice -Subject: Returned mail: User unknown -Resent-From: mikel@sssss.net -Auto-Submitted: auto-generated (failure) -To: "Merrill" -X-Virus-Scanned: ClamAV 0.91.2/5229/Mon Dec 24 07:36:55 2007 on mail12.tttttt.com.au -X-Virus-Status: Clean - ---lBNN3rDp003436.1198451033/mail12.rrrr.com.au-- - - +Return-Path: +Received: from acomputer ([unix socket]) + by imap01.sssss.net (Cyrus) with LMTPA; + Sun, 23 Dec 2007 15:04:04 -0800 +X-Sieve: CMU Sieve 2.2 +Received: from smtp.sssss.org (unknown [198.0.0.92]) + by imap01.sssss.net (Postfix) with ESMTP id E434877FB0 + for ; Sun, 23 Dec 2007 15:04:03 -0800 (PST) +Received: from mail12.tttttt.com.au (mail12.tttttt.com.au [203.0.0.162]) + by smtp.sssss.org (Postfix) with ESMTP id 53313B42B7 + for ; Sun, 23 Dec 2007 15:03:54 -0800 (PST) +Received: from localhost (localhost) + by mail12.tttttt.com.au (envelope-from MAILER-DAEMON) (8.14.2/8.14.2) id lBNN3rDp003436; + Mon, 24 Dec 2007 10:03:53 +1100 +Date: Mon, 24 Dec 2007 10:03:53 +1100 +From: Mail Delivery Subsystem +Message-Id: <200712232303.lBNN3rDp003436@mail12.rrrr.com.au> +To: +MIME-Version: 1.0 +Content-Type: multipart/report; report-type=delivery-status; + boundary="lBNN3rDp003436.1198451033/mail12.rrrr.com.au" +Subject: Returned mail: see transcript for details +Auto-Submitted: auto-generated (failure) +X-Spam-Status: No + +This is a MIME-encapsulated message + +--lBNN3rDp003436.1198451033/mail12.rrrr.com.au + +The original message was received at Mon, 24 Dec 2007 10:03:47 +1100 +from 60-0-0-146.static.tttttt.com.au [60.0.0.146] + +This message was generated by mail12.tttttt.com.au + + ----- The following addresses had permanent fatal errors ----- + + (reason: 553 5.3.0 ... Unknown E-Mail Address) + + ----- Transcript of session follows ----- +... while talking to mail.zzzzzz.com.: +>>> DATA +<<< 553 5.3.0 ... Unknown E-Mail Address +550 5.1.1 ... User unknown +<<< 503 5.0.0 Need RCPT (recipient) + +-- +This message has been scanned for viruses and +dangerous content by MailScanner, and is +believed to be clean. + + +--lBNN3rDp003436.1198451033/mail12.rrrr.com.au +Content-Type: message/delivery-status + +Reporting-MTA: dns; mail12.rrrr.com.au +Received-From-MTA: DNS; 60-0-0-146.static.tttttt.com.au +Arrival-Date: Mon, 24 Dec 2007 10:03:47 +1100 + +Final-Recipient: RFC822; edwin@zzzzzzz.com +Action: failed +Status: 5.3.0 +Remote-MTA: DNS; mail.zzzzzz.com +Diagnostic-Code: SMTP; 553 5.3.0 ... Unknown E-Mail Address +Last-Attempt-Date: Mon, 24 Dec 2007 10:03:53 +1100 + +--lBNN3rDp003436.1198451033/mail12.rrrr.com.au +Content-Type: text/rfc822-headers + +Return-Path: +Received: from [192.168.0.3] (60-0-0-146.static.tttttt.com.au [60.0.0.146]) + by mail12.tttttt.com.au (envelope-from mikel@sssss.net) (8.14.2/8.14.2) with ESMTP id lBNN3jDq002941 + for ; Mon, 24 Dec 2007 10:03:47 +1100 +Resent-Date: Mon, 24 Dec 2007 10:03:47 +1100 +Date: Mon, 24 Dec 2007 10:03:47 +1100 +Resent-Message-Id: <200712232303.lBNN3jDq002941@mail12.rrrr.com.au> +Message-Id: <200712232303.lBNN3jDq002941@mail12.rrrr.com.au> +Mime-Version: 1.0 +Content-Type: multipart/report; + report-type=delivery-status; + boundary=80874BE0-2DFF-4BCB-8AA1-A00E17ACA2EA +Received: from murder ([unix socket]) by imap01.sssss.net (Cyrus v2.2.12-Invoca-RPM-2.2.12-6.fc4) with LMTPA; Sun, 23 Dec 2007 12:59:14 -0800 +Received: from smtp.sssss.org (unknown [198.0.0.92]) by imap01.sssss.net (Postfix) with ESMTP id 0AC9F77EDD for ; Sun, 23 Dec 2007 12:59:14 -0800 (PST) +Received: from ns1.sssss.net.au (ns1.sssss.net.au [202.0.0.246]) by smtp.sssss.org (Postfix) with ESMTP id 6FC83B42B4 for ; Sun, 23 Dec 2007 12:59:09 -0800 (PST) +Received: from unicom (unknown [85.0.0.121]) by ns1.sssss.net.au (Postfix) with ESMTP id 85ED5F1F7 for ; Mon, 24 Dec 2007 07:59:02 +1100 (EST) +Received: from [85.0.0.121] by mail.zzzzzz.com; , 23 Dec 2007 12:57:34 -0800 +X-Mailer: Apple Mail (2.753) +From: postoffice +Subject: Returned mail: User unknown +Resent-From: mikel@sssss.net +Auto-Submitted: auto-generated (failure) +To: "Merrill" +X-Virus-Scanned: ClamAV 0.91.2/5229/Mon Dec 24 07:36:55 2007 on mail12.tttttt.com.au +X-Virus-Status: Clean + +--lBNN3rDp003436.1198451033/mail12.rrrr.com.au-- + + diff --git a/spec/fixtures/emails/plain_emails/basic_email.eml b/spec/fixtures/emails/plain_emails/basic_email.eml index 43dea9711..6699f16ab 100644 --- a/spec/fixtures/emails/plain_emails/basic_email.eml +++ b/spec/fixtures/emails/plain_emails/basic_email.eml @@ -1,31 +1,31 @@ -Delivered-To: raasdnil@gmail.com -Received: by 10.140.178.13 with SMTP id a13cs354079rvf; - Fri, 21 Nov 2008 20:05:05 -0800 (PST) -Received: by 10.151.44.15 with SMTP id w15mr2254748ybj.98.1227326704711; - Fri, 21 Nov 2008 20:05:04 -0800 (PST) -Return-Path: -Received: from mail11.tpgi.com.au (mail11.tpgi.com.au [203.12.160.161]) - by mx.google.com with ESMTP id 10si5117885gxk.81.2008.11.21.20.05.03; - Fri, 21 Nov 2008 20:05:04 -0800 (PST) -Received-SPF: neutral (google.com: 203.12.160.161 is neither permitted nor denied by domain of test@lindsaar.net) client-ip=203.12.160.161; -Authentication-Results: mx.google.com; spf=neutral (google.com: 203.12.160.161 is neither permitted nor denied by domain of test@lindsaar.net) smtp.mail=test@lindsaar.net -X-TPG-Junk-Status: Message not scanned -X-TPG-Antivirus: Passed -Received: from [192.0.0.253] (60-241-138-146.static.tpgi.com.au [60.0.0.146]) - by mail11.tpgi.com.au (envelope-from test@lindsaar.net) (8.14.3/8.14.3) with ESMTP id mAM44xew022221 - for ; Sat, 22 Nov 2008 15:05:01 +1100 -Message-Id: <6B7EC235-5B17-4CA8-B2B8-39290DEB43A3@test.lindsaar.net> -From: Mikel Lindsaar -To: Mikel Lindsaar -Content-Type: text/plain; charset=US-ASCII; format=flowed -Content-Transfer-Encoding: 7bit -Mime-Version: 1.0 (Apple Message framework v929.2) -Subject: Testing 123 -Date: Sat, 22 Nov 2008 15:04:59 +1100 -X-Mailer: Apple Mail (2.929.2) - -Plain email. - -Hope it works well! - -Mikel +Delivered-To: raasdnil@gmail.com +Received: by 10.140.178.13 with SMTP id a13cs354079rvf; + Fri, 21 Nov 2008 20:05:05 -0800 (PST) +Received: by 10.151.44.15 with SMTP id w15mr2254748ybj.98.1227326704711; + Fri, 21 Nov 2008 20:05:04 -0800 (PST) +Return-Path: +Received: from mail11.tpgi.com.au (mail11.tpgi.com.au [203.12.160.161]) + by mx.google.com with ESMTP id 10si5117885gxk.81.2008.11.21.20.05.03; + Fri, 21 Nov 2008 20:05:04 -0800 (PST) +Received-SPF: neutral (google.com: 203.12.160.161 is neither permitted nor denied by domain of test@lindsaar.net) client-ip=203.12.160.161; +Authentication-Results: mx.google.com; spf=neutral (google.com: 203.12.160.161 is neither permitted nor denied by domain of test@lindsaar.net) smtp.mail=test@lindsaar.net +X-TPG-Junk-Status: Message not scanned +X-TPG-Antivirus: Passed +Received: from [192.0.0.253] (60-241-138-146.static.tpgi.com.au [60.0.0.146]) + by mail11.tpgi.com.au (envelope-from test@lindsaar.net) (8.14.3/8.14.3) with ESMTP id mAM44xew022221 + for ; Sat, 22 Nov 2008 15:05:01 +1100 +Message-Id: <6B7EC235-5B17-4CA8-B2B8-39290DEB43A3@test.lindsaar.net> +From: Mikel Lindsaar +To: Mikel Lindsaar +Content-Type: text/plain; charset=US-ASCII; format=flowed +Content-Transfer-Encoding: 7bit +Mime-Version: 1.0 (Apple Message framework v929.2) +Subject: Testing 123 +Date: Sat, 22 Nov 2008 15:04:59 +1100 +X-Mailer: Apple Mail (2.929.2) + +Plain email. + +Hope it works well! + +Mikel diff --git a/spec/fixtures/emails/plain_emails/mix_caps_content_type.eml b/spec/fixtures/emails/plain_emails/mix_caps_content_type.eml index 2f8e5c1f9..183d5ed6e 100644 --- a/spec/fixtures/emails/plain_emails/mix_caps_content_type.eml +++ b/spec/fixtures/emails/plain_emails/mix_caps_content_type.eml @@ -1,11 +1,11 @@ -From joe@company.com Fri Feb 19 08:41:30 2010 -From: Big Bug bb@bug.com -To: rubymail@ruby-lang.org -Subject: undef method parameter bug -Date: Fri, 19 Feb 2010 10:08:29 +0300 -MIME-Version: 1.0 -Content-Type: Text/Plain; charset="iso-8859-1" -Content-Transfer-Encoding: quoted-printable -Message-Id: 201002191008.30117.foo.bar@company.com - -foo bar +From joe@company.com Fri Feb 19 08:41:30 2010 +From: Big Bug bb@bug.com +To: rubymail@ruby-lang.org +Subject: undef method parameter bug +Date: Fri, 19 Feb 2010 10:08:29 +0300 +MIME-Version: 1.0 +Content-Type: Text/Plain; charset="iso-8859-1" +Content-Transfer-Encoding: quoted-printable +Message-Id: 201002191008.30117.foo.bar@company.com + +foo bar diff --git a/spec/fixtures/emails/plain_emails/raw_email.eml b/spec/fixtures/emails/plain_emails/raw_email.eml index 43f7a59ce..c57bc04bf 100644 --- a/spec/fixtures/emails/plain_emails/raw_email.eml +++ b/spec/fixtures/emails/plain_emails/raw_email.eml @@ -1,14 +1,14 @@ -From jamis_buck@byu.edu Mon May 2 16:07:05 2005 -Mime-Version: 1.0 (Apple Message framework v622) -Content-Transfer-Encoding: base64 -Message-Id: -Content-Type: text/plain; - charset=EUC-KR; - format=flowed -To: willard15georgina@jamis.backpackit.com -From: Jamis Buck -Subject: =?EUC-KR?Q?NOTE:_=C7=D1=B1=B9=B8=BB=B7=CE_=C7=CF=B4=C2_=B0=CD?= -Date: Mon, 2 May 2005 16:07:05 -0600 - -tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin -wLogSmFtaXPA1LTPtNku +From jamis_buck@byu.edu Mon May 2 16:07:05 2005 +Mime-Version: 1.0 (Apple Message framework v622) +Content-Transfer-Encoding: base64 +Message-Id: +Content-Type: text/plain; + charset=EUC-KR; + format=flowed +To: willard15georgina@jamis.backpackit.com +From: Jamis Buck +Subject: =?EUC-KR?Q?NOTE:_=C7=D1=B1=B9=B8=BB=B7=CE_=C7=CF=B4=C2_=B0=CD?= +Date: Mon, 2 May 2005 16:07:05 -0600 + +tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin +wLogSmFtaXPA1LTPtNku diff --git a/spec/fixtures/emails/plain_emails/raw_email10.eml b/spec/fixtures/emails/plain_emails/raw_email10.eml index b1fc2b261..ac04a448d 100644 --- a/spec/fixtures/emails/plain_emails/raw_email10.eml +++ b/spec/fixtures/emails/plain_emails/raw_email10.eml @@ -1,20 +1,20 @@ -Return-Path: -Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for ; Tue, 10 May 2005 15:27:05 -0500 -Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for ; Tue, 10 May 2005 15:27:04 -0500 -Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for ; Tue, 10 May 2005 15:27:03 -0500 -Date: Tue, 10 May 2005 15:27:03 -0500 -From: xxx@xxxx.xxx -Sender: xxx@xxxx.xxx -To: xxxxxxxxxxx@xxxx.xxxx.xxx -Message-Id: -X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx -Delivered-To: xxx@xxxx.xxx -Importance: normal -Content-Type: text/plain; charset=X-UNKNOWN - -Test test. Hi. Waving. m - ----------------------------------------------------------------- -Sent via Bell Mobility's Text Messaging service. -Envoyé par le service de messagerie texte de Bell Mobilité. ----------------------------------------------------------------- +Return-Path: +Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for ; Tue, 10 May 2005 15:27:05 -0500 +Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for ; Tue, 10 May 2005 15:27:04 -0500 +Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for ; Tue, 10 May 2005 15:27:03 -0500 +Date: Tue, 10 May 2005 15:27:03 -0500 +From: xxx@xxxx.xxx +Sender: xxx@xxxx.xxx +To: xxxxxxxxxxx@xxxx.xxxx.xxx +Message-Id: +X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx +Delivered-To: xxx@xxxx.xxx +Importance: normal +Content-Type: text/plain; charset=X-UNKNOWN + +Test test. Hi. Waving. m + +---------------------------------------------------------------- +Sent via Bell Mobility's Text Messaging service. +Envoyé par le service de messagerie texte de Bell Mobilité. +---------------------------------------------------------------- diff --git a/spec/fixtures/emails/plain_emails/raw_email5.eml b/spec/fixtures/emails/plain_emails/raw_email5.eml index 151c63147..777798d3a 100644 --- a/spec/fixtures/emails/plain_emails/raw_email5.eml +++ b/spec/fixtures/emails/plain_emails/raw_email5.eml @@ -1,19 +1,19 @@ -Return-Path: -Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for ; Tue, 10 May 2005 15:27:05 -0500 -Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for ; Tue, 10 May 2005 15:27:04 -0500 -Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for ; Tue, 10 May 2005 15:27:03 -0500 -Date: Tue, 10 May 2005 15:27:03 -0500 -From: xxx@xxxx.xxx -Sender: xxx@xxxx.xxx -To: xxxxxxxxxxx@xxxx.xxxx.xxx -Message-Id: -X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx -Delivered-To: xxx@xxxx.xxx -Importance: normal - -Test test. Hi. Waving. m - ----------------------------------------------------------------- -Sent via Bell Mobility's Text Messaging service. -Envoyé par le service de messagerie texte de Bell Mobilité. ----------------------------------------------------------------- +Return-Path: +Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for ; Tue, 10 May 2005 15:27:05 -0500 +Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for ; Tue, 10 May 2005 15:27:04 -0500 +Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for ; Tue, 10 May 2005 15:27:03 -0500 +Date: Tue, 10 May 2005 15:27:03 -0500 +From: xxx@xxxx.xxx +Sender: xxx@xxxx.xxx +To: xxxxxxxxxxx@xxxx.xxxx.xxx +Message-Id: +X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx +Delivered-To: xxx@xxxx.xxx +Importance: normal + +Test test. Hi. Waving. m + +---------------------------------------------------------------- +Sent via Bell Mobility's Text Messaging service. +Envoyé par le service de messagerie texte de Bell Mobilité. +---------------------------------------------------------------- diff --git a/spec/fixtures/emails/plain_emails/raw_email6.eml b/spec/fixtures/emails/plain_emails/raw_email6.eml index 93289c4f9..b81b545b5 100644 --- a/spec/fixtures/emails/plain_emails/raw_email6.eml +++ b/spec/fixtures/emails/plain_emails/raw_email6.eml @@ -1,20 +1,20 @@ -Return-Path: -Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for ; Tue, 10 May 2005 15:27:05 -0500 -Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for ; Tue, 10 May 2005 15:27:04 -0500 -Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for ; Tue, 10 May 2005 15:27:03 -0500 -Date: Tue, 10 May 2005 15:27:03 -0500 -From: xxx@xxxx.xxx -Sender: xxx@xxxx.xxx -To: xxxxxxxxxxx@xxxx.xxxx.xxx -Message-Id: -X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx -Delivered-To: xxx@xxxx.xxx -Importance: normal -Content-Type: text/plain; charset=us-ascii - -Test test. Hi. Waving. m - ----------------------------------------------------------------- -Sent via Bell Mobility's Text Messaging service. -Envoyé par le service de messagerie texte de Bell Mobilité. ----------------------------------------------------------------- +Return-Path: +Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for ; Tue, 10 May 2005 15:27:05 -0500 +Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for ; Tue, 10 May 2005 15:27:04 -0500 +Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for ; Tue, 10 May 2005 15:27:03 -0500 +Date: Tue, 10 May 2005 15:27:03 -0500 +From: xxx@xxxx.xxx +Sender: xxx@xxxx.xxx +To: xxxxxxxxxxx@xxxx.xxxx.xxx +Message-Id: +X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx +Delivered-To: xxx@xxxx.xxx +Importance: normal +Content-Type: text/plain; charset=us-ascii + +Test test. Hi. Waving. m + +---------------------------------------------------------------- +Sent via Bell Mobility's Text Messaging service. +Envoyé par le service de messagerie texte de Bell Mobilité. +---------------------------------------------------------------- diff --git a/spec/fixtures/emails/plain_emails/raw_email8.eml b/spec/fixtures/emails/plain_emails/raw_email8.eml index 2382dfdf3..142f53657 100644 --- a/spec/fixtures/emails/plain_emails/raw_email8.eml +++ b/spec/fixtures/emails/plain_emails/raw_email8.eml @@ -1,47 +1,47 @@ -From xxxxxxxxx.xxxxxxx@gmail.com Sun May 8 19:07:09 2005 -Return-Path: -Message-ID: -Date: Sun, 8 May 2005 14:09:11 -0500 -From: xxxxxxxxx xxxxxxx -Reply-To: xxxxxxxxx xxxxxxx -To: xxxxx xxxx -Subject: Fwd: Signed email causes file attachments -In-Reply-To: -Mime-Version: 1.0 -Content-Type: multipart/mixed; - boundary="----=_Part_5028_7368284.1115579351471" -References: - -------=_Part_5028_7368284.1115579351471 -Content-Type: text/plain; charset=ISO-8859-1 -Content-Transfer-Encoding: quoted-printable -Content-Disposition: inline - -We should not include these files or vcards as attachments. - ----------- Forwarded message ---------- -From: xxxxx xxxxxx -Date: May 8, 2005 1:17 PM -Subject: Signed email causes file attachments -To: xxxxxxx@xxxxxxxxxx.com - - -Hi, - -Test attachments oddly encoded with japanese charset. - - -------=_Part_5028_7368284.1115579351471 -Content-Type: application/octet-stream; name*=iso-2022-jp'ja'01%20Quien%20Te%20Dij%8aat.%20Pitbull.mp3 -Content-Transfer-Encoding: base64 -Content-Disposition: attachment - -MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFDCCAs0w -ggI2oAMCAQICAw5c+TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh -d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt -YWlsIElzc3VpbmcgQ0EwHhcNMDUwMzI5MDkzOTEwWhcNMDYwMzI5MDkzOTEwWjBCMR8wHQYDVQQD -ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBzbWhhdW5jaEBtYWMuY29t -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn90dPsYS3LjfMY211OSYrDQLzwNYPlAL -7+/0XA+kdy8/rRnyEHFGwhNCDmg0B6pxC7z3xxJD/8GfCd+IYUUNUQV5m9MkxfP9pTVXZVIYLaBw -------=_Part_5028_7368284.1115579351471-- - +From xxxxxxxxx.xxxxxxx@gmail.com Sun May 8 19:07:09 2005 +Return-Path: +Message-ID: +Date: Sun, 8 May 2005 14:09:11 -0500 +From: xxxxxxxxx xxxxxxx +Reply-To: xxxxxxxxx xxxxxxx +To: xxxxx xxxx +Subject: Fwd: Signed email causes file attachments +In-Reply-To: +Mime-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_5028_7368284.1115579351471" +References: + +------=_Part_5028_7368284.1115579351471 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +Content-Disposition: inline + +We should not include these files or vcards as attachments. + +---------- Forwarded message ---------- +From: xxxxx xxxxxx +Date: May 8, 2005 1:17 PM +Subject: Signed email causes file attachments +To: xxxxxxx@xxxxxxxxxx.com + + +Hi, + +Test attachments oddly encoded with japanese charset. + + +------=_Part_5028_7368284.1115579351471 +Content-Type: application/octet-stream; name*=iso-2022-jp'ja'01%20Quien%20Te%20Dij%8aat.%20Pitbull.mp3 +Content-Transfer-Encoding: base64 +Content-Disposition: attachment + +MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFDCCAs0w +ggI2oAMCAQICAw5c+TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh +d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt +YWlsIElzc3VpbmcgQ0EwHhcNMDUwMzI5MDkzOTEwWhcNMDYwMzI5MDkzOTEwWjBCMR8wHQYDVQQD +ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBzbWhhdW5jaEBtYWMuY29t +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn90dPsYS3LjfMY211OSYrDQLzwNYPlAL +7+/0XA+kdy8/rRnyEHFGwhNCDmg0B6pxC7z3xxJD/8GfCd+IYUUNUQV5m9MkxfP9pTVXZVIYLaBw +------=_Part_5028_7368284.1115579351471-- + diff --git a/spec/fixtures/emails/plain_emails/raw_email_bad_time.eml b/spec/fixtures/emails/plain_emails/raw_email_bad_time.eml index c5c5cad69..1f52f6d30 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_bad_time.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_bad_time.eml @@ -1,62 +1,62 @@ -Return-Path: -Received: from murder ([unix socket]) - by imap1.AAAAAAAAA.net (Cyrus v2.2.12-Invoca-RPM-2.2.12-6.fc4) with LMTPA; - Mon, 30 Jun 2008 02:34:00 -0700 -X-Sieve: CMU Sieve 2.2 -Received: from smtp2.BBBBBBBBBBB.org (unknown [10.254.15.30]) - by imap1.AAAAAAAAA.net (Postfix) with ESMTP id 9444077D75 - for ; Mon, 30 Jun 2008 02:34:00 -0700 (PDT) -Received: from localhost (unknown [92.47.238.91]) - by smtp2.BBBBBBBBBBB.org (Postfix) with ESMTP id 44D0110011 - for ; Mon, 9 Jun 2008 12:24:02 -0700 (PDT) -Message-ID: <86a2019dbec6$caa86cc0$390b0485@auracom.net> -From: "=?windows-1251?B?wPLo6u7iYQ==?=" -To: -Subject: [0]: XXXXXXX XXXXX XXXXX ! -Date: Mon, 30 Jun 3609 15:33:50 +0600 -MIME-Version: 1.0 -Content-Type: multipart/alternative; - boundary=----=_NextPart_000_0023_08_E8CD50F3.4EF2F754 -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.2180 -X-CSI-MailScanner-Information: Please contact the ISP for more information -X-CSI-MailScanner: Found to be clean -X-CSI-MailScanner-SpamCheck: spam, ORDB-RBL -X-CSI-MailScanner-From: yusuf75thu@auracom.net -X-Spam-Status: Yes - -This is a multi-part message in MIME format. - -------=_NextPart_000_0023_08_E8CD50F3.4EF2F754 -Content-Type: text/plain; - charset="windows-1251" -Content-Transfer-Encoding: quoted-printable - - -Filter2: This message has been scanned for viruses and -dangerous content by MailScanner, and is -believed to be clean. - - -------=_NextPart_000_0023_08_E8CD50F3.4EF2F754 -Content-Type: text/html; - charset="windows-1251" -Content-Transfer-Encoding: quoted-printable - - - - - - - - -
    This message has been scanned for viruses and -
    dangerous content by -MailScanner, and is -
    believed to be clean. - - -------=_NextPart_000_0023_08_E8CD50F3.4EF2F754-- +Return-Path: +Received: from murder ([unix socket]) + by imap1.AAAAAAAAA.net (Cyrus v2.2.12-Invoca-RPM-2.2.12-6.fc4) with LMTPA; + Mon, 30 Jun 2008 02:34:00 -0700 +X-Sieve: CMU Sieve 2.2 +Received: from smtp2.BBBBBBBBBBB.org (unknown [10.254.15.30]) + by imap1.AAAAAAAAA.net (Postfix) with ESMTP id 9444077D75 + for ; Mon, 30 Jun 2008 02:34:00 -0700 (PDT) +Received: from localhost (unknown [92.47.238.91]) + by smtp2.BBBBBBBBBBB.org (Postfix) with ESMTP id 44D0110011 + for ; Mon, 9 Jun 2008 12:24:02 -0700 (PDT) +Message-ID: <86a2019dbec6$caa86cc0$390b0485@auracom.net> +From: "=?windows-1251?B?wPLo6u7iYQ==?=" +To: +Subject: [0]: XXXXXXX XXXXX XXXXX ! +Date: Mon, 30 Jun 3609 15:33:50 +0600 +MIME-Version: 1.0 +Content-Type: multipart/alternative; + boundary=----=_NextPart_000_0023_08_E8CD50F3.4EF2F754 +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.2180 +X-CSI-MailScanner-Information: Please contact the ISP for more information +X-CSI-MailScanner: Found to be clean +X-CSI-MailScanner-SpamCheck: spam, ORDB-RBL +X-CSI-MailScanner-From: yusuf75thu@auracom.net +X-Spam-Status: Yes + +This is a multi-part message in MIME format. + +------=_NextPart_000_0023_08_E8CD50F3.4EF2F754 +Content-Type: text/plain; + charset="windows-1251" +Content-Transfer-Encoding: quoted-printable + + +Filter2: This message has been scanned for viruses and +dangerous content by MailScanner, and is +believed to be clean. + + +------=_NextPart_000_0023_08_E8CD50F3.4EF2F754 +Content-Type: text/html; + charset="windows-1251" +Content-Transfer-Encoding: quoted-printable + + + + + + + + +
    This message has been scanned for viruses and +
    dangerous content by +MailScanner, and is +
    believed to be clean. + + +------=_NextPart_000_0023_08_E8CD50F3.4EF2F754-- diff --git a/spec/fixtures/emails/plain_emails/raw_email_double_at_in_header.eml b/spec/fixtures/emails/plain_emails/raw_email_double_at_in_header.eml index 277e86211..9243018fe 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_double_at_in_header.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_double_at_in_header.eml @@ -1,14 +1,14 @@ -From jamis_buck@byu.edu Mon May 2 16:07:05 2005 -Mime-Version: 1.0 (Apple Message framework v622) -Content-Transfer-Encoding: base64 -Message-Id: -Content-Type: text/plain; - charset=EUC-KR; - format=flowed -To: willard15georgina@jamis.backpackit.com -From: Jamis Buck -Subject: =?EUC-KR?Q?NOTE:_=C7=D1=B1=B9=B8=BB=B7=CE_=C7=CF=B4=C2_=B0=CD?= -Date: Mon, 2 May 2005 16:07:05 -0600 - -tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin -wLogSmFtaXPA1LTPtNku +From jamis_buck@byu.edu Mon May 2 16:07:05 2005 +Mime-Version: 1.0 (Apple Message framework v622) +Content-Transfer-Encoding: base64 +Message-Id: +Content-Type: text/plain; + charset=EUC-KR; + format=flowed +To: willard15georgina@jamis.backpackit.com +From: Jamis Buck +Subject: =?EUC-KR?Q?NOTE:_=C7=D1=B1=B9=B8=BB=B7=CE_=C7=CF=B4=C2_=B0=CD?= +Date: Mon, 2 May 2005 16:07:05 -0600 + +tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin +wLogSmFtaXPA1LTPtNku diff --git a/spec/fixtures/emails/plain_emails/raw_email_incorrect_header.eml b/spec/fixtures/emails/plain_emails/raw_email_incorrect_header.eml index 8b9b1eaa0..ddd29770d 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_incorrect_header.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_incorrect_header.eml @@ -1,28 +1,28 @@ -Received: from xxx.xxx.xxx ([xxx.xxx.xxx.xxx] verified) - by xxx.com (CommuniGate Pro SMTP 4.2.8) - with SMTP id 2532598 for xxx@xxx.com; Wed, 23 Feb 2005 17:51:49 -0500 -Received-SPF: softfail - receiver=xxx.com; client-ip=xxx.xxx.xxx.xxx; envelope-from=xxx@xxx.xxx -quite Delivered-To: xxx@xxx.xxx -Received: by xxx.xxx.xxx (Wostfix, from userid xxx) - id 0F87F333; Wed, 23 Feb 2005 16:16:17 -0600 -Date: Wed, 23 Feb 2005 18:20:17 -0400 -From: "xxx xxx" -Message-ID: <4D6AA7EB.6490534@xxx.xxx> -To: xxx@xxx.com -Subject: Stop adware/spyware once and for all. -X-Scanned-By: MIMEDefang 2.11 (www dot roaringpenguin dot com slash mimedefang) - -You are infected with: -Ad Ware and Spy Ware - -Get your free scan and removal download now, -before it gets any worse. - -http://xxx.xxx.info?aid=3D13&?stat=3D4327kdzt - - - - -no more? (you will still be infected) -http://xxx.xxx.info/discon/?xxx@xxx.com +Received: from xxx.xxx.xxx ([xxx.xxx.xxx.xxx] verified) + by xxx.com (CommuniGate Pro SMTP 4.2.8) + with SMTP id 2532598 for xxx@xxx.com; Wed, 23 Feb 2005 17:51:49 -0500 +Received-SPF: softfail + receiver=xxx.com; client-ip=xxx.xxx.xxx.xxx; envelope-from=xxx@xxx.xxx +quite Delivered-To: xxx@xxx.xxx +Received: by xxx.xxx.xxx (Wostfix, from userid xxx) + id 0F87F333; Wed, 23 Feb 2005 16:16:17 -0600 +Date: Wed, 23 Feb 2005 18:20:17 -0400 +From: "xxx xxx" +Message-ID: <4D6AA7EB.6490534@xxx.xxx> +To: xxx@xxx.com +Subject: Stop adware/spyware once and for all. +X-Scanned-By: MIMEDefang 2.11 (www dot roaringpenguin dot com slash mimedefang) + +You are infected with: +Ad Ware and Spy Ware + +Get your free scan and removal download now, +before it gets any worse. + +http://xxx.xxx.info?aid=3D13&?stat=3D4327kdzt + + + + +no more? (you will still be infected) +http://xxx.xxx.info/discon/?xxx@xxx.com diff --git a/spec/fixtures/emails/plain_emails/raw_email_multiple_from.eml b/spec/fixtures/emails/plain_emails/raw_email_multiple_from.eml index 734ac4e2a..6a9fbadd6 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_multiple_from.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_multiple_from.eml @@ -1,30 +1,30 @@ -Delivered-To: tim@powerupdev.com -Return-Path: -To: tim@powerupdev.com concierge@powerupdev.com -From: tim@powerupdev.com concierge@powerupdev.com -Subject: /home/svn/public/minebox revision 214 -Reply-to: tim@powerupdev.com concierge@powerupdev.com -Message-Id: <20071022234523.5BD8E86D2@mangaverde.net> -Date: Mon, 22 Oct 2007 23:45:23 +0000 (UTC) - -

    recordkick 2007-10-22 23:45:23 +0000 (Mon, 22 Oct 2007)

    test -subversion
    -


    Modified:
    -trunk/README
    -===================================================================
    ---- trunk/README\t2007-10-22
    -23:41:34 UTC (rev 213)
    -+++ trunk/README\t2007-10-22 23:45:23 UTC (rev 214)
    -@@ -1,5 +1,5 @@
    - == Welcome
    -to Rails
    --Test
    -+Tedst
    - Rails is a web-application and persistence framework that includes everything
    - needed
    -to create database-backed web-applications according to the
    - Model-View-Control pattern of separation. This pattern
    -splits the view (also
    -
    -
    -
    +Delivered-To: tim@powerupdev.com +Return-Path: +To: tim@powerupdev.com concierge@powerupdev.com +From: tim@powerupdev.com concierge@powerupdev.com +Subject: /home/svn/public/minebox revision 214 +Reply-to: tim@powerupdev.com concierge@powerupdev.com +Message-Id: <20071022234523.5BD8E86D2@mangaverde.net> +Date: Mon, 22 Oct 2007 23:45:23 +0000 (UTC) + +

    recordkick 2007-10-22 23:45:23 +0000 (Mon, 22 Oct 2007)

    test +subversion
    +


    Modified:
    +trunk/README
    +===================================================================
    +--- trunk/README\t2007-10-22
    +23:41:34 UTC (rev 213)
    ++++ trunk/README\t2007-10-22 23:45:23 UTC (rev 214)
    +@@ -1,5 +1,5 @@
    + == Welcome
    +to Rails
    +-Test
    ++Tedst
    + Rails is a web-application and persistence framework that includes everything
    + needed
    +to create database-backed web-applications according to the
    + Model-View-Control pattern of separation. This pattern
    +splits the view (also
    +
    +
    +
    diff --git a/spec/fixtures/emails/plain_emails/raw_email_reply.eml b/spec/fixtures/emails/plain_emails/raw_email_reply.eml index 8e3bba27e..3cc75178a 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_reply.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_reply.eml @@ -1,32 +1,32 @@ -Return-Path: -Received: from me ([unix socket]) - by xxxxx1.xxxx.net (Cyrus v2.2.12) with LMTPA; - Sun, 18 Nov 2007 00:56:33 -0800 -Received: from smtp.xxxx.org (unknown [127.0.0.1]) - by xxxxx1.xxxx.net (Postfix) with ESMTP id F128477EB5; - Sun, 18 Nov 2007 00:56:32 -0800 (PST) -Received: from omta02sl.mx.bigpond.com (omta02sl.mx.bigpond.com [144.140.93.154]) - by smtp.xxxx.org (Postfix) with ESMTP id 2D567ACC08; - Sun, 18 Nov 2007 00:56:28 -0800 (PST) -Received: from oaamta05sl.mx.bigpond.com ([124.183.219.10]) - by omta02sl.mx.bigpond.com with ESMTP - id <20071118085627.YVPI22254.omta02sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com>; - Sun, 18 Nov 2007 08:56:27 +0000 -Received: from [10.0.0.1] (really [124.183.219.10]) - by oaamta05sl.mx.bigpond.com with ESMTP - id <20071118085627.TQWF6995.oaamta05sl.mx.bigpond.com@[10.0.0.1]>; - Sun, 18 Nov 2007 08:56:27 +0000 -Message-ID: <473FFE27.20003@xxx.org> -Date: Sun, 18 Nov 2007 19:56:07 +1100 -From: Testing -User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) -X-Accept-Language: en-us, en -MIME-Version: 1.0 -To: Mikel Lindsaar -Subject: Re: Test reply email -References: <473FF3B8.9020707@xxx.org> <348F04F142D69C21-291E56D292BC@xxxx.net> -In-Reply-To: <348F04F142D69C21-291E56D292BC@xxxx.net> -Content-Type: text/plain; charset=US-ASCII; format=flowed -Content-Transfer-Encoding: 7bit - -Message body +Return-Path: +Received: from me ([unix socket]) + by xxxxx1.xxxx.net (Cyrus v2.2.12) with LMTPA; + Sun, 18 Nov 2007 00:56:33 -0800 +Received: from smtp.xxxx.org (unknown [127.0.0.1]) + by xxxxx1.xxxx.net (Postfix) with ESMTP id F128477EB5; + Sun, 18 Nov 2007 00:56:32 -0800 (PST) +Received: from omta02sl.mx.bigpond.com (omta02sl.mx.bigpond.com [144.140.93.154]) + by smtp.xxxx.org (Postfix) with ESMTP id 2D567ACC08; + Sun, 18 Nov 2007 00:56:28 -0800 (PST) +Received: from oaamta05sl.mx.bigpond.com ([124.183.219.10]) + by omta02sl.mx.bigpond.com with ESMTP + id <20071118085627.YVPI22254.omta02sl.mx.bigpond.com@oaamta05sl.mx.bigpond.com>; + Sun, 18 Nov 2007 08:56:27 +0000 +Received: from [10.0.0.1] (really [124.183.219.10]) + by oaamta05sl.mx.bigpond.com with ESMTP + id <20071118085627.TQWF6995.oaamta05sl.mx.bigpond.com@[10.0.0.1]>; + Sun, 18 Nov 2007 08:56:27 +0000 +Message-ID: <473FFE27.20003@xxx.org> +Date: Sun, 18 Nov 2007 19:56:07 +1100 +From: Testing +User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) +X-Accept-Language: en-us, en +MIME-Version: 1.0 +To: Mikel Lindsaar +Subject: Re: Test reply email +References: <473FF3B8.9020707@xxx.org> <348F04F142D69C21-291E56D292BC@xxxx.net> +In-Reply-To: <348F04F142D69C21-291E56D292BC@xxxx.net> +Content-Type: text/plain; charset=US-ASCII; format=flowed +Content-Transfer-Encoding: 7bit + +Message body diff --git a/spec/fixtures/emails/plain_emails/raw_email_simple.eml b/spec/fixtures/emails/plain_emails/raw_email_simple.eml index 53cddeadd..7fe2432a8 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_simple.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_simple.eml @@ -1,11 +1,11 @@ -From mike@nowhere.com -Return-Path: -Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 -Date: Sun, 21 Oct 2007 19:38:13 +1000 -From: Mikel Lindsaar -To: Mikel -Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> -Subject: Testing outlook - -Hello Mikel - +From mike@nowhere.com +Return-Path: +Received: from mikel091a by oaamta05sl.mx.bigpond.com with SMTP id <20071021093820.JFMT24025.oaamta05sl.mx.bigpond.com@mikel091a> for ; Sun, 21 Oct 2007 19:38:20 +1000 +Date: Sun, 21 Oct 2007 19:38:13 +1000 +From: Mikel Lindsaar +To: Mikel +Message-Id: <009601c813c6$19df3510$0437d30a@mikel091a> +Subject: Testing outlook + +Hello Mikel + diff --git a/spec/fixtures/emails/plain_emails/raw_email_string_in_date_field.eml b/spec/fixtures/emails/plain_emails/raw_email_string_in_date_field.eml index 227222bde..dd7e03971 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_string_in_date_field.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_string_in_date_field.eml @@ -1,17 +1,17 @@ -From mikel@me.com Mon May 2 16:07:05 2005 -Mime-Version: 1.0 (Apple Message framework v622) -Received: from jsj1wlrmd001.webex.com (by jsj1wlrmd001.webex.com - (8.12.10/8.12.11) with ESMTP id m8MKKPTs022429 - for ; Mon, 22 Sep 2008 20:20:25 GMT -Content-Transfer-Encoding: base64 -Message-Id: -Content-Type: text/plain; - charset=EUC-KR; - format=flowed -To: bob@bob.com -From: mikel@me.com -Subject: =?EUC-KR?Q?NOTE:_=C7=D1=B1=B9=B8=BB=B7=CE_=C7=CF=B4=C2_=B0=CD?= -Date: Sat, 20 Sep 2008 20:04:30 +0300 (ùòåï ÷éõ éøåùìéí) - -tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin -wLogSmFtaXPA1LTPtNku +From mikel@me.com Mon May 2 16:07:05 2005 +Mime-Version: 1.0 (Apple Message framework v622) +Received: from jsj1wlrmd001.webex.com (by jsj1wlrmd001.webex.com + (8.12.10/8.12.11) with ESMTP id m8MKKPTs022429 + for ; Mon, 22 Sep 2008 20:20:25 GMT +Content-Transfer-Encoding: base64 +Message-Id: +Content-Type: text/plain; + charset=EUC-KR; + format=flowed +To: bob@bob.com +From: mikel@me.com +Subject: =?EUC-KR?Q?NOTE:_=C7=D1=B1=B9=B8=BB=B7=CE_=C7=CF=B4=C2_=B0=CD?= +Date: Sat, 20 Sep 2008 20:04:30 +0300 (ùòåï ÷éõ éøåùìéí) + +tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin +wLogSmFtaXPA1LTPtNku diff --git a/spec/fixtures/emails/plain_emails/raw_email_trailing_dot.eml b/spec/fixtures/emails/plain_emails/raw_email_trailing_dot.eml index 137bcbfa7..0dd03344e 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_trailing_dot.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_trailing_dot.eml @@ -1,21 +1,21 @@ -Delivered-To: xxx@xxx.com -Received: by 10.67.31.8 with SMTP id i8cs1195ugj; - Mon, 22 Sep 2008 13:45:18 -0700 (PDT) -Received: by 10.100.207.5 with SMTP id e5mr3483815ang.104.1222110393505; - Mon, 22 Sep 2008 12:06:33 -0700 (PDT) -Return-Path: -Received: from rubyforge.org (rubyforge.org [205.234.109.19]) - by mx.google.com with ESMTP id c2si899474ana.10.2008.09.22.12.06.28; - Mon, 22 Sep 2008 12:06:33 -0700 (PDT) -Received-SPF: pass (google.com: best guess record for domain of noreply@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; -Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of noreply@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=noreply@rubyforge.org -Received: by rubyforge.org (Postfix, from userid 502) - id 8FB1518581AC; Mon, 22 Sep 2008 15:06:28 -0400 (EDT) -To: noreply@rubyforge.org -From: Sandy M. -Subject: [skynet-help][60666] How are intermediate files handled in SkyNet? -Content-type: text/plain; charset=UTF-8 -Message-Id: <20080922190628.8FB1518581AC@rubyforge.org> -Date: Mon, 22 Sep 2008 15:06:28 -0400 (EDT) - +Delivered-To: xxx@xxx.com +Received: by 10.67.31.8 with SMTP id i8cs1195ugj; + Mon, 22 Sep 2008 13:45:18 -0700 (PDT) +Received: by 10.100.207.5 with SMTP id e5mr3483815ang.104.1222110393505; + Mon, 22 Sep 2008 12:06:33 -0700 (PDT) +Return-Path: +Received: from rubyforge.org (rubyforge.org [205.234.109.19]) + by mx.google.com with ESMTP id c2si899474ana.10.2008.09.22.12.06.28; + Mon, 22 Sep 2008 12:06:33 -0700 (PDT) +Received-SPF: pass (google.com: best guess record for domain of noreply@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; +Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of noreply@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=noreply@rubyforge.org +Received: by rubyforge.org (Postfix, from userid 502) + id 8FB1518581AC; Mon, 22 Sep 2008 15:06:28 -0400 (EDT) +To: noreply@rubyforge.org +From: Sandy M. +Subject: [skynet-help][60666] How are intermediate files handled in SkyNet? +Content-type: text/plain; charset=UTF-8 +Message-Id: <20080922190628.8FB1518581AC@rubyforge.org> +Date: Mon, 22 Sep 2008 15:06:28 -0400 (EDT) + Testing, testing, 123. \ No newline at end of file diff --git a/spec/fixtures/emails/plain_emails/raw_email_with_at_display_name.eml b/spec/fixtures/emails/plain_emails/raw_email_with_at_display_name.eml index 55a2e7cb2..ddcf4ccb9 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_with_at_display_name.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_with_at_display_name.eml @@ -1,31 +1,31 @@ -Delivered-To: raasdnil@gmail.com -Received: by 10.140.178.13 with SMTP id a13cs354079rvf; - Fri, 21 Nov 2008 20:05:05 -0800 (PST) -Received: by 10.151.44.15 with SMTP id w15mr2254748ybj.98.1227326704711; - Fri, 21 Nov 2008 20:05:04 -0800 (PST) -Return-Path: -Received: from mail11.tpgi.com.au (mail11.tpgi.com.au [203.12.160.161]) - by mx.google.com with ESMTP id 10si5117885gxk.81.2008.11.21.20.05.03; - Fri, 21 Nov 2008 20:05:04 -0800 (PST) -Received-SPF: neutral (google.com: 203.12.160.161 is neither permitted nor denied by domain of test@lindsaar.net) client-ip=203.12.160.161; -Authentication-Results: mx.google.com; spf=neutral (google.com: 203.12.160.161 is neither permitted nor denied by domain of test@lindsaar.net) smtp.mail=test@lindsaar.net -X-TPG-Junk-Status: Message not scanned -X-TPG-Antivirus: Passed -Received: from [192.0.0.253] (60-241-138-146.static.tpgi.com.au [60.0.0.146]) - by mail11.tpgi.com.au (envelope-from test@lindsaar.net) (8.14.3/8.14.3) with ESMTP id mAM44xew022221 - for ; Sat, 22 Nov 2008 15:05:01 +1100 -Message-Id: <6B7EC235-5B17-4CA8-B2B8-39290DEB43A3@test.lindsaar.net> -From: Mikel Lindsaar , jack@lindsar.com -To: smith@gmail.com, Mikel@Lindsaar , tom@gmail.com -Content-Type: text/plain; charset=US-ASCII; format=flowed -Content-Transfer-Encoding: 7bit -Mime-Version: 1.0 (Apple Message framework v929.2) -Subject: Testing 123 -Date: Sat, 22 Nov 2008 15:04:59 +1100 -X-Mailer: Apple Mail (2.929.2) - -Plain email. - -Hope it works well! - -Mikel +Delivered-To: raasdnil@gmail.com +Received: by 10.140.178.13 with SMTP id a13cs354079rvf; + Fri, 21 Nov 2008 20:05:05 -0800 (PST) +Received: by 10.151.44.15 with SMTP id w15mr2254748ybj.98.1227326704711; + Fri, 21 Nov 2008 20:05:04 -0800 (PST) +Return-Path: +Received: from mail11.tpgi.com.au (mail11.tpgi.com.au [203.12.160.161]) + by mx.google.com with ESMTP id 10si5117885gxk.81.2008.11.21.20.05.03; + Fri, 21 Nov 2008 20:05:04 -0800 (PST) +Received-SPF: neutral (google.com: 203.12.160.161 is neither permitted nor denied by domain of test@lindsaar.net) client-ip=203.12.160.161; +Authentication-Results: mx.google.com; spf=neutral (google.com: 203.12.160.161 is neither permitted nor denied by domain of test@lindsaar.net) smtp.mail=test@lindsaar.net +X-TPG-Junk-Status: Message not scanned +X-TPG-Antivirus: Passed +Received: from [192.0.0.253] (60-241-138-146.static.tpgi.com.au [60.0.0.146]) + by mail11.tpgi.com.au (envelope-from test@lindsaar.net) (8.14.3/8.14.3) with ESMTP id mAM44xew022221 + for ; Sat, 22 Nov 2008 15:05:01 +1100 +Message-Id: <6B7EC235-5B17-4CA8-B2B8-39290DEB43A3@test.lindsaar.net> +From: Mikel Lindsaar , jack@lindsar.com +To: smith@gmail.com, Mikel@Lindsaar , tom@gmail.com +Content-Type: text/plain; charset=US-ASCII; format=flowed +Content-Transfer-Encoding: 7bit +Mime-Version: 1.0 (Apple Message framework v929.2) +Subject: Testing 123 +Date: Sat, 22 Nov 2008 15:04:59 +1100 +X-Mailer: Apple Mail (2.929.2) + +Plain email. + +Hope it works well! + +Mikel diff --git a/spec/fixtures/emails/plain_emails/raw_email_with_bad_date.eml b/spec/fixtures/emails/plain_emails/raw_email_with_bad_date.eml index 9f9667d77..9050bef28 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_with_bad_date.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_with_bad_date.eml @@ -1,48 +1,48 @@ -Return-Path: -X-Original-To: external@xxx.xxxxxxxx.xxx.xx -Delivered-To: external@xxx.xxxxxxxx.xxx.xx -Received: from server.xxx.xxxxxxxx.xxx.xx (localhost.xxxxxxxx.xxx.xx [127.0.0.1]) - by server.xxx.xxxxxxxx.xxx.xx (Postfix) with ESMTP id 0173828456 - for ; Mon, 5 Nov 2007 20:17:37 +1100 (EST) -Received: from server.xxx.xxxxxxxx.xxx.xx (server.xxx.xxxxxxxx.xxx.xx [10.130.1.250]) - by localhost (FormatMessage) with SMTP id d7be4d19ed6d330c - for ; Mon, 05 Nov 2007 20:17:37 +1100 (EST) -Received: from server.sydney.xxxxxxxx.xxx.xx (unknown [10.130.2.6]) - by server.xxx.xxxxxxxx.xxx.xx (Postfix) with ESMTP id BB00328442 - for ; Mon, 5 Nov 2007 20:17:37 +1100 (EST) -Received: from dircomm (unknown [10.130.2.8]) - by server.sydney.xxxxxxxx.xxx.xx (Postfix) with ESMTP id 20A692841F - for ; Mon, 5 Nov 2007 20:18:24 +1100 (EST) -X-Mailbox-Line: From subventive@vodtravel.com -Message-ID: <000001c81a67$a4450700$0100007f@localhost> -From: "Darrell Shaw" -To: -Subject: Microsoft Vlsta & Office2007, Just released for 79$ Save 1599.95$ 0ff Retai| -Date: Pn, 29 paX 2007 21:13:00 +0100 -Content-Type: text/plain; - charset="us-ascii" -Content-Transfer-Encoding: 7bit -X-Priority: 3 (Normal) -X-MSMail-Priority: Normal -X-Mailer: Microsoft Outlook, Build 10.0.3416 -Importance: Normal -X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.150 -X-CSI-TMailScanner-Information: Please contact the ISP for more information -X-CSI-TMailScanner: Found to be clean -X-CSI-TMailScanner-SpamCheck: not spam, SpamAssassin (score=1.87, required 4, - autolearn=disabled, INVALID_DATE 0.23, RAZOR2_CF_RANGE_51_100 1.49, - RAZOR2_CHECK 0.15) -X-CSI-TMailScanner-SpamScore: s -X-TMailScanner-From: subventive@vodtravel.com -Resent-Date: Mon, 05 Nov 2007 20:17:37 +1100 (EST) -Resent-From: -Resent-To: -Resent-Message-ID: -X-UID: 4702 -Status: RO - -hotnewsoft . com - - - - +Return-Path: +X-Original-To: external@xxx.xxxxxxxx.xxx.xx +Delivered-To: external@xxx.xxxxxxxx.xxx.xx +Received: from server.xxx.xxxxxxxx.xxx.xx (localhost.xxxxxxxx.xxx.xx [127.0.0.1]) + by server.xxx.xxxxxxxx.xxx.xx (Postfix) with ESMTP id 0173828456 + for ; Mon, 5 Nov 2007 20:17:37 +1100 (EST) +Received: from server.xxx.xxxxxxxx.xxx.xx (server.xxx.xxxxxxxx.xxx.xx [10.130.1.250]) + by localhost (FormatMessage) with SMTP id d7be4d19ed6d330c + for ; Mon, 05 Nov 2007 20:17:37 +1100 (EST) +Received: from server.sydney.xxxxxxxx.xxx.xx (unknown [10.130.2.6]) + by server.xxx.xxxxxxxx.xxx.xx (Postfix) with ESMTP id BB00328442 + for ; Mon, 5 Nov 2007 20:17:37 +1100 (EST) +Received: from dircomm (unknown [10.130.2.8]) + by server.sydney.xxxxxxxx.xxx.xx (Postfix) with ESMTP id 20A692841F + for ; Mon, 5 Nov 2007 20:18:24 +1100 (EST) +X-Mailbox-Line: From subventive@vodtravel.com +Message-ID: <000001c81a67$a4450700$0100007f@localhost> +From: "Darrell Shaw" +To: +Subject: Microsoft Vlsta & Office2007, Just released for 79$ Save 1599.95$ 0ff Retai| +Date: Pn, 29 paX 2007 21:13:00 +0100 +Content-Type: text/plain; + charset="us-ascii" +Content-Transfer-Encoding: 7bit +X-Priority: 3 (Normal) +X-MSMail-Priority: Normal +X-Mailer: Microsoft Outlook, Build 10.0.3416 +Importance: Normal +X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.150 +X-CSI-TMailScanner-Information: Please contact the ISP for more information +X-CSI-TMailScanner: Found to be clean +X-CSI-TMailScanner-SpamCheck: not spam, SpamAssassin (score=1.87, required 4, + autolearn=disabled, INVALID_DATE 0.23, RAZOR2_CF_RANGE_51_100 1.49, + RAZOR2_CHECK 0.15) +X-CSI-TMailScanner-SpamScore: s +X-TMailScanner-From: subventive@vodtravel.com +Resent-Date: Mon, 05 Nov 2007 20:17:37 +1100 (EST) +Resent-From: +Resent-To: +Resent-Message-ID: +X-UID: 4702 +Status: RO + +hotnewsoft . com + + + + diff --git a/spec/fixtures/emails/plain_emails/raw_email_with_partially_quoted_subject.eml b/spec/fixtures/emails/plain_emails/raw_email_with_partially_quoted_subject.eml index e86108da1..d8df28519 100644 --- a/spec/fixtures/emails/plain_emails/raw_email_with_partially_quoted_subject.eml +++ b/spec/fixtures/emails/plain_emails/raw_email_with_partially_quoted_subject.eml @@ -1,14 +1,14 @@ -From jamis@37signals.com Mon May 2 16:07:05 2005 -Mime-Version: 1.0 (Apple Message framework v622) -Content-Transfer-Encoding: base64 -Message-Id: -Content-Type: text/plain; - charset=EUC-KR; - format=flowed -To: jamis@37signals.com -From: Jamis Buck -Subject: Re: Test: =?UTF-8?B?Iua8ouWtlyI=?= mid =?UTF-8?B?Iua8ouWtlyI=?= tail -Date: Mon, 2 May 2005 16:07:05 -0600 - -tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin -wLogSmFtaXPA1LTPtNku +From jamis@37signals.com Mon May 2 16:07:05 2005 +Mime-Version: 1.0 (Apple Message framework v622) +Content-Transfer-Encoding: base64 +Message-Id: +Content-Type: text/plain; + charset=EUC-KR; + format=flowed +To: jamis@37signals.com +From: Jamis Buck +Subject: Re: Test: =?UTF-8?B?Iua8ouWtlyI=?= mid =?UTF-8?B?Iua8ouWtlyI=?= tail +Date: Mon, 2 May 2005 16:07:05 -0600 + +tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin +wLogSmFtaXPA1LTPtNku diff --git a/spec/fixtures/emails/rfc2822/example10.eml b/spec/fixtures/emails/rfc2822/example10.eml index 0b69f623f..b731c35b7 100644 --- a/spec/fixtures/emails/rfc2822/example10.eml +++ b/spec/fixtures/emails/rfc2822/example10.eml @@ -1,15 +1,15 @@ -From: Pete(A wonderful \) chap) -To:A Group(Some people) - :Chris Jones , - joe@example.org, - John (my dear friend); (the end of the group) -Cc:(Empty list)(start)Undisclosed recipients :(nobody(that I know)) ; -Date: Thu, - 13 - Feb - 1969 - 23:32 - -0330 (Newfoundland Time) -Message-ID: - -Testing. +From: Pete(A wonderful \) chap) +To:A Group(Some people) + :Chris Jones , + joe@example.org, + John (my dear friend); (the end of the group) +Cc:(Empty list)(start)Undisclosed recipients :(nobody(that I know)) ; +Date: Thu, + 13 + Feb + 1969 + 23:32 + -0330 (Newfoundland Time) +Message-ID: + +Testing. diff --git a/spec/fixtures/emails/rfc2822/example13.eml b/spec/fixtures/emails/rfc2822/example13.eml index 2fb1d4411..6899c585a 100644 --- a/spec/fixtures/emails/rfc2822/example13.eml +++ b/spec/fixtures/emails/rfc2822/example13.eml @@ -1,10 +1,10 @@ -From : John Doe -To : Mary Smith -__ - -Subject : Saying Hello -Date : Fri, 21 Nov 1997 09(comment): 55 : 06 -0600 -Message-ID : <1234 @ local(blah) .machine .example> - -This is a message just to say hello. -So, "Hello". +From : John Doe +To : Mary Smith +__ + +Subject : Saying Hello +Date : Fri, 21 Nov 1997 09(comment): 55 : 06 -0600 +Message-ID : <1234 @ local(blah) .machine .example> + +This is a message just to say hello. +So, "Hello". diff --git a/spec/fixtures/emails/rfc2822/example14.eml b/spec/fixtures/emails/rfc2822/example14.eml index e40d9b131..9d3e9c33b 100644 --- a/spec/fixtures/emails/rfc2822/example14.eml +++ b/spec/fixtures/emails/rfc2822/example14.eml @@ -1,16 +1,16 @@ -From test@example.com Mon Aug 22 09:45:15 2011 -Date: Fri, 19 Aug 2011 10:47:17 +0900 -From: Atsushi Yoshida -Reply-To: rudeboyjet@gmail.com -Subject: Re: TEST - - =?ISO-2022-JP?B?GyRCJUYlOSVIGyhC?= - =?ISO-2022-JP?B?GyRCJUYlOSVIGyhC?= -To: rudeboyjet@gmail.com -Message-Id: <0CC5E11ED2C1D@example.com> -In-Reply-To: -Mime-Version: 1.0 -Content-Type: text/plain; charset=iso-2022-jp -Content-Transfer-Encoding: 7bit - -Hello +From test@example.com Mon Aug 22 09:45:15 2011 +Date: Fri, 19 Aug 2011 10:47:17 +0900 +From: Atsushi Yoshida +Reply-To: rudeboyjet@gmail.com +Subject: Re: TEST + + =?ISO-2022-JP?B?GyRCJUYlOSVIGyhC?= + =?ISO-2022-JP?B?GyRCJUYlOSVIGyhC?= +To: rudeboyjet@gmail.com +Message-Id: <0CC5E11ED2C1D@example.com> +In-Reply-To: +Mime-Version: 1.0 +Content-Type: text/plain; charset=iso-2022-jp +Content-Transfer-Encoding: 7bit + +Hello diff --git a/spec/fixtures/emails/rfc6532/utf8_headers.eml b/spec/fixtures/emails/rfc6532/utf8_headers.eml index 5f1db9695..ab4845a3a 100644 --- a/spec/fixtures/emails/rfc6532/utf8_headers.eml +++ b/spec/fixtures/emails/rfc6532/utf8_headers.eml @@ -1,5 +1,5 @@ -From: "Jöhn Doe" -To: "Märy Smith" -Subject: Säying Hello - -body +From: "Jöhn Doe" +To: "Märy Smith" +Subject: Säying Hello + +body diff --git a/spec/mail/attachments_list_spec.rb b/spec/mail/attachments_list_spec.rb index c2d4d90de..bff14e1fe 100644 --- a/spec/mail/attachments_list_spec.rb +++ b/spec/mail/attachments_list_spec.rb @@ -19,7 +19,7 @@ def check_decoded(actual, expected) before(:each) do @mail = Mail.new - @test_png = File.open(fixture('attachments', 'test.png'), 'rb', &:read) + @test_png = read_raw_fixture('attachments', 'test.png') end describe "from direct content" do @@ -40,7 +40,7 @@ def check_decoded(actual, expected) end it "should assign mime-encoded multibyte filename" do - @mail.attachments['てすと.txt'] = File.open(fixture('attachments', 'てすと.txt'), 'rb', &:read) + @mail.attachments['てすと.txt'] = read_raw_fixture('attachments', 'てすと.txt') expect(Mail::Utilities.blank?(@mail.attachments)).not_to eq true expect(Mail::Encodings.decode_encode(@mail.attachments[0].filename, :decode)).to eq 'てすと.txt' end @@ -132,10 +132,10 @@ def check_decoded(actual, expected) it "should allow you to pass in more than one attachment" do mail = Mail.new - mail.attachments['test.pdf'] = File.open(fixture('attachments', 'test.pdf'), 'rb', &:read) - mail.attachments['test.gif'] = File.open(fixture('attachments', 'test.gif'), 'rb', &:read) - mail.attachments['test.jpg'] = File.open(fixture('attachments', 'test.jpg'), 'rb', &:read) - mail.attachments['test.zip'] = File.open(fixture('attachments', 'test.zip'), 'rb', &:read) + mail.attachments['test.pdf'] = read_raw_fixture('attachments', 'test.pdf') + mail.attachments['test.gif'] = read_raw_fixture('attachments', 'test.gif') + mail.attachments['test.jpg'] = read_raw_fixture('attachments', 'test.jpg') + mail.attachments['test.zip'] = read_raw_fixture('attachments', 'test.zip') expect(mail.attachments[0].filename).to eq 'test.pdf' expect(mail.attachments[1].filename).to eq 'test.gif' expect(mail.attachments[2].filename).to eq 'test.jpg' @@ -148,9 +148,9 @@ def check_decoded(actual, expected) it "should set the content_disposition to inline or attachment as appropriate" do mail = Mail.new - mail.attachments['test.pdf'] = File.open(fixture('attachments', 'test.pdf'), 'rb', &:read) + mail.attachments['test.pdf'] = read_raw_fixture('attachments', 'test.pdf') expect(mail.attachments['test.pdf'].content_disposition).to eq 'attachment; filename=test.pdf' - mail.attachments.inline['test.png'] = File.open(fixture('attachments', 'test.png'), 'rb', &:read) + mail.attachments.inline['test.png'] = read_raw_fixture('attachments', 'test.png') expect(mail.attachments.inline['test.png'].content_disposition).to eq 'inline; filename=test.png' end @@ -170,7 +170,7 @@ def check_decoded(actual, expected) describe "getting the content ID from an attachment" do before(:each) do @mail = Mail.new - @mail.attachments['test.gif'] = File.open(fixture('attachments', 'test.gif'), 'rb', &:read) + @mail.attachments['test.gif'] = read_raw_fixture('attachments', 'test.gif') @cid = @mail.attachments['test.gif'].content_id end @@ -192,14 +192,14 @@ def check_decoded(actual, expected) describe "setting the content type correctly" do it "should set the content type to multipart/mixed if none given and you add an attachment" do mail = Mail.new - mail.attachments['test.pdf'] = File.open(fixture('attachments', 'test.pdf'), 'rb', &:read) + mail.attachments['test.pdf'] = read_raw_fixture('attachments', 'test.pdf') mail.encoded expect(mail.mime_type).to eq 'multipart/mixed' end it "allows you to set the attachment before the content type" do mail = Mail.new - mail.attachments["test.png"] = File.open(fixture('attachments', 'test.png'), 'rb', &:read) + mail.attachments["test.png"] = read_raw_fixture('attachments', 'test.png') mail.body = "Lots of HTML" mail.mime_version = '1.0' mail.content_type = 'text/html; charset=UTF-8' @@ -215,7 +215,7 @@ def check_decoded(actual, expected) end mail = Mail.new expect { - mail.attachments[filename] = File.open(fixture('attachments', 'test.pdf'), 'rb', &:read) + mail.attachments[filename] = read_raw_fixture('attachments', 'test.pdf') }.not_to raise_error end end @@ -226,27 +226,27 @@ def check_decoded(actual, expected) describe "test emails" do it "should find the attachment using content location" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_content_location.eml'))) + mail = read_fixture('emails/attachment_emails/attachment_content_location.eml') expect(mail.attachments.length).to eq 1 end it "should find an attachment defined with 'name' and Content-Disposition: attachment" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_content_disposition.eml'))) + mail = read_fixture('emails/attachment_emails/attachment_content_disposition.eml') expect(mail.attachments.length).to eq 1 end it "should use the content-disposition filename over the content-type filename or name" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_content_disposition.eml'))) + mail = read_fixture('emails/attachment_emails/attachment_content_disposition.eml') expect(mail.attachments[0].filename).to eq 'api.rb' end it "should decode an attachment" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_pdf.eml'))) + mail = read_fixture('emails/attachment_emails/attachment_pdf.eml') expect(mail.attachments[0].decoded.length).to eq 1026 end it "should find an attachment that has an encoded name value" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_with_encoded_name.eml'))) + mail = read_fixture('emails/attachment_emails/attachment_with_encoded_name.eml') expect(mail.attachments.length).to eq 1 result = mail.attachments[0].filename replace = '�' if RUBY_VERSION > '1.9' @@ -255,21 +255,19 @@ def check_decoded(actual, expected) end it "should find an attachment that has a name not surrounded by quotes" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', "attachment_with_unquoted_name.eml"))) + mail = read_fixture('emails/attachment_emails/attachment_with_unquoted_name.eml') expect(mail.attachments.length).to eq 1 expect(mail.attachments.first.filename).to eq "This is a test.txt" end it "should find attachments inside parts with content-type message/rfc822" do - mail = Mail.read(fixture(File.join("emails", - "attachment_emails", - "attachment_message_rfc822.eml"))) + mail = read_fixture('emails/attachment_emails/attachment_message_rfc822.eml') expect(mail.attachments.length).to eq 1 expect(mail.attachments[0].decoded.length).to eq 1026 end it "attach filename decoding (issue 83)" do - data = <<-limitMAIL + mail = Mail.new(Mail::Utilities.to_crlf(<<-limitMAIL)) Subject: aaa From: aaa@aaa.com To: bbb@aaa.com @@ -298,7 +296,6 @@ def check_decoded(actual, expected) YWFhCg== --0016e64c0af257c3a7048b69e1ac-- limitMAIL - mail = Mail.new(data) #~ puts Mail::Encodings.decode_encode(mail.attachments[0].filename, :decode) expect(mail.attachments[0].filename).to eq "Foto0009.jpg" end @@ -319,10 +316,10 @@ def check_decoded(actual, expected) end end - mail.attachments['test.zip'] = File.open(fixture('attachments', 'test.zip'), 'rb', &:read) - mail.attachments['test.pdf'] = File.open(fixture('attachments', 'test.pdf'), 'rb', &:read) - mail.attachments['test.gif'] = File.open(fixture('attachments', 'test.gif'), 'rb', &:read) - mail.attachments['test.jpg'] = File.open(fixture('attachments', 'test.jpg'), 'rb', &:read) + mail.attachments['test.zip'] = read_raw_fixture('attachments', 'test.zip') + mail.attachments['test.pdf'] = read_raw_fixture('attachments', 'test.pdf') + mail.attachments['test.gif'] = read_raw_fixture('attachments', 'test.gif') + mail.attachments['test.jpg'] = read_raw_fixture('attachments', 'test.jpg') expect(mail.attachments[0].filename).to eq 'test.zip' expect(mail.attachments[1].filename).to eq 'test.pdf' expect(mail.attachments[2].filename).to eq 'test.gif' diff --git a/spec/mail/encodings/quoted_printable_spec.rb b/spec/mail/encodings/quoted_printable_spec.rb index 971fc9ddc..b861b79e3 100644 --- a/spec/mail/encodings/quoted_printable_spec.rb +++ b/spec/mail/encodings/quoted_printable_spec.rb @@ -4,27 +4,27 @@ describe Mail::Encodings::QuotedPrintable do it "should encode quoted printable from text" do - result = "This is\r\na test=\r\n" + result = "This is\na test=\n" expect(Mail::Encodings::QuotedPrintable.encode("This is\na test")).to eq result end it "should encode quoted printable from crlf text" do - result = "This is\r\na test=\r\n" + result = "This is=0D\na test=\n" expect(Mail::Encodings::QuotedPrintable.encode("This is\r\na test")).to eq result end it "should encode quoted printable from cr text" do - result = "This is\r\na test=\r\n" + result = "This is=0Da test=\n" expect(Mail::Encodings::QuotedPrintable.encode("This is\ra test")).to eq result end it "should decode quoted printable" do - result = "This is\na test" + result = "This is\r\na test" expect(Mail::Encodings::QuotedPrintable.decode("This is\r\na test")).to eq result end it "should encode quoted printable from binary" do - result = "=00=00=00=00=\r\n" + result = "=00=00=00=00=\n" expect(Mail::Encodings::QuotedPrintable.encode("\000\000\000\000")).to eq result end @@ -33,8 +33,8 @@ expect(Mail::Encodings::QuotedPrintable.decode("=00=00=00=00")).to eq result end - %w(=0D =0A =0D=0A).each do |linebreak| - expected = "first line wraps\n\nsecond paragraph" + [["\r", "=0D"], ["\n", "=0A"], ["\r\n", "=0D=0A"]].each do |crlf, linebreak| + expected = "first line wraps\r\n\r\nsecond paragraph" it "should cope with inappropriate #{linebreak} line break encoding" do body = "first line=\r\n wraps#{linebreak}\r\n#{linebreak}\r\nsecond paragraph=\r\n" expect(Mail::Encodings::QuotedPrintable.decode(body)).to eq expected @@ -42,7 +42,7 @@ end [["\r", "=0D"], ["\n", "=0A"], ["\r\n", "=0D=0A"]].each do |crlf, linebreak| - expected = "first line wraps\n\nsecond paragraph" + expected = "first line wraps#{crlf}#{crlf}second paragraph" it "should allow encoded #{linebreak} line breaks with soft line feeds" do body = "first line=\r\n wraps#{linebreak}=\r\n#{linebreak}=\r\nsecond paragraph=\r\n" expect(Mail::Encodings::QuotedPrintable.decode(body)).to eq expected diff --git a/spec/mail/encodings_spec.rb b/spec/mail/encodings_spec.rb index d7478d9b3..8754f9fd2 100644 --- a/spec/mail/encodings_spec.rb +++ b/spec/mail/encodings_spec.rb @@ -80,7 +80,7 @@ it "should just return the string if us-ascii and asked to B encoded string" do string = "This is a string" result = "This is a string" - if RUBY_VERSION >= "1.9.1" + if string.respond_to?(:force_encoding) string = string.dup.force_encoding('US-ASCII') expect(Mail::Encodings.b_value_encode(string)).to eq(result) else @@ -92,7 +92,7 @@ it "should accept other encodings" do string = "This is あ string" result = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' - if RUBY_VERSION >= "1.9.1" + if string.respond_to?(:force_encoding) string = string.dup.force_encoding('UTF-8') expect(Mail::Encodings.b_value_encode(string)).to eq(result) else @@ -104,7 +104,7 @@ it "should complain if there is no encoding passed for Ruby < 1.9" do string = "This is あ string" - if RUBY_VERSION >= "1.9.1" + if string.respond_to?(:force_encoding) string = string.dup.force_encoding('UTF-8') expect {Mail::Encodings.b_value_encode(string)}.not_to raise_error else @@ -115,7 +115,7 @@ it "should split the string up into bite sized chunks that can be wrapped easily" do string = "This is あ really long string This is あ really long string This is あ really long string This is あ really long string This is あ really long string" result = '=?UTF-8?B?VGhpcyBpcyDjgYIgcmVhbGx5IGxvbmcgc3RyaW5nIFRoaXMgaXMg44GCIHJl?= =?UTF-8?B?YWxseSBsb25nIHN0cmluZyBUaGlzIGlzIOOBgiByZWFsbHkgbG9uZyBzdHJp?= =?UTF-8?B?bmcgVGhpcyBpcyDjgYIgcmVhbGx5IGxvbmcgc3RyaW5nIFRoaXMgaXMg44GC?= =?UTF-8?B?IHJlYWxseSBsb25nIHN0cmluZw==?=' - if RUBY_VERSION >= "1.9.1" + if string.respond_to?(:force_encoding) string = string.dup.force_encoding('UTF-8') expect(Mail::Encodings.b_value_encode(string)).to eq(result) else @@ -127,14 +127,14 @@ it "should decode an encoded string" do string = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' result = "This is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should decode a long encoded string" do string = '=?UTF-8?B?VGhpcyBpcyDjgYIgcmVhbGx5IGxvbmcgc3RyaW5nIFRoaXMgaXMg44GCIHJl?= =?UTF-8?B?YWxseSBsb25nIHN0cmluZyBUaGlzIGlzIOOBgiByZWFsbHkgbG9uZyBzdHJp?= =?UTF-8?B?bmcgVGhpcyBpcyDjgYIgcmVhbGx5IGxvbmcgc3RyaW5nIFRoaXMgaXMg44GC?= =?UTF-8?B?IHJlYWxseSBsb25nIHN0cmluZw==?=' result = "This is あ really long string This is あ really long string This is あ really long string This is あ really long string This is あ really long string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end @@ -226,7 +226,7 @@ # it "should just return the string if us-ascii and asked to Q encoded string" do string = "This is a string" - if RUBY_VERSION >= "1.9.1" + if string.respond_to?(:force_encoding) string = string.dup.force_encoding('US-ASCII') expect(Mail::Encodings.q_value_encode(string)).to eq "This is a string" else @@ -237,7 +237,7 @@ it "should complain if there is no encoding passed for Ruby < 1.9" do string = "This is あ string" - if RUBY_VERSION >= "1.9.1" + if string.respond_to?(:force_encoding) string = string.dup.force_encoding('UTF-8') expect {Mail::Encodings.q_value_encode(string)}.not_to raise_error else @@ -247,32 +247,32 @@ it "should accept other character sets" do string = "This is あ string" - if RUBY_VERSION >= "1.9.1" + if string.respond_to?(:force_encoding) string = string.dup.force_encoding('UTF-8') - expect(Mail::Encodings.q_value_encode(string)).to eq '=?UTF-8?Q?This_is_=E3=81=82_string?=' + expect(Mail::Encodings.q_value_encode(string)).to eq '=?UTF-8?Q?This_is_=E3=81=82_string=?=' else encoding = 'UTF-8' - expect(Mail::Encodings.q_value_encode(string, encoding)).to eq '=?UTF-8?Q?This_is_=E3=81=82_string?=' + expect(Mail::Encodings.q_value_encode(string, encoding)).to eq '=?UTF-8?Q?This_is_=E3=81=82_string=?=' end end it "should decode an encoded string" do string = '=?UTF-8?Q?This_is_=E3=81=82_string?=' result = "This is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if string.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should decode q encoded =5F as underscore" do string = "=?UTF-8?Q?This_=C2=AD_and=5Fthat?=" result = "This ­ and_that" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if string.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should not fold a long string that has no spaces" do original = "ВосстановлениеВосстановлениеВашегопароля" - if RUBY_VERSION >= '1.9' + if original.respond_to?(:force_encoding) original = original.dup.force_encoding('UTF-8') result = "Subject: =?UTF-8?Q?=D0=92=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=D0=92=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=D0=92=D0=B0=D1=88=D0=B5=D0=B3=D0=BE=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D1=8F?=\r\n" else @@ -286,7 +286,7 @@ it "should round trip a complex string properly" do original = "ВосстановлениеВосстановлениеВашегопароля This is a NUT?????Z__string that== could (break) anything" - if RUBY_VERSION >= '1.9' + if original.respond_to?(:force_encoding) original = original.dup.force_encoding('UTF-8') end result = "Subject: =?UTF-8?Q?=D0=92=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=D0=92=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=D0=92=D0=B0=D1=88=D0=B5=D0=B3=D0=BE=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D1=8F?=\r\n =?UTF-8?Q?_This_is_a_NUT=3F=3F=3F=3F=3FZ=5F=5Fstring_that=3D=3D_could?=\r\n =?UTF-8?Q?_=28break=29_anything?=\r\n" @@ -305,7 +305,7 @@ it "should round trip another complex string (koi-8)" do original = "Слово 9999 и число" mail = Mail.new - mail.subject = (RUBY_VERSION >= "1.9" ? original.encode('koi8-r') : Iconv.conv('koi8-r', 'UTF-8', original)) + mail.subject = (original.respond_to?(:encode) ? original.encode('koi8-r') : Iconv.conv('koi8-r', 'UTF-8', original)) mail[:subject].charset = 'koi8-r' wrapped = mail[:subject].wrapped_value unwrapped = Mail::Encodings.value_decode(wrapped) @@ -331,7 +331,7 @@ it "should decode an encoded string" do string = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?= =?UTF-8?Q?_This_was_=E3=81=82_string?=' result = "This is あ string This was あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end end @@ -380,21 +380,21 @@ it "should unencode an encoded string" do string = "This%20is%20even%20more%20" result = "This is even more " - result = result.dup.force_encoding('us-ascii') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('us-ascii') if result.respond_to?(:force_encoding) expect(Mail::Encodings.param_decode(string, 'us-ascii')).to eq result end it "should unencoded an encoded string and return the right charset on 1.9" do string = "This%20is%20even%20more%20" result = "This is even more " - result = result.dup.force_encoding('us-ascii') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('us-ascii') if result.respond_to?(:force_encoding) expect(Mail::Encodings.param_decode(string, 'us-ascii')).to eq result end it "should unencode a complete string that included unencoded parts" do string = "This%20is%20even%20more%20%2A%2A%2Afun%2A%2A%2A%20isn't it" result = "This is even more ***fun*** isn't it" - result = result.dup.force_encoding('iso-8859-1') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('iso-8859-1') if result.respond_to?(:force_encoding) expect(Mail::Encodings.param_decode(string, 'iso-8859-1')).to eq result end @@ -431,49 +431,49 @@ it "should detect an encoded Base64 string to the decoded string" do string = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' result = "This is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect a multiple encoded Base64 string to the decoded string" do string = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?==?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' result = "This is あ stringThis is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect a multiple encoded Base64 string with a space to the decoded string" do string = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?= =?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' result = "This is あ stringThis is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect a multiple encoded Base64 string with a whitespace to the decoded string" do string = "=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?= \r\n\s=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=" result = "This is あ stringThis is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should decode B and Q encodings together if needed" do string = "=?UTF-8?Q?This_is_=E3=81=82_string?==?UTF-8?Q?This_is_=E3=81=82_string?= Some non encoded stuff =?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?= \r\n\sMore non encoded stuff" result = "This is あ stringThis is あ string Some non encoded stuff This is あ string \r\n\sMore non encoded stuff" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect a encoded and unencoded Base64 string to the decoded string" do string = "Some non encoded stuff =?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?= \r\n\sMore non encoded stuff" result = "Some non encoded stuff This is あ string \r\n\sMore non encoded stuff" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect an encoded QP string to the decoded string" do string = '=?UTF-8?Q?This_is_=E3=81=82_string?=' result = "This is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end @@ -492,35 +492,35 @@ it "should detect multiple encoded QP string to the decoded string" do string = '=?UTF-8?Q?This_is_=E3=81=82_string?==?UTF-8?Q?This_is_=E3=81=82_string?=' result = "This is あ stringThis is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect multiple encoded QP string with a space to the decoded string" do string = '=?UTF-8?Q?This_is_=E3=81=82_string?= =?UTF-8?Q?This_is_=E3=81=82_string?=' result = "This is あ stringThis is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect multiple encoded QP string with a space to the decoded string" do string = "=?UTF-8?Q?This_is_=E3=81=82_string?= \r\n\s=?UTF-8?Q?This_is_=E3=81=82_string?=" result = "This is あ stringThis is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect a encoded and unencoded QP string to the decoded string" do string = "Some non encoded stuff =?UTF-8?Q?This_is_=E3=81=82_string?= \r\n\sMore non encoded stuff" result = "Some non encoded stuff This is あ string \r\n\sMore non encoded stuff" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end it "should detect a plain string and return it" do string = 'This is あ string' result = "This is あ string" - result = result.dup.force_encoding('UTF-8') if RUBY_VERSION >= '1.9' + result = result.dup.force_encoding('UTF-8') if result.respond_to?(:force_encoding) expect(Mail::Encodings.value_decode(string)).to eq result end @@ -540,18 +540,15 @@ describe "decoding" do - before(:each) do - @original = $KCODE if RUBY_VERSION < '1.9' - end - - after(:each) do - $KCODE = @original if RUBY_VERSION < '1.9' + if RUBY_VERSION < '1.9' + before { @original = $KCODE } + after { $KCODE = @original } end it "should detect an encoded Base64 string and return the decoded string" do string = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' result = "This is あ string" - if RUBY_VERSION >= '1.9' + if result.respond_to?(:force_encoding) result = result.dup.force_encoding('UTF-8') else $KCODE = 'UTF-8' @@ -562,7 +559,7 @@ it "should detect an encoded QP string and return the decoded string" do string = '=?UTF-8?Q?This_is_=E3=81=82_string?=' result = "This is あ string" - if RUBY_VERSION >= '1.9' + if result.respond_to?(:force_encoding) result = result.dup.force_encoding('UTF-8') else $KCODE = 'UTF-8' @@ -573,7 +570,7 @@ it "should detect an a string is already decoded and leave it alone" do string = 'This is あ string' result = "This is あ string" - if RUBY_VERSION >= '1.9' + if result.respond_to?(:force_encoding) result = result.dup.force_encoding('UTF-8') else $KCODE = 'UTF-8' @@ -587,11 +584,10 @@ it "should encode a string into Base64" do string = "This is あ string" - if RUBY_VERSION >= '1.9' - result = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' + result = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' + if result.respond_to?(:force_encoding) result = result.dup.force_encoding('UTF-8') else - result = '=?UTF-8?B?VGhpcyBpcyDjgYIgc3RyaW5n?=' $KCODE = 'UTF-8' end expect(Mail::Encodings.decode_encode(string, :encode)).to eq result @@ -600,7 +596,7 @@ it "should leave a string that doesn't need encoding alone" do string = 'This is a string' result = "This is a string" - if RUBY_VERSION >= '1.9' + if result.respond_to?(:force_encoding) result = result.dup.force_encoding('UTF-8') else $KCODE = 'UTF-8' @@ -714,7 +710,7 @@ end it "should handle a new line in the text" do - if RUBY_VERSION >= '1.9' + if 'string'.respond_to?(:force_encoding) expected = "\nRe: ol\341".dup.force_encoding('ISO-8859-1').encode('utf-8') else expected = Iconv.conv("UTF-8", "ISO-8859-1", "\nRe: ol\341") diff --git a/spec/mail/example_emails_spec.rb b/spec/mail/example_emails_spec.rb index bcc9badbe..da09bbf50 100644 --- a/spec/mail/example_emails_spec.rb +++ b/spec/mail/example_emails_spec.rb @@ -11,7 +11,7 @@ # John Doe, a single recipient, Mary Smith, a subject, the date, a # message identifier, and a textual message in the body. it "should handle the basic test email" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example01.eml')) + mail = read_fixture('emails', 'rfc2822', 'example01.eml') expect(mail.from).to eq ["jdoe@machine.example"] expect(mail.to).to eq ['mary@example.net'] expect(mail.message_id).to eq '1234@local.machine.example' @@ -24,7 +24,7 @@ # was the author and replies to this message should go back to him, the # sender field would be used: it "should handle the sender test email" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example02.eml')) + mail = read_fixture('emails', 'rfc2822', 'example02.eml') expect(mail.from).to eq ['jdoe@machine.example'] expect(mail.sender).to eq 'mjones@machine.example' expect(mail.to).to eq ['mary@example.net'] @@ -49,7 +49,7 @@ # # "Giant; \"Big\" Box" it "should handle multiple recipients test email" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example03.eml')) + mail = read_fixture('emails', 'rfc2822', 'example03.eml') expect(mail.from).to eq ['john.q.public@example.com'] expect(mail.to).to eq ['mary@x.test', 'jdoe@example.org', 'one@y.test'] expect(mail.cc).to eq ['boss@nil.test', "sysservices@example.net"] @@ -63,7 +63,7 @@ # Group which contains 3 addresses, and a "Cc:" field with an empty # group recipient named Undisclosed recipients. it "should handle group address email test" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example04.eml')) + mail = read_fixture('emails', 'rfc2822', 'example04.eml') expect(mail.from).to eq ['pete@silly.example'] expect(mail.to).to eq ['c@a.test', 'joe@where.test', 'jdoe@one.test'] expect(mail[:cc].group_names).to eq ['Undisclosed recipients'] @@ -82,7 +82,7 @@ # Note especially the "Message-ID:", "References:", and "In-Reply-To:" # fields in each message. it "should handle reply messages" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example05.eml')) + mail = read_fixture('emails', 'rfc2822', 'example05.eml') expect(mail.from).to eq ["jdoe@machine.example"] expect(mail.to).to eq ['mary@example.net'] expect(mail.subject).to eq 'Saying Hello' @@ -97,7 +97,7 @@ # to Mary's message above, the reply should go to the address in the # "Reply-To:" field instead of the address in the "From:" field. it "should handle reply message 2" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example06.eml')) + mail = read_fixture('emails', 'rfc2822', 'example06.eml') expect(mail.from).to eq ['mary@example.net'] expect(mail.to).to eq ['jdoe@machine.example'] expect(mail.reply_to).to eq ['smith@home.example'] @@ -111,7 +111,7 @@ # From RFC 2822: # Final reply message it "should handle the final reply message" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example07.eml')) + mail = read_fixture('emails', 'rfc2822', 'example07.eml') expect(mail.to).to eq ['smith@home.example'] expect(mail.from).to eq ['jdoe@machine.example'] expect(mail.subject).to eq 'Re: Saying Hello' @@ -135,7 +135,7 @@ # she would prepend her own set of resent header fields to the above # and send that. it "should handle the rfc resent example email" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example08.eml')) + mail = read_fixture('emails', 'rfc2822', 'example08.eml') expect(mail.resent_from).to eq ['mary@example.net'] expect(mail.resent_to).to eq ['j-brown@other.example'] expect(mail.resent_date).to eq ::DateTime.parse('Mon, 24 Nov 1997 14:22:01 -0800') @@ -154,7 +154,7 @@ # there is some folding white space in the first one since these lines # can be long. it "should handle the RFC trace example email" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example09.eml')) + mail = read_fixture('emails', 'rfc2822', 'example09.eml') expect(mail.received[0].info).to eq 'from x.y.test by example.net via TCP with ESMTP id ABC12345 for ' expect(mail.received[0].date_time).to eq ::DateTime.parse('21 Nov 1997 10:05:43 -0600') expect(mail.received[1].info).to eq 'from machine.example by x.y.test' @@ -186,7 +186,7 @@ # (but not within) the identifier in the "Message-ID:" field. it "should handle the rfc whitespace test email" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example10.eml')) + mail = read_fixture('emails', 'rfc2822', 'example10.eml') expect(mail.from).to eq ["pete(his account)@silly.test"] expect(mail.to).to eq ["c@public.example", "joe@example.org", "jdoe@one.test"] expect(mail[:cc].group_names).to eq ['(Empty list)(start)Undisclosed recipients '] @@ -204,7 +204,7 @@ # that appear in the "To:" field, and the spaces that appear around the # "." in the jdoe address. it "should handle the rfc obsolete addressing" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example11.eml')) + mail = read_fixture('emails', 'rfc2822', 'example11.eml') expect(mail[:from].addresses).to eq ['john.q.public@example.com'] expect(mail[:from].to_s).to eq '"Joe Q. Public" ' expect(mail.to).to eq ["@machine.tld:mary@example.net", 'jdoe@test . example'] @@ -219,7 +219,7 @@ # day-of-week is missing, that is not specific to the obsolete syntax; # it is optional in the current syntax as well. it "should handle the rfc obsolete dates" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example12.eml')) + mail = read_fixture('emails', 'rfc2822', 'example12.eml') expect(mail.date).to eq ::DateTime.parse('21 Nov 97 09:55:06 GMT') end @@ -237,7 +237,7 @@ # obsolete syntax. it "should handle the rfc obsolete whitespace email" do pending - mail = Mail.read(fixture('emails', 'rfc2822', 'example13.eml')) + mail = read_fixture('emails', 'rfc2822', 'example13.eml') expect(mail.from).to eq 'John Doe ' expect(mail.to).to eq 'Mary Smith ' expect(mail.date).to eq ::DateTime.parse('Fri, 21 Nov 1997 09:55:06 -0600') @@ -246,7 +246,7 @@ end it "should handle folding subject" do - mail = Mail.read(fixture('emails', 'rfc2822', 'example14.eml')) + mail = read_fixture('emails', 'rfc2822', 'example14.eml') expect(mail.from).to eq ["atsushi@example.com"] expect(mail.subject).to eq "Re: TEST \tテストテスト" expect(mail.message_id).to eq '0CC5E11ED2C1D@example.com' @@ -258,7 +258,7 @@ describe "raw_email_encoded_stack_level_too_deep.eml" do before(:each) do - @message = Mail.read(fixture('emails', 'mime_emails', 'raw_email_encoded_stack_level_too_deep.eml')) + @message = read_fixture('emails', 'mime_emails', 'raw_email_encoded_stack_level_too_deep.eml') end it "should return an 'encoded' version without raising a SystemStackError" do @@ -273,7 +273,7 @@ describe "sig_only_email.eml" do before(:each) do - @message = Mail.read(fixture('emails', 'mime_emails', 'sig_only_email.eml')) + @message = read_fixture('emails', 'mime_emails', 'sig_only_email.eml') end it "should not error on multiart/signed emails" do @@ -289,7 +289,7 @@ describe "handling invalid group lists" do before(:each) do - @message = Mail.read(fixture('emails', 'error_emails', 'empty_group_lists.eml')) + @message = read_fixture('emails', 'error_emails', 'empty_group_lists.eml') end it "should parse the email and encode without crashing" do @@ -306,7 +306,7 @@ describe "empty address lists" do before(:each) do - @message = Mail.read(fixture('emails', 'error_emails', 'weird_to_header.eml')) + @message = read_fixture('emails', 'error_emails', 'weird_to_header.eml') end it "should parse the email and encode without crashing" do @@ -321,7 +321,7 @@ describe 'RFC6532 UTF8 headers' do before :each do - @message = Mail.read(fixture('emails', 'rfc6532', 'utf8_headers.eml')) + @message = read_fixture('emails', 'rfc6532', 'utf8_headers.eml') end it 'subject' do @@ -341,7 +341,7 @@ describe "invalid charsets in headers" do it "falls back to ASCII-8BIT for unrecognized charsets" do - mail = Mail.read(fixture('emails', 'error_emails', 'invalid_subject_characters.eml')) + mail = read_fixture('emails', 'error_emails', 'invalid_subject_characters.eml') expect(mail[:from].display_names).to eq(["Formação Frenetikpolis"]) subject = "Forma\xE7\xE3o FrenetikPolis: Mega Campanha Final Ver\xE3o | Cursos de Setembro" diff --git a/spec/mail/mail_spec.rb b/spec/mail/mail_spec.rb index e59ac92ba..ed7f0a92a 100644 --- a/spec/mail/mail_spec.rb +++ b/spec/mail/mail_spec.rb @@ -27,8 +27,8 @@ end it "should read a file" do - wrap_method = Mail.read(fixture('emails', 'plain_emails', 'raw_email.eml')).to_s - file_method = Mail.new(File.open(fixture('emails', 'plain_emails', 'raw_email.eml'), 'rb', &:read)).to_s + wrap_method = read_fixture('emails', 'plain_emails', 'raw_email.eml').to_s + file_method = Mail.new(read_raw_fixture('emails', 'plain_emails', 'raw_email.eml')).to_s expect(wrap_method).to eq file_method end diff --git a/spec/mail/message_spec.rb b/spec/mail/message_spec.rb index 7159594ed..d3baa9bb9 100644 --- a/spec/mail/message_spec.rb +++ b/spec/mail/message_spec.rb @@ -84,25 +84,25 @@ def create_mail_with_splat_args end it "should be able to parse a basic email" do - expect { Mail.read(fixture('emails', 'plain_emails', 'basic_email.eml')) }.not_to raise_error + expect { read_fixture('emails', 'plain_emails', 'basic_email.eml') }.not_to raise_error end it "should be able to parse an email with @ in display name" do - message = Mail.read(fixture('emails', 'plain_emails', 'raw_email_with_at_display_name.eml')) + message = read_fixture('emails', 'plain_emails', 'raw_email_with_at_display_name.eml') expect(message.to).to eq ["smith@gmail.com", "raasdnil@gmail.com", "tom@gmail.com"] end it "should be able to parse an email with only blank lines as body" do - expect { Mail.read(fixture('emails', 'error_emails', 'missing_body.eml')) }.not_to raise_error + expect { read_fixture('emails', 'error_emails', 'missing_body.eml') }.not_to raise_error end it "should be able to parse an email with a funky date header" do # TODO: This spec should actually do something - expect { Mail.read(fixture('emails', 'error_emails', 'bad_date_header2.eml')) } + expect { read_fixture('emails', 'error_emails', 'bad_date_header2.eml') } end it 'should be able to invoke subject on a funky subject header' do - Mail.read(fixture('emails', 'error_emails', 'bad_subject.eml')).subject + read_fixture('emails', 'error_emails', 'bad_subject.eml').subject end it 'should use default charset' do @@ -115,11 +115,11 @@ def create_mail_with_splat_args end it 'should be able to parse an email missing an encoding' do - Mail.read(fixture('emails', 'error_emails', 'must_supply_encoding.eml')) + read_fixture('emails', 'error_emails', 'must_supply_encoding.eml') end it "should be able to parse every email example we have without raising an exception" do - emails = Dir.glob( fixture('emails/**/*') ).delete_if { |f| File.directory?(f) } + emails = Dir.glob( fixture_path('emails/**/*') ).delete_if { |f| File.directory?(f) } allow(Kernel).to receive(:warn) # Don't want to get noisy about any warnings errors = false @@ -149,28 +149,28 @@ def create_mail_with_splat_args it "should not raise a warning on having non US-ASCII characters in the header (should just handle it)" do expect($stderr).not_to receive(:puts) - Mail.read(fixture('emails', 'plain_emails', 'raw_email_string_in_date_field.eml')) + read_fixture('emails', 'plain_emails', 'raw_email_string_in_date_field.eml') end it "should raise a warning (and keep parsing) on having an incorrectly formatted header" do expect(Kernel).to receive(:warn).with('WARNING: Ignoring unparsable header "quite Delivered-To: xxx@xxx.xxx": invalid header name syntax: "quite Delivered-To"').once - Mail.read(fixture('emails', 'plain_emails', 'raw_email_incorrect_header.eml')).to_s + read_fixture('emails', 'plain_emails', 'raw_email_incorrect_header.eml').to_s end it "should read in an email message and basically parse it" do - mail = Mail.read(fixture('emails', 'plain_emails', 'basic_email.eml')) + mail = read_fixture('emails', 'plain_emails', 'basic_email.eml') expect(mail.to).to eq ["raasdnil@gmail.com"] end it "should not fail parsing message with caps in content_type" do - mail = Mail.read(fixture('emails', 'plain_emails', 'mix_caps_content_type.eml')) + mail = read_fixture('emails', 'plain_emails', 'mix_caps_content_type.eml') expect(mail.content_type).to eq 'text/plain; charset=iso-8859-1' expect(mail.main_type).to eq 'text' expect(mail.sub_type).to eq 'plain' end it "should be able to pass an empty reply-to header" do - mail = Mail.read(fixture('emails', 'error_emails', 'empty_in_reply_to.eml')) + mail = read_fixture('emails', 'error_emails', 'empty_in_reply_to.eml') expect(Mail::Utilities.blank?(mail.in_reply_to)).to be_truthy end @@ -283,19 +283,19 @@ def create_mail_with_splat_args end it "should strip off the envelope from field if present" do - message = Mail.read(fixture('emails', 'plain_emails', 'raw_email.eml')) + message = read_fixture('emails', 'plain_emails', 'raw_email.eml') expect(message.envelope_from).to eq "jamis_buck@byu.edu" expect(message.envelope_date).to eq ::DateTime.parse("Mon May 2 16:07:05 2005") end it "should strip off the envelope from field if present" do - message = Mail.read(fixture('emails', 'plain_emails', 'raw_email.eml')) + message = read_fixture('emails', 'plain_emails', 'raw_email.eml') expect(message.raw_envelope).to eq "jamis_buck@byu.edu Mon May 2 16:07:05 2005" expect(message.from).to eq ["jamis@37signals.com"] end it "should not cause any problems if there is no envelope from present" do - message = Mail.read(fixture('emails', 'plain_emails', 'basic_email.eml')) + message = read_fixture('emails', 'plain_emails', 'basic_email.eml') expect(message.from).to eq ["test@lindsaar.net"] end @@ -306,7 +306,7 @@ def create_mail_with_splat_args end it "should handle a multipart message that has ^From in it" do - m = Mail.read(fixture('emails', 'error_emails', 'cant_parse_from.eml')) + m = read_fixture('emails', 'error_emails', 'cant_parse_from.eml') expect(m.from).not_to be_nil expect(m.from).to eq ["News@InsideApple.Apple.com"] expect(m).to be_multipart @@ -372,13 +372,13 @@ def create_mail_with_splat_args end it "should read in an email message with the word 'From' in it multiple times and parse it" do - mail = Mail.read(fixture('emails', 'mime_emails', 'two_from_in_message.eml')) + mail = read_fixture('emails', 'mime_emails', 'two_from_in_message.eml') expect(mail.to).not_to be_nil expect(mail.to).to eq ["tester2@test.com"] end it "should parse non-UTF8 sources" do - raw_message = File.read(fixture('emails', 'multi_charset', 'japanese_iso_2022.eml')) + raw_message = read_raw_fixture('emails', 'multi_charset', 'japanese_iso_2022.eml') original_encoding = raw_message.encoding if raw_message.respond_to?(:encoding) mail = Mail.new(raw_message) expect(mail.to).to eq ["raasdnil@gmail.com"] @@ -387,7 +387,7 @@ def create_mail_with_splat_args end it "should parse sources with charsets that we know but Ruby doesn't" do - raw_message = File.read(fixture('emails', 'multi_charset', 'ks_c_5601-1987.eml')) + raw_message = read_raw_fixture('emails', 'multi_charset', 'ks_c_5601-1987.eml') original_encoding = raw_message.encoding if raw_message.respond_to?(:encoding) mail = Mail.new(raw_message) expect(mail.decoded).to eq "스티해\n" @@ -396,7 +396,7 @@ def create_mail_with_splat_args if '1.9+'.respond_to?(:encoding) it "should be able to normalize CRLFs on non-UTF8 encodings" do - File.open(fixture('emails', 'multi_charset', 'japanese_shift_jis.eml')) do |io| + File.open(fixture_path('emails', 'multi_charset', 'japanese_shift_jis.eml'), 'rb') do |io| mail = Mail.new(io.read) expect(mail.raw_source.encoding).to eq Encoding::BINARY end @@ -405,7 +405,7 @@ def create_mail_with_splat_args if '1.9+'.respond_to?(:encoding) it "should be able to normalize CRLFs on non-UTF8 encodings" do - File.open(fixture('emails', 'multi_charset', 'japanese_shift_jis.eml')) do |io| + File.open(fixture_path('emails', 'multi_charset', 'japanese_shift_jis.eml'), 'rb') do |io| mail = Mail.new(io.read) expect(mail.raw_source.encoding).to eq Encoding::BINARY end @@ -1526,7 +1526,7 @@ def message_headers_should_match(message, other) body "The=3Dbody" end expect(mail.body.decoded).to eq "The=body" - expect(mail.body.encoded).to eq "The=3Dbody=\r\n" + expect(mail.body.encoded).to eq "The=3Dbody=\n" end it "should change a body on decode if given an encoding type to decode" do @@ -1935,7 +1935,7 @@ def self.delivering_email(mail) 'pdf', 'with_encoded_name', 'with_quoted_filename'] emails_with_attachments.each { |email| - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', "attachment_#{email}.eml"))) + mail = read_fixture('emails', 'attachment_emails', "attachment_#{email}.eml") mail_length_with_attachments = mail.to_s.length expect(mail.has_attachments?).to be_truthy mail.without_attachments! @@ -1952,7 +1952,7 @@ def self.delivering_email(mail) describe "to a basic message" do before do - @mail = Mail.read(fixture('emails', 'plain_emails', 'basic_email.eml')) + @mail = read_fixture('emails', 'plain_emails', 'basic_email.eml') end it "should create a new message" do @@ -1994,7 +1994,7 @@ def self.delivering_email(mail) describe "to a message with an explicit reply-to address" do before do - @mail = Mail.read(fixture('emails', 'rfc2822', 'example06.eml')) + @mail = read_fixture('emails', 'rfc2822', 'example06.eml') end it "should be sent to the reply-to address" do @@ -2006,7 +2006,7 @@ def self.delivering_email(mail) describe "to a message with more than one recipient" do before do - @mail = Mail.read(fixture('emails', 'rfc2822', 'example03.eml')) + @mail = read_fixture('emails', 'rfc2822', 'example03.eml') end it "should be sent from the first to address" do @@ -2018,7 +2018,7 @@ def self.delivering_email(mail) describe "to a reply" do before do - @mail = Mail.read(fixture('emails', 'plain_emails', 'raw_email_reply.eml')) + @mail = read_fixture('emails', 'plain_emails', 'raw_email_reply.eml') end it "should be in-reply-to the original message" do diff --git a/spec/mail/mime_messages_spec.rb b/spec/mail/mime_messages_spec.rb index 14d9eb307..17aba4bca 100644 --- a/spec/mail/mime_messages_spec.rb +++ b/spec/mail/mime_messages_spec.rb @@ -58,51 +58,51 @@ end it "should recognize a multipart email" do - mail = Mail.read(fixture('emails', 'mime_emails', 'raw_email7.eml')) + mail = read_fixture('emails', 'mime_emails', 'raw_email7.eml') expect(mail).to be_multipart end it "should recognize a non multipart email" do - mail = Mail.read(fixture('emails', 'plain_emails', 'basic_email.eml')) + mail = read_fixture('emails', 'plain_emails', 'basic_email.eml') expect(mail).not_to be_multipart end it "should not report the email as :attachment?" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_pdf.eml'))) + mail = read_fixture('emails', 'attachment_emails', 'attachment_pdf.eml') expect(mail.attachment?).to eq false end it "should report the email as :attachment?" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_only_email.eml'))) + mail = read_fixture('emails', 'attachment_emails', 'attachment_only_email.eml') expect(mail.attachment?).to eq true end it "should recognize an attachment part" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_pdf.eml'))) + mail = read_fixture('emails', 'attachment_emails', 'attachment_pdf.eml') expect(mail).not_to be_attachment expect(mail.parts[0].attachment?).to eq false expect(mail.parts[1].attachment?).to eq true end it "should give how may (top level) parts there are" do - mail = Mail.read(fixture('emails', 'mime_emails', 'raw_email7.eml')) + mail = read_fixture('emails', 'mime_emails', 'raw_email7.eml') expect(mail.parts.length).to eq 2 end it "should give the content_type of each part" do - mail = Mail.read(fixture('emails', 'mime_emails', 'raw_email11.eml')) + mail = read_fixture('emails', 'mime_emails', 'raw_email11.eml') expect(mail.mime_type).to eq 'multipart/alternative' expect(mail.parts[0].mime_type).to eq 'text/plain' expect(mail.parts[1].mime_type).to eq 'text/enriched' end it "should report the mail :has_attachments?" do - mail = Mail.read(fixture(File.join('emails', 'attachment_emails', 'attachment_pdf.eml'))) + mail = read_fixture('emails', 'attachment_emails', 'attachment_pdf.eml') expect(mail).to be_has_attachments end it "should only split on exact boundary matches" do - mail = Mail.read(fixture('emails', 'mime_emails', 'email_with_similar_boundaries.eml')) + mail = read_fixture('emails', 'mime_emails', 'email_with_similar_boundaries.eml') expect(mail.parts.size).to eq 2 expect(mail.parts.first.parts.size).to eq 2 expect(mail.boundary).to eq "----=_NextPart_476c4fde88e507bb8028170e8cf47c73" @@ -328,7 +328,7 @@ it "should detect a text_part in an existing email with plain text attachment" do m = Mail.new(:content_type => 'multipart/alternative') - m.add_file(fixture('attachments', 'てすと.txt')) + m.add_file(fixture_path('attachments', 'てすと.txt')) m.add_part(Mail::Part.new(:content_type => 'text/html', :body => 'HTML TEXT')) m.add_part(Mail::Part.new(:content_type => 'text/plain', :body => 'PLAIN TEXT')) expect(m.text_part.body.decoded).to eq 'PLAIN TEXT' @@ -376,18 +376,36 @@ describe "finding attachments" do it "should return an array of attachments" do - mail = Mail.read(fixture('emails', 'attachment_emails', 'attachment_content_disposition.eml')) + mail = read_fixture('emails', 'attachment_emails', 'attachment_content_disposition.eml') expect(mail.attachments.length).to eq 1 expect(mail.attachments.first.filename).to eq 'api.rb' end it "should return an array of attachments" do - mail = Mail.read(fixture('emails', 'mime_emails', 'raw_email_with_nested_attachment.eml')) + mail = read_fixture('emails', 'mime_emails', 'raw_email_with_nested_attachment.eml') expect(mail.attachments.length).to eq 2 expect(mail.attachments[0].filename).to eq 'truncated.png' expect(mail.attachments[1].filename).to eq 'smime.p7s' end + Dir.glob(fixture_path('attachments', "test.*")).each do |test_attachment| + # This spec fails for (most?) jpegs in 1.8.7 + next if test_attachment.end_with?('test.jpg') && RUBY_VERSION < '1.9' + + it "should find binary encoded attachments of type #{File.extname(test_attachment)}" do + pre, post = read_raw_fixture('emails', 'mime_emails', 'raw_email_with_binary_encoded.eml').split('BINARY_CONTENT_GOES_HERE') + raw_file = File.open(test_attachment, "rb", &:read) + + raw_mail = pre + raw_file + post + expect(raw_mail.encoding).to eq(Encoding::ASCII_8BIT) if raw_mail.respond_to?(:encoding) + + mail = Mail.new(raw_mail) + + expect(mail.attachments.size).to eq 1 + expect(mail.attachments.first.decoded.bytesize).to eq raw_file.bytesize + expect(mail.attachments.first.decoded).to eq raw_file + end + end end describe "adding a file attachment" do @@ -395,32 +413,32 @@ it "should set to multipart/mixed if a text part and you add an attachment" do mail = Mail::Message.new mail.text_part { body("log message goes here") } - mail.add_file(fixture('attachments', 'test.png')) + mail.add_file(fixture_path('attachments', 'test.png')) expect(mail.mime_type).to eq 'multipart/mixed' end it "should set to multipart/mixed if you add an attachment and then a text part" do mail = Mail::Message.new - mail.add_file(fixture('attachments', 'test.png')) + mail.add_file(fixture_path('attachments', 'test.png')) mail.text_part { body("log message goes here") } expect(mail.mime_type).to eq 'multipart/mixed' end it "should add a part given a filename" do mail = Mail::Message.new - mail.add_file(fixture('attachments', 'test.png')) + mail.add_file(fixture_path('attachments', 'test.png')) expect(mail.parts.length).to eq 1 # First part is an empty text body end it "should give the part the right content type" do mail = Mail::Message.new - mail.add_file(fixture('attachments', 'test.png')) + mail.add_file(fixture_path('attachments', 'test.png')) expect(mail.parts.first[:content_type].content_type).to eq 'image/png' end it "should return attachment objects" do mail = Mail::Message.new - mail.add_file(fixture('attachments', 'test.png')) + mail.add_file(fixture_path('attachments', 'test.png')) expect(mail.attachments.first.class).to eq Mail::Part end @@ -429,10 +447,10 @@ from 'mikel@from.lindsaar.net' subject 'Hello there Mikel' to 'mikel@to.lindsaar.net' - add_file fixture('attachments', 'test.png') - add_file fixture('attachments', 'test.jpg') - add_file fixture('attachments', 'test.pdf') - add_file fixture('attachments', 'test.zip') + add_file fixture_path('attachments', 'test.png') + add_file fixture_path('attachments', 'test.jpg') + add_file fixture_path('attachments', 'test.pdf') + add_file fixture_path('attachments', 'test.zip') end expect(mail.attachments.length).to eq 4 mail.attachments.each { |a| expect(a.class).to eq Mail::Part } @@ -443,10 +461,10 @@ from 'mikel@from.lindsaar.net' subject 'Hello there Mikel' to 'mikel@to.lindsaar.net' - add_file fixture('attachments', 'test.png') - add_file fixture('attachments', 'test.jpg') - add_file fixture('attachments', 'test.pdf') - add_file fixture('attachments', 'test.zip') + add_file fixture_path('attachments', 'test.png') + add_file fixture_path('attachments', 'test.jpg') + add_file fixture_path('attachments', 'test.pdf') + add_file fixture_path('attachments', 'test.zip') end expect(mail.attachments[0].filename).to eq 'test.png' expect(mail.attachments[1].filename).to eq 'test.jpg' @@ -459,10 +477,10 @@ from 'mikel@from.lindsaar.net' subject 'Hello there Mikel' to 'mikel@to.lindsaar.net' - add_file fixture('attachments', 'test.png') - add_file fixture('attachments', 'test.jpg') - add_file fixture('attachments', 'test.pdf') - add_file fixture('attachments', 'test.zip') + add_file fixture_path('attachments', 'test.png') + add_file fixture_path('attachments', 'test.jpg') + add_file fixture_path('attachments', 'test.pdf') + add_file fixture_path('attachments', 'test.zip') end expect(mail.attachments[0].mime_type).to eq 'image/png' expect(mail.attachments[1].mime_type).to eq 'image/jpeg' @@ -475,34 +493,34 @@ from 'mikel@from.lindsaar.net' subject 'Hello there Mikel' to 'mikel@to.lindsaar.net' - add_file fixture('attachments', 'test.png') - add_file fixture('attachments', 'test.jpg') - add_file fixture('attachments', 'test.pdf') - add_file fixture('attachments', 'test.zip') + add_file fixture_path('attachments', 'test.png') + add_file fixture_path('attachments', 'test.jpg') + add_file fixture_path('attachments', 'test.pdf') + add_file fixture_path('attachments', 'test.zip') end if RUBY_VERSION >= '1.9' tripped = mail.attachments[0].decoded - original = File.open(fixture('attachments', 'test.png'), 'rb', &:read) + original = read_raw_fixture('attachments', 'test.png') expect(tripped).to eq original tripped = mail.attachments[1].decoded - original = File.open(fixture('attachments', 'test.jpg'), 'rb', &:read) + original = read_raw_fixture('attachments', 'test.jpg') expect(tripped).to eq original tripped = mail.attachments[2].decoded - original = File.open(fixture('attachments', 'test.pdf'), 'rb', &:read) + original = read_raw_fixture('attachments', 'test.pdf') expect(tripped).to eq original tripped = mail.attachments[3].decoded - original = File.open(fixture('attachments', 'test.zip'), 'rb', &:read) + original = read_raw_fixture('attachments', 'test.zip') expect(tripped).to eq original else - expect(mail.attachments[0].decoded).to eq File.read(fixture('attachments', 'test.png')) - expect(mail.attachments[1].decoded).to eq File.read(fixture('attachments', 'test.jpg')) - expect(mail.attachments[2].decoded).to eq File.read(fixture('attachments', 'test.pdf')) - expect(mail.attachments[3].decoded).to eq File.read(fixture('attachments', 'test.zip')) + expect(mail.attachments[0].decoded).to eq read_raw_fixture('attachments', 'test.png') + expect(mail.attachments[1].decoded).to eq read_raw_fixture('attachments', 'test.jpg') + expect(mail.attachments[2].decoded).to eq read_raw_fixture('attachments', 'test.pdf') + expect(mail.attachments[3].decoded).to eq read_raw_fixture('attachments', 'test.zip') end end it "should allow you to send in file data instead of having to read it" do - file_data = File.open(fixture('attachments', 'test.png'), 'rb', &:read) + file_data = read_raw_fixture('attachments', 'test.png') mail = Mail::Message.new do from 'mikel@from.lindsaar.net' subject 'Hello there Mikel' @@ -511,10 +529,10 @@ end if RUBY_VERSION >= '1.9' tripped = mail.attachments[0].decoded - original = File.open(fixture('attachments', 'test.png'), 'rb', &:read) + original = read_raw_fixture('attachments', 'test.png') expect(tripped).to eq original else - expect(mail.attachments[0].decoded).to eq File.open(fixture('attachments', 'test.png'), 'rb', &:read) + expect(mail.attachments[0].decoded).to eq read_raw_fixture('attachments', 'test.png') end end @@ -530,7 +548,7 @@ subject 'Hello there Mikel' to 'mikel@to.lindsaar.net' body "Attached" - add_file fixture('attachments', 'test.png') + add_file fixture_path('attachments', 'test.png') end expect(m.attachments.length).to eq 1 expect(m.parts.length).to eq 2 @@ -543,7 +561,7 @@ from 'mikel@from.lindsaar.net' subject 'Hello there Mikel' to 'mikel@to.lindsaar.net' - add_file fixture('attachments', 'test.png') + add_file fixture_path('attachments', 'test.png') body "Attached" end expect(m.parts.length).to eq 2 @@ -556,7 +574,7 @@ from 'mikel@from.lindsaar.net' subject 'Hello there Mikel' to 'mikel@to.lindsaar.net' - add_file fixture('attachments', 'test.png') + add_file fixture_path('attachments', 'test.png') body "First Line\n\nSecond Line\n\nThird Line\n\n" #Note: trailing \n\n is stripped off by Mail::Part initialization end @@ -571,7 +589,7 @@ mail = Mail.new mail.body = body mail.charset = 'UTF-8' - mail.add_file fixture('attachments', 'test.png') + mail.add_file fixture_path('attachments', 'test.png') expect($stderr).not_to receive(:puts) mail.to_s end diff --git a/spec/mail/multipart_report_spec.rb b/spec/mail/multipart_report_spec.rb index 549b324f3..2a9c6aa89 100644 --- a/spec/mail/multipart_report_spec.rb +++ b/spec/mail/multipart_report_spec.rb @@ -5,30 +5,30 @@ describe "multipart/report emails" do it "should know if it is a multipart report type" do - mail = Mail.read(fixture('emails', 'multipart_report_emails', 'report_422.eml')) + mail = read_fixture('emails', 'multipart_report_emails', 'report_422.eml') expect(mail).to be_multipart_report end describe "delivery-status reports" do it "should know if it is a deliver-status report" do - mail = Mail.read(fixture('emails', 'multipart_report_emails', 'report_422.eml')) + mail = read_fixture('emails', 'multipart_report_emails', 'report_422.eml') expect(mail).to be_delivery_status_report end it "should find its message/delivery-status part" do - mail = Mail.read(fixture('emails', 'multipart_report_emails', 'report_422.eml')) + mail = read_fixture('emails', 'multipart_report_emails', 'report_422.eml') expect(mail.delivery_status_part).not_to be_nil end it "should handle a report that has a human readable message/delivery-status" do - mail = Mail.read(fixture('emails', 'multipart_report_emails', 'multipart_report_multiple_status.eml')) + mail = read_fixture('emails', 'multipart_report_emails', 'multipart_report_multiple_status.eml') expect(mail).to be_bounced end describe "delivery-status part in a non report email" do let(:mail){ - string = File.read(fixture('emails', 'multipart_report_emails', 'report_422.eml')) + string = read_raw_fixture('emails', 'multipart_report_emails', 'report_422.eml') Mail.read_from_string(string.sub("multipart/report; report-type=delivery-status;", "multipart/mixed;")) } @@ -39,15 +39,15 @@ describe "multipart reports with more than one address" do it "should not crash" do - mail1 = Mail.read(fixture('emails', 'multipart_report_emails', 'multi_address_bounce1.eml')) - mail2 = Mail.read(fixture('emails', 'multipart_report_emails', 'multi_address_bounce2.eml')) + mail1 = read_fixture('emails', 'multipart_report_emails', 'multi_address_bounce1.eml') + mail2 = read_fixture('emails', 'multipart_report_emails', 'multi_address_bounce2.eml') expect { mail1.bounced? }.not_to raise_error expect { mail2.bounced? }.not_to raise_error end it "should not know that a multi address email was bounced" do - mail1 = Mail.read(fixture('emails', 'multipart_report_emails', 'multi_address_bounce1.eml')) - mail2 = Mail.read(fixture('emails', 'multipart_report_emails', 'multi_address_bounce2.eml')) + mail1 = read_fixture('emails', 'multipart_report_emails', 'multi_address_bounce1.eml') + mail2 = read_fixture('emails', 'multipart_report_emails', 'multi_address_bounce2.eml') expect(mail1).to be_bounced expect(mail2).to be_bounced end @@ -56,7 +56,7 @@ describe "temporary failure" do before(:each) do - @mail = Mail.read(fixture('emails', 'multipart_report_emails', 'report_422.eml')) + @mail = read_fixture('emails', 'multipart_report_emails', 'report_422.eml') end it "should be bounced" do @@ -91,7 +91,7 @@ describe "permanent failure" do before(:each) do - @mail = Mail.read(fixture('emails', 'multipart_report_emails', 'report_530.eml')) + @mail = read_fixture('emails', 'multipart_report_emails', 'report_530.eml') end it "should be bounced" do diff --git a/spec/mail/part_spec.rb b/spec/mail/part_spec.rb index 05d096e7d..e3e9dd064 100644 --- a/spec/mail/part_spec.rb +++ b/spec/mail/part_spec.rb @@ -112,8 +112,8 @@ end describe "delivery status reports" do - before(:each) do - part =<... Unknown E-Mail Address Last-Attempt-Date: Mon, 24 Dec 2007 10:03:53 +1100 ENDPART - @delivery_report = Mail::Part.new(part) end it "should know if it is a delivery-status report" do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ad5daacbb..4344bbc15 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -41,8 +41,16 @@ end end -def fixture(*name) - File.join(SPEC_ROOT, 'fixtures', name) +def fixture_path(*path) + File.join SPEC_ROOT, 'fixtures', path +end + +def read_raw_fixture(*path) + File.open fixture_path(*path), 'rb', &:read +end + +def read_fixture(*path) + Mail.read fixture_path(*path) end # Produces an array or printable ascii by default.