actionmailer 2.3.18 → 3.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionmailer might be problematic. Click here for more details.
- data/CHANGELOG +13 -16
- data/README +39 -21
- data/lib/action_mailer/adv_attr_accessor.rb +14 -18
- data/lib/action_mailer/base.rb +437 -560
- data/lib/action_mailer/collector.rb +36 -0
- data/lib/action_mailer/delivery_methods.rb +86 -0
- data/lib/action_mailer/deprecated_api.rb +139 -0
- data/lib/action_mailer/mail_helper.rb +25 -13
- data/lib/action_mailer/old_api.rb +248 -0
- data/lib/action_mailer/quoting.rb +4 -2
- data/lib/action_mailer/railtie.rb +25 -0
- data/lib/action_mailer/railties/subscriber.rb +20 -0
- data/lib/action_mailer/test_case.rb +4 -6
- data/lib/action_mailer/test_helper.rb +0 -1
- data/lib/action_mailer/tmail_compat.rb +34 -0
- data/lib/action_mailer/version.rb +3 -3
- data/lib/action_mailer.rb +25 -30
- metadata +41 -161
- data/Rakefile +0 -97
- data/install.rb +0 -30
- data/lib/action_mailer/helpers.rb +0 -113
- data/lib/action_mailer/part.rb +0 -107
- data/lib/action_mailer/part_container.rb +0 -55
- data/lib/action_mailer/utils.rb +0 -7
- data/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb +0 -1466
- data/lib/action_mailer/vendor/text_format.rb +0 -10
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/Makefile +0 -18
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/address.rb +0 -392
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/attachments.rb +0 -65
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/base64.rb +0 -46
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/compat.rb +0 -41
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/config.rb +0 -67
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/core_extensions.rb +0 -63
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/encode.rb +0 -590
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/header.rb +0 -962
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/index.rb +0 -9
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/interface.rb +0 -1162
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/loader.rb +0 -3
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mail.rb +0 -578
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mailbox.rb +0 -496
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/main.rb +0 -6
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/mbox.rb +0 -3
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/net.rb +0 -250
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/obsolete.rb +0 -132
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.rb +0 -1060
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/parser.y +0 -416
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/port.rb +0 -379
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/quoting.rb +0 -164
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/require_arch.rb +0 -58
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner.rb +0 -49
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/scanner_r.rb +0 -262
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/stringio.rb +0 -280
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/utils.rb +0 -362
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/COPYING +0 -504
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/README +0 -12
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5freq.rb +0 -927
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/big5prober.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/chardistribution.rb +0 -238
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetgroupprober.rb +0 -112
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/charsetprober.rb +0 -75
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/codingstatemachine.rb +0 -64
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/constants.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escprober.rb +0 -89
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/escsm.rb +0 -244
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/eucjpprober.rb +0 -88
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrfreq.rb +0 -596
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euckrprober.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwfreq.rb +0 -430
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/euctwprober.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312freq.rb +0 -474
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/gb2312prober.rb +0 -42
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/hebrewprober.rb +0 -289
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jisfreq.rb +0 -570
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/jpcntx.rb +0 -229
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langbulgarianmodel.rb +0 -229
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langcyrillicmodel.rb +0 -330
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langgreekmodel.rb +0 -227
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhebrewmodel.rb +0 -202
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langhungarianmodel.rb +0 -226
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/langthaimodel.rb +0 -201
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/latin1prober.rb +0 -147
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcharsetprober.rb +0 -89
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcsgroupprober.rb +0 -45
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/mbcssm.rb +0 -542
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcharsetprober.rb +0 -124
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sbcsgroupprober.rb +0 -56
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/sjisprober.rb +0 -88
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/universaldetector.rb +0 -168
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet/utf8prober.rb +0 -87
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/vendor/rchardet-1.3/lib/rchardet.rb +0 -67
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail/version.rb +0 -39
- data/lib/action_mailer/vendor/tmail-1.2.7/tmail.rb +0 -6
- data/lib/action_mailer/vendor/tmail.rb +0 -17
- data/lib/actionmailer.rb +0 -2
- data/test/abstract_unit.rb +0 -62
- data/test/asset_host_test.rb +0 -54
- data/test/delivery_method_test.rb +0 -51
- data/test/fixtures/asset_host_mailer/email_with_asset.html.erb +0 -1
- data/test/fixtures/auto_layout_mailer/hello.html.erb +0 -1
- data/test/fixtures/auto_layout_mailer/multipart.text.html.erb +0 -1
- data/test/fixtures/auto_layout_mailer/multipart.text.plain.erb +0 -1
- data/test/fixtures/explicit_layout_mailer/logout.html.erb +0 -1
- data/test/fixtures/explicit_layout_mailer/signup.html.erb +0 -1
- data/test/fixtures/first_mailer/share.erb +0 -1
- data/test/fixtures/helper_mailer/use_example_helper.erb +0 -1
- data/test/fixtures/helper_mailer/use_helper.erb +0 -1
- data/test/fixtures/helper_mailer/use_helper_method.erb +0 -1
- data/test/fixtures/helper_mailer/use_mail_helper.erb +0 -5
- data/test/fixtures/helpers/example_helper.rb +0 -5
- data/test/fixtures/layouts/auto_layout_mailer.html.erb +0 -1
- data/test/fixtures/layouts/auto_layout_mailer.text.erb +0 -1
- data/test/fixtures/layouts/spam.html.erb +0 -1
- data/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb +0 -1
- data/test/fixtures/raw_email +0 -14
- data/test/fixtures/raw_email10 +0 -20
- data/test/fixtures/raw_email12 +0 -32
- data/test/fixtures/raw_email13 +0 -29
- data/test/fixtures/raw_email2 +0 -114
- data/test/fixtures/raw_email3 +0 -70
- data/test/fixtures/raw_email4 +0 -59
- data/test/fixtures/raw_email5 +0 -19
- data/test/fixtures/raw_email6 +0 -20
- data/test/fixtures/raw_email7 +0 -66
- data/test/fixtures/raw_email8 +0 -47
- data/test/fixtures/raw_email9 +0 -28
- data/test/fixtures/raw_email_quoted_with_0d0a +0 -14
- data/test/fixtures/raw_email_with_invalid_characters_in_content_type +0 -104
- data/test/fixtures/raw_email_with_nested_attachment +0 -100
- data/test/fixtures/raw_email_with_partially_quoted_subject +0 -14
- data/test/fixtures/second_mailer/share.erb +0 -1
- data/test/fixtures/templates/signed_up.erb +0 -3
- data/test/fixtures/test_mailer/_subtemplate.text.plain.erb +0 -1
- data/test/fixtures/test_mailer/body_ivar.erb +0 -2
- data/test/fixtures/test_mailer/custom_templating_extension.text.html.haml +0 -6
- data/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml +0 -6
- data/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb +0 -1
- data/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak +0 -1
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb +0 -10
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb~ +0 -10
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb +0 -2
- data/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb +0 -1
- data/test/fixtures/test_mailer/included_subtemplate.text.plain.erb +0 -1
- data/test/fixtures/test_mailer/rxml_template.builder +0 -2
- data/test/fixtures/test_mailer/rxml_template.rxml +0 -2
- data/test/fixtures/test_mailer/signed_up.html.erb +0 -3
- data/test/fixtures/test_mailer/signed_up_with_url.erb +0 -5
- data/test/mail_helper_test.rb +0 -95
- data/test/mail_layout_test.rb +0 -123
- data/test/mail_render_test.rb +0 -116
- data/test/mail_service_test.rb +0 -1145
- data/test/quoting_test.rb +0 -105
- data/test/test_helper_test.rb +0 -129
- data/test/tmail_test.rb +0 -22
- data/test/url_test.rb +0 -76
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'abstract_unit'
|
2
|
-
|
3
|
-
class DefaultDeliveryMethodMailer < ActionMailer::Base
|
4
|
-
end
|
5
|
-
|
6
|
-
class NonDefaultDeliveryMethodMailer < ActionMailer::Base
|
7
|
-
self.delivery_method = :sendmail
|
8
|
-
end
|
9
|
-
|
10
|
-
class ActionMailerBase_delivery_method_Test < Test::Unit::TestCase
|
11
|
-
def setup
|
12
|
-
set_delivery_method :smtp
|
13
|
-
end
|
14
|
-
|
15
|
-
def teardown
|
16
|
-
restore_delivery_method
|
17
|
-
end
|
18
|
-
|
19
|
-
def test_should_be_the_default_smtp
|
20
|
-
assert_equal :smtp, ActionMailer::Base.delivery_method
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
class DefaultDeliveryMethodMailer_delivery_method_Test < Test::Unit::TestCase
|
25
|
-
def setup
|
26
|
-
set_delivery_method :smtp
|
27
|
-
end
|
28
|
-
|
29
|
-
def teardown
|
30
|
-
restore_delivery_method
|
31
|
-
end
|
32
|
-
|
33
|
-
def test_should_be_the_default_smtp
|
34
|
-
assert_equal :smtp, DefaultDeliveryMethodMailer.delivery_method
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
class NonDefaultDeliveryMethodMailer_delivery_method_Test < Test::Unit::TestCase
|
39
|
-
def setup
|
40
|
-
set_delivery_method :smtp
|
41
|
-
end
|
42
|
-
|
43
|
-
def teardown
|
44
|
-
restore_delivery_method
|
45
|
-
end
|
46
|
-
|
47
|
-
def test_should_be_the_set_delivery_method
|
48
|
-
assert_equal :sendmail, NonDefaultDeliveryMethodMailer.delivery_method
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= image_tag "somelogo.png" %>
|
@@ -1 +0,0 @@
|
|
1
|
-
Inside
|
@@ -1 +0,0 @@
|
|
1
|
-
text/html multipart
|
@@ -1 +0,0 @@
|
|
1
|
-
text/plain multipart
|
@@ -1 +0,0 @@
|
|
1
|
-
You logged out
|
@@ -1 +0,0 @@
|
|
1
|
-
We do not spam
|
@@ -1 +0,0 @@
|
|
1
|
-
first mail
|
@@ -1 +0,0 @@
|
|
1
|
-
So, <%= example_format(@text) %>
|
@@ -1 +0,0 @@
|
|
1
|
-
Hello, <%= person_name %>. Thanks for registering!
|
@@ -1 +0,0 @@
|
|
1
|
-
This message brought to you by <%= name_of_the_mailer_class %>.
|
@@ -1 +0,0 @@
|
|
1
|
-
Hello from layout <%= yield %>
|
@@ -1 +0,0 @@
|
|
1
|
-
text/plain layout - <%= yield %>
|
@@ -1 +0,0 @@
|
|
1
|
-
Spammer layout <%= yield %>
|
data/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Have a lovely picture, from me. Enjoy!
|
data/test/fixtures/raw_email
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
From jamis_buck@byu.edu Mon May 2 16:07:05 2005
|
2
|
-
Mime-Version: 1.0 (Apple Message framework v622)
|
3
|
-
Content-Transfer-Encoding: base64
|
4
|
-
Message-Id: <d3b8cf8e49f04480850c28713a1f473e@37signals.com>
|
5
|
-
Content-Type: text/plain;
|
6
|
-
charset=EUC-KR;
|
7
|
-
format=flowed
|
8
|
-
To: willard15georgina@jamis.backpackit.com
|
9
|
-
From: Jamis Buck <jamis@37signals.com>
|
10
|
-
Subject: =?EUC-KR?Q?NOTE:_=C7=D1=B1=B9=B8=BB=B7=CE_=C7=CF=B4=C2_=B0=CD?=
|
11
|
-
Date: Mon, 2 May 2005 16:07:05 -0600
|
12
|
-
|
13
|
-
tOu6zrrQwMcguLbC+bChwfa3ziwgv+y4rrTCIMfPs6q01MC7ILnPvcC0z7TZLg0KDQrBpiDAzLin
|
14
|
-
wLogSmFtaXPA1LTPtNku
|
data/test/fixtures/raw_email10
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Return-Path: <xxx@xxxx.xxx>
|
2
|
-
Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:05 -0500
|
3
|
-
Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:04 -0500
|
4
|
-
Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:03 -0500
|
5
|
-
Date: Tue, 10 May 2005 15:27:03 -0500
|
6
|
-
From: xxx@xxxx.xxx
|
7
|
-
Sender: xxx@xxxx.xxx
|
8
|
-
To: xxxxxxxxxxx@xxxx.xxxx.xxx
|
9
|
-
Message-Id: <xxx@xxxx.xxx>
|
10
|
-
X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx
|
11
|
-
Delivered-To: xxx@xxxx.xxx
|
12
|
-
Importance: normal
|
13
|
-
Content-Type: text/plain; charset=X-UNKNOWN
|
14
|
-
|
15
|
-
Test test. Hi. Waving. m
|
16
|
-
|
17
|
-
----------------------------------------------------------------
|
18
|
-
Sent via Bell Mobility's Text Messaging service.
|
19
|
-
Envoyé par le service de messagerie texte de Bell Mobilité.
|
20
|
-
----------------------------------------------------------------
|
data/test/fixtures/raw_email12
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
Mime-Version: 1.0 (Apple Message framework v730)
|
2
|
-
Content-Type: multipart/mixed; boundary=Apple-Mail-13-196941151
|
3
|
-
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@example.com>
|
4
|
-
From: foo@example.com
|
5
|
-
Subject: testing
|
6
|
-
Date: Mon, 6 Jun 2005 22:21:22 +0200
|
7
|
-
To: blah@example.com
|
8
|
-
|
9
|
-
|
10
|
-
--Apple-Mail-13-196941151
|
11
|
-
Content-Transfer-Encoding: quoted-printable
|
12
|
-
Content-Type: text/plain;
|
13
|
-
charset=ISO-8859-1;
|
14
|
-
delsp=yes;
|
15
|
-
format=flowed
|
16
|
-
|
17
|
-
This is the first part.
|
18
|
-
|
19
|
-
--Apple-Mail-13-196941151
|
20
|
-
Content-Type: image/jpeg
|
21
|
-
Content-Transfer-Encoding: base64
|
22
|
-
Content-Location: Photo25.jpg
|
23
|
-
Content-ID: <qbFGyPQAS8>
|
24
|
-
Content-Disposition: inline
|
25
|
-
|
26
|
-
jamisSqGSIb3DQEHAqCAMIjamisxCzAJBgUrDgMCGgUAMIAGCSqGSjamisEHAQAAoIIFSjCCBUYw
|
27
|
-
ggQujamisQICBD++ukQwDQYJKojamisNAQEFBQAwMTELMAkGA1UEBhMCRjamisAKBgNVBAoTA1RE
|
28
|
-
QzEUMBIGjamisxMLVERDIE9DRVMgQ0jamisNMDQwMjI5MTE1OTAxWhcNMDYwMjamisIyOTAxWjCB
|
29
|
-
gDELMAkGA1UEjamisEsxKTAnBgNVBAoTIEjamisuIG9yZ2FuaXNhdG9yaXNrIHRpbjamisRuaW5=
|
30
|
-
|
31
|
-
--Apple-Mail-13-196941151--
|
32
|
-
|
data/test/fixtures/raw_email13
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
Mime-Version: 1.0 (Apple Message framework v730)
|
2
|
-
Content-Type: multipart/mixed; boundary=Apple-Mail-13-196941151
|
3
|
-
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@example.com>
|
4
|
-
From: foo@example.com
|
5
|
-
Subject: testing
|
6
|
-
Date: Mon, 6 Jun 2005 22:21:22 +0200
|
7
|
-
To: blah@example.com
|
8
|
-
|
9
|
-
|
10
|
-
--Apple-Mail-13-196941151
|
11
|
-
Content-Transfer-Encoding: quoted-printable
|
12
|
-
Content-Type: text/plain;
|
13
|
-
charset=ISO-8859-1;
|
14
|
-
delsp=yes;
|
15
|
-
format=flowed
|
16
|
-
|
17
|
-
This is the first part.
|
18
|
-
|
19
|
-
--Apple-Mail-13-196941151
|
20
|
-
Content-Type: text/x-ruby-script; name="hello.rb"
|
21
|
-
Content-Transfer-Encoding: 7bit
|
22
|
-
Content-Disposition: attachment;
|
23
|
-
filename="api.rb"
|
24
|
-
|
25
|
-
puts "Hello, world!"
|
26
|
-
gets
|
27
|
-
|
28
|
-
--Apple-Mail-13-196941151--
|
29
|
-
|
data/test/fixtures/raw_email2
DELETED
@@ -1,114 +0,0 @@
|
|
1
|
-
From xxxxxxxxx.xxxxxxx@gmail.com Sun May 8 19:07:09 2005
|
2
|
-
Return-Path: <xxxxxxxxx.xxxxxxx@gmail.com>
|
3
|
-
X-Original-To: xxxxx@xxxxx.xxxxxxxxx.com
|
4
|
-
Delivered-To: xxxxx@xxxxx.xxxxxxxxx.com
|
5
|
-
Received: from localhost (localhost [127.0.0.1])
|
6
|
-
by xxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 06C9DA98D
|
7
|
-
for <xxxxx@xxxxx.xxxxxxxxx.com>; Sun, 8 May 2005 19:09:13 +0000 (GMT)
|
8
|
-
Received: from xxxxx.xxxxxxxxx.com ([127.0.0.1])
|
9
|
-
by localhost (xxxxx.xxxxxxxxx.com [127.0.0.1]) (amavisd-new, port 10024)
|
10
|
-
with LMTP id 88783-08 for <xxxxx@xxxxx.xxxxxxxxx.com>;
|
11
|
-
Sun, 8 May 2005 19:09:12 +0000 (GMT)
|
12
|
-
Received: from xxxxxxx.xxxxxxxxx.com (xxxxxxx.xxxxxxxxx.com [69.36.39.150])
|
13
|
-
by xxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 10D8BA960
|
14
|
-
for <xxxxx@xxxxxxxxx.org>; Sun, 8 May 2005 19:09:12 +0000 (GMT)
|
15
|
-
Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199])
|
16
|
-
by xxxxxxx.xxxxxxxxx.com (Postfix) with ESMTP id 9EBC4148EAB
|
17
|
-
for <xxxxx@xxxxxxxxx.com>; Sun, 8 May 2005 14:09:11 -0500 (CDT)
|
18
|
-
Received: by zproxy.gmail.com with SMTP id 13so1233405nzp
|
19
|
-
for <xxxxx@xxxxxxxxx.com>; Sun, 08 May 2005 12:09:11 -0700 (PDT)
|
20
|
-
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
|
21
|
-
s=beta; d=gmail.com;
|
22
|
-
h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references;
|
23
|
-
b=cid1mzGEFa3gtRa06oSrrEYfKca2CTKu9sLMkWxjbvCsWMtp9RGEILjUz0L5RySdH5iO661LyNUoHRFQIa57bylAbXM3g2DTEIIKmuASDG3x3rIQ4sHAKpNxP7Pul+mgTaOKBv+spcH7af++QEJ36gHFXD2O/kx9RePs3JNf/K8=
|
24
|
-
Received: by 10.36.10.16 with SMTP id 16mr1012493nzj;
|
25
|
-
Sun, 08 May 2005 12:09:11 -0700 (PDT)
|
26
|
-
Received: by 10.36.5.10 with HTTP; Sun, 8 May 2005 12:09:11 -0700 (PDT)
|
27
|
-
Message-ID: <e85734b90505081209eaaa17b@mail.gmail.com>
|
28
|
-
Date: Sun, 8 May 2005 14:09:11 -0500
|
29
|
-
From: xxxxxxxxx xxxxxxx <xxxxxxxxx.xxxxxxx@gmail.com>
|
30
|
-
Reply-To: xxxxxxxxx xxxxxxx <xxxxxxxxx.xxxxxxx@gmail.com>
|
31
|
-
To: xxxxx xxxx <xxxxx@xxxxxxxxx.com>
|
32
|
-
Subject: Fwd: Signed email causes file attachments
|
33
|
-
In-Reply-To: <F6E2D0B4-CC35-4A91-BA4C-C7C712B10C13@mac.com>
|
34
|
-
Mime-Version: 1.0
|
35
|
-
Content-Type: multipart/mixed;
|
36
|
-
boundary="----=_Part_5028_7368284.1115579351471"
|
37
|
-
References: <F6E2D0B4-CC35-4A91-BA4C-C7C712B10C13@mac.com>
|
38
|
-
|
39
|
-
------=_Part_5028_7368284.1115579351471
|
40
|
-
Content-Type: text/plain; charset=ISO-8859-1
|
41
|
-
Content-Transfer-Encoding: quoted-printable
|
42
|
-
Content-Disposition: inline
|
43
|
-
|
44
|
-
We should not include these files or vcards as attachments.
|
45
|
-
|
46
|
-
---------- Forwarded message ----------
|
47
|
-
From: xxxxx xxxxxx <xxxxxxxx@xxx.com>
|
48
|
-
Date: May 8, 2005 1:17 PM
|
49
|
-
Subject: Signed email causes file attachments
|
50
|
-
To: xxxxxxx@xxxxxxxxxx.com
|
51
|
-
|
52
|
-
|
53
|
-
Hi,
|
54
|
-
|
55
|
-
Just started to use my xxxxxxxx account (to set-up a GTD system,
|
56
|
-
natch) and noticed that when I send content via email the signature/
|
57
|
-
certificate from my email account gets added as a file (e.g.
|
58
|
-
"smime.p7s").
|
59
|
-
|
60
|
-
Obviously I can uncheck the signature option in the Mail compose
|
61
|
-
window but how often will I remember to do that?
|
62
|
-
|
63
|
-
Is there any way these kind of files could be ignored, e.g. via some
|
64
|
-
sort of exclusions list?
|
65
|
-
|
66
|
-
------=_Part_5028_7368284.1115579351471
|
67
|
-
Content-Type: application/pkcs7-signature; name=smime.p7s
|
68
|
-
Content-Transfer-Encoding: base64
|
69
|
-
Content-Disposition: attachment; filename="smime.p7s"
|
70
|
-
|
71
|
-
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFDCCAs0w
|
72
|
-
ggI2oAMCAQICAw5c+TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
|
73
|
-
d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
|
74
|
-
YWlsIElzc3VpbmcgQ0EwHhcNMDUwMzI5MDkzOTEwWhcNMDYwMzI5MDkzOTEwWjBCMR8wHQYDVQQD
|
75
|
-
ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBzbWhhdW5jaEBtYWMuY29t
|
76
|
-
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn90dPsYS3LjfMY211OSYrDQLzwNYPlAL
|
77
|
-
7+/0XA+kdy8/rRnyEHFGwhNCD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JBTEPFw0wNTA1MDgxODE3NDZaMCMGCSqGSIb3DQEJBDEWBBQSkG9j6+hB0pKp
|
103
|
-
fV9tCi/iP59sNTB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3
|
104
|
-
dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1h
|
105
|
-
aWwgSXNzdWluZyBDQQIDDlz5MHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG
|
106
|
-
A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
|
107
|
-
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAw5c+TANBgkqhkiG9w0BAQEFAASCAQAm1GeF7dWfMvrW
|
108
|
-
8yMPjkhE+R8D1DsiCoWSCp+5gAQm7lcK7V3KrZh5howfpI3TmCZUbbaMxOH+7aKRKpFemxoBY5Q8
|
109
|
-
rnCkbpg/++/+MI01T69hF/rgMmrGcrv2fIYy8EaARLG0xUVFSZHSP+NQSYz0TTmh4cAESHMzY3JA
|
110
|
-
nHOoUkuPyl8RXrimY1zn0lceMXlweZRouiPGuPNl1hQKw8P+GhOC5oLlM71UtStnrlk3P9gqX5v7
|
111
|
-
Tj7Hx057oVfY8FMevjxGwU3EK5TczHezHbWWgTyum9l2ZQbUQsDJxSniD3BM46C1VcbDLPaotAZ0
|
112
|
-
fTYLZizQfm5hcWEbfYVzkSzLAAAAAAAA
|
113
|
-
------=_Part_5028_7368284.1115579351471--
|
114
|
-
|
data/test/fixtures/raw_email3
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
From xxxx@xxxx.com Tue May 10 11:28:07 2005
|
2
|
-
Return-Path: <xxxx@xxxx.com>
|
3
|
-
X-Original-To: xxxx@xxxx.com
|
4
|
-
Delivered-To: xxxx@xxxx.com
|
5
|
-
Received: from localhost (localhost [127.0.0.1])
|
6
|
-
by xxx.xxxxx.com (Postfix) with ESMTP id 50FD3A96F
|
7
|
-
for <xxxx@xxxx.com>; Tue, 10 May 2005 17:26:50 +0000 (GMT)
|
8
|
-
Received: from xxx.xxxxx.com ([127.0.0.1])
|
9
|
-
by localhost (xxx.xxxxx.com [127.0.0.1]) (amavisd-new, port 10024)
|
10
|
-
with LMTP id 70060-03 for <xxxx@xxxx.com>;
|
11
|
-
Tue, 10 May 2005 17:26:49 +0000 (GMT)
|
12
|
-
Received: from xxx.xxxxx.com (xxx.xxxxx.com [69.36.39.150])
|
13
|
-
by xxx.xxxxx.com (Postfix) with ESMTP id 8B957A94B
|
14
|
-
for <xxxx@xxxx.com>; Tue, 10 May 2005 17:26:48 +0000 (GMT)
|
15
|
-
Received: from xxx.xxxxx.com (xxx.xxxxx.com [64.233.184.203])
|
16
|
-
by xxx.xxxxx.com (Postfix) with ESMTP id 9972514824C
|
17
|
-
for <xxxx@xxxx.com>; Tue, 10 May 2005 12:26:40 -0500 (CDT)
|
18
|
-
Received: by xxx.xxxxx.com with SMTP id 68so1694448wri
|
19
|
-
for <xxxx@xxxx.com>; Tue, 10 May 2005 10:26:40 -0700 (PDT)
|
20
|
-
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
|
21
|
-
s=beta; d=xxxxx.com;
|
22
|
-
h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type;
|
23
|
-
b=g8ZO5ttS6GPEMAz9WxrRk9+9IXBUfQIYsZLL6T88+ECbsXqGIgfGtzJJFn6o9CE3/HMrrIGkN5AisxVFTGXWxWci5YA/7PTVWwPOhJff5BRYQDVNgRKqMl/SMttNrrRElsGJjnD1UyQ/5kQmcBxq2PuZI5Zc47u6CILcuoBcM+A=
|
24
|
-
Received: by 10.54.96.19 with SMTP id t19mr621017wrb;
|
25
|
-
Tue, 10 May 2005 10:26:39 -0700 (PDT)
|
26
|
-
Received: by 10.54.110.5 with HTTP; Tue, 10 May 2005 10:26:39 -0700 (PDT)
|
27
|
-
Message-ID: <xxxx@xxxx.com>
|
28
|
-
Date: Tue, 10 May 2005 11:26:39 -0600
|
29
|
-
From: Test Tester <xxxx@xxxx.com>
|
30
|
-
Reply-To: Test Tester <xxxx@xxxx.com>
|
31
|
-
To: xxxx@xxxx.com, xxxx@xxxx.com
|
32
|
-
Subject: Another PDF
|
33
|
-
Mime-Version: 1.0
|
34
|
-
Content-Type: multipart/mixed;
|
35
|
-
boundary="----=_Part_2192_32400445.1115745999735"
|
36
|
-
X-Virus-Scanned: amavisd-new at textdrive.com
|
37
|
-
|
38
|
-
------=_Part_2192_32400445.1115745999735
|
39
|
-
Content-Type: text/plain; charset=ISO-8859-1
|
40
|
-
Content-Transfer-Encoding: quoted-printable
|
41
|
-
Content-Disposition: inline
|
42
|
-
|
43
|
-
Just attaching another PDF, here, to see what the message looks like,
|
44
|
-
and to see if I can figure out what is going wrong here.
|
45
|
-
|
46
|
-
------=_Part_2192_32400445.1115745999735
|
47
|
-
Content-Type: application/pdf; name="broken.pdf"
|
48
|
-
Content-Transfer-Encoding: base64
|
49
|
-
Content-Disposition: attachment; filename="broken.pdf"
|
50
|
-
|
51
|
-
JVBERi0xLjQNCiXk9tzfDQoxIDAgb2JqDQo8PCAvTGVuZ3RoIDIgMCBSDQogICAvRmlsdGVyIC9G
|
52
|
-
bGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KeJy9Wt2KJbkNvm/od6jrhZxYln9hWEh2p+8HBvICySaE
|
53
|
-
ycLuTV4/1ifJ9qnq09NpSBimu76yLUuy/qzqcPz7+em3Ixx/CDc6CsXxs3b5+fvfjr/8cPz6/BRu
|
54
|
-
rbfAx/n3739/fuJylJ5u5fjX81OuDr4deK4Bz3z/aDP+8fz0yw8g0Ofq7ktr1Mn+u28rvhy/jVeD
|
55
|
-
QSa+9YNKHP/pxjvDNfVAx/m3MFz54FhvTbaseaxiDoN2LeMVMw+yA7RbHSCDzxZuaYB2E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0g2DuSyd41uhNGbEgaSrWEXORErbw
|
69
|
-
------=_Part_2192_32400445.1115745999735--
|
70
|
-
|
data/test/fixtures/raw_email4
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
Return-Path: <xxx@xxxx.xxx>
|
2
|
-
Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id 6AAEE3B4D23 for <xxx@xxxx.xxx>; Sun, 8 May 2005 12:30:23 -0500
|
3
|
-
Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id j48HUC213279 for <xxx@xxxx.xxx>; Sun, 8 May 2005 12:30:13 -0500
|
4
|
-
Received: from conversion-xxx.xxxx.xxx.net by xxx.xxxx.xxx id <0IG600901LQ64I@xxx.xxxx.xxx> for <xxx@xxxx.xxx>; Sun, 8 May 2005 12:30:12 -0500
|
5
|
-
Received: from agw1 by xxx.xxxx.xxx with ESMTP id <0IG600JFYLYCAxxx@xxxx.xxx> for <xxx@xxxx.xxx>; Sun, 8 May 2005 12:30:12 -0500
|
6
|
-
Date: Sun, 8 May 2005 12:30:08 -0500
|
7
|
-
From: xxx@xxxx.xxx
|
8
|
-
To: xxx@xxxx.xxx
|
9
|
-
Message-Id: <7864245.1115573412626.JavaMxxx@xxxx.xxx>
|
10
|
-
Subject: Filth
|
11
|
-
Mime-Version: 1.0
|
12
|
-
Content-Type: multipart/mixed; boundary=mimepart_427e4cb4ca329_133ae40413c81ef
|
13
|
-
X-Mms-Priority: 1
|
14
|
-
X-Mms-Transaction-Id: 3198421808-0
|
15
|
-
X-Mms-Message-Type: 0
|
16
|
-
X-Mms-Sender-Visibility: 1
|
17
|
-
X-Mms-Read-Reply: 1
|
18
|
-
X-Original-To: xxx@xxxx.xxx
|
19
|
-
X-Mms-Message-Class: 0
|
20
|
-
X-Mms-Delivery-Report: 0
|
21
|
-
X-Mms-Mms-Version: 16
|
22
|
-
Delivered-To: xxx@xxxx.xxx
|
23
|
-
X-Nokia-Ag-Version: 2.0
|
24
|
-
|
25
|
-
This is a multi-part message in MIME format.
|
26
|
-
|
27
|
-
--mimepart_427e4cb4ca329_133ae40413c81ef
|
28
|
-
Content-Type: multipart/mixed; boundary=mimepart_427e4cb4cbd97_133ae40413c8217
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
--mimepart_427e4cb4cbd97_133ae40413c8217
|
33
|
-
Content-Type: text/plain; charset=utf-8
|
34
|
-
Content-Transfer-Encoding: 7bit
|
35
|
-
Content-Disposition: inline
|
36
|
-
Content-Location: text.txt
|
37
|
-
|
38
|
-
Some text
|
39
|
-
|
40
|
-
--mimepart_427e4cb4cbd97_133ae40413c8217--
|
41
|
-
|
42
|
-
--mimepart_427e4cb4ca329_133ae40413c81ef
|
43
|
-
Content-Type: text/plain; charset=us-ascii
|
44
|
-
Content-Transfer-Encoding: 7bit
|
45
|
-
|
46
|
-
|
47
|
-
--
|
48
|
-
This Orange Multi Media Message was sent wirefree from an Orange
|
49
|
-
MMS phone. If you would like to reply, please text or phone the
|
50
|
-
sender directly by using the phone number listed in the sender's
|
51
|
-
address. To learn more about Orange's Multi Media Messaging
|
52
|
-
Service, find us on the Web at xxx.xxxx.xxx.uk/mms
|
53
|
-
|
54
|
-
|
55
|
-
--mimepart_427e4cb4ca329_133ae40413c81ef
|
56
|
-
|
57
|
-
|
58
|
-
--mimepart_427e4cb4ca329_133ae40413c81ef-
|
59
|
-
|
data/test/fixtures/raw_email5
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
Return-Path: <xxx@xxxx.xxx>
|
2
|
-
Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:05 -0500
|
3
|
-
Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:04 -0500
|
4
|
-
Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:03 -0500
|
5
|
-
Date: Tue, 10 May 2005 15:27:03 -0500
|
6
|
-
From: xxx@xxxx.xxx
|
7
|
-
Sender: xxx@xxxx.xxx
|
8
|
-
To: xxxxxxxxxxx@xxxx.xxxx.xxx
|
9
|
-
Message-Id: <xxx@xxxx.xxx>
|
10
|
-
X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx
|
11
|
-
Delivered-To: xxx@xxxx.xxx
|
12
|
-
Importance: normal
|
13
|
-
|
14
|
-
Test test. Hi. Waving. m
|
15
|
-
|
16
|
-
----------------------------------------------------------------
|
17
|
-
Sent via Bell Mobility's Text Messaging service.
|
18
|
-
Envoyé par le service de messagerie texte de Bell Mobilité.
|
19
|
-
----------------------------------------------------------------
|
data/test/fixtures/raw_email6
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Return-Path: <xxx@xxxx.xxx>
|
2
|
-
Received: from xxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id C1B953B4CB6 for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:05 -0500
|
3
|
-
Received: from SMS-GTYxxx.xxxx.xxx by xxx.xxxx.xxx with ESMTP id ca for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:04 -0500
|
4
|
-
Received: from xxx.xxxx.xxx by SMS-GTYxxx.xxxx.xxx with ESMTP id j4AKR3r23323 for <xxxxx@Exxx.xxxx.xxx>; Tue, 10 May 2005 15:27:03 -0500
|
5
|
-
Date: Tue, 10 May 2005 15:27:03 -0500
|
6
|
-
From: xxx@xxxx.xxx
|
7
|
-
Sender: xxx@xxxx.xxx
|
8
|
-
To: xxxxxxxxxxx@xxxx.xxxx.xxx
|
9
|
-
Message-Id: <xxx@xxxx.xxx>
|
10
|
-
X-Original-To: xxxxxxxxxxx@xxxx.xxxx.xxx
|
11
|
-
Delivered-To: xxx@xxxx.xxx
|
12
|
-
Importance: normal
|
13
|
-
Content-Type: text/plain; charset=us-ascii
|
14
|
-
|
15
|
-
Test test. Hi. Waving. m
|
16
|
-
|
17
|
-
----------------------------------------------------------------
|
18
|
-
Sent via Bell Mobility's Text Messaging service.
|
19
|
-
Envoyé par le service de messagerie texte de Bell Mobilité.
|
20
|
-
----------------------------------------------------------------
|
data/test/fixtures/raw_email7
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
Mime-Version: 1.0 (Apple Message framework v730)
|
2
|
-
Content-Type: multipart/mixed; boundary=Apple-Mail-13-196941151
|
3
|
-
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@example.com>
|
4
|
-
From: foo@example.com
|
5
|
-
Subject: testing
|
6
|
-
Date: Mon, 6 Jun 2005 22:21:22 +0200
|
7
|
-
To: blah@example.com
|
8
|
-
|
9
|
-
|
10
|
-
--Apple-Mail-13-196941151
|
11
|
-
Content-Type: multipart/mixed;
|
12
|
-
boundary=Apple-Mail-12-196940926
|
13
|
-
|
14
|
-
|
15
|
-
--Apple-Mail-12-196940926
|
16
|
-
Content-Transfer-Encoding: quoted-printable
|
17
|
-
Content-Type: text/plain;
|
18
|
-
charset=ISO-8859-1;
|
19
|
-
delsp=yes;
|
20
|
-
format=flowed
|
21
|
-
|
22
|
-
This is the first part.
|
23
|
-
|
24
|
-
--Apple-Mail-12-196940926
|
25
|
-
Content-Transfer-Encoding: 7bit
|
26
|
-
Content-Type: text/x-ruby-script;
|
27
|
-
x-unix-mode=0666;
|
28
|
-
name="test.rb"
|
29
|
-
Content-Disposition: attachment;
|
30
|
-
filename=test.rb
|
31
|
-
|
32
|
-
puts "testing, testing"
|
33
|
-
|
34
|
-
--Apple-Mail-12-196940926
|
35
|
-
Content-Transfer-Encoding: base64
|
36
|
-
Content-Type: application/pdf;
|
37
|
-
x-unix-mode=0666;
|
38
|
-
name="test.pdf"
|
39
|
-
Content-Disposition: inline;
|
40
|
-
filename=test.pdf
|
41
|
-
|
42
|
-
YmxhaCBibGFoIGJsYWg=
|
43
|
-
|
44
|
-
--Apple-Mail-12-196940926
|
45
|
-
Content-Transfer-Encoding: 7bit
|
46
|
-
Content-Type: text/plain;
|
47
|
-
charset=US-ASCII;
|
48
|
-
format=flowed
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
--Apple-Mail-12-196940926--
|
53
|
-
|
54
|
-
--Apple-Mail-13-196941151
|
55
|
-
Content-Transfer-Encoding: base64
|
56
|
-
Content-Type: application/pkcs7-signature;
|
57
|
-
name=smime.p7s
|
58
|
-
Content-Disposition: attachment;
|
59
|
-
filename=smime.p7s
|
60
|
-
|
61
|
-
jamisSqGSIb3DQEHAqCAMIjamisxCzAJBgUrDgMCGgUAMIAGCSqGSjamisEHAQAAoIIFSjCCBUYw
|
62
|
-
ggQujamisQICBD++ukQwDQYJKojamisNAQEFBQAwMTELMAkGA1UEBhMCRjamisAKBgNVBAoTA1RE
|
63
|
-
QzEUMBIGjamisxMLVERDIE9DRVMgQ0jamisNMDQwMjI5MTE1OTAxWhcNMDYwMjamisIyOTAxWjCB
|
64
|
-
gDELMAkGA1UEjamisEsxKTAnBgNVBAoTIEjamisuIG9yZ2FuaXNhdG9yaXNrIHRpbjamisRuaW5=
|
65
|
-
|
66
|
-
--Apple-Mail-13-196941151--
|
data/test/fixtures/raw_email8
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
From xxxxxxxxx.xxxxxxx@gmail.com Sun May 8 19:07:09 2005
|
2
|
-
Return-Path: <xxxxxxxxx.xxxxxxx@gmail.com>
|
3
|
-
Message-ID: <e85734b90505081209eaaa17b@mail.gmail.com>
|
4
|
-
Date: Sun, 8 May 2005 14:09:11 -0500
|
5
|
-
From: xxxxxxxxx xxxxxxx <xxxxxxxxx.xxxxxxx@gmail.com>
|
6
|
-
Reply-To: xxxxxxxxx xxxxxxx <xxxxxxxxx.xxxxxxx@gmail.com>
|
7
|
-
To: xxxxx xxxx <xxxxx@xxxxxxxxx.com>
|
8
|
-
Subject: Fwd: Signed email causes file attachments
|
9
|
-
In-Reply-To: <F6E2D0B4-CC35-4A91-BA4C-C7C712B10C13@mac.com>
|
10
|
-
Mime-Version: 1.0
|
11
|
-
Content-Type: multipart/mixed;
|
12
|
-
boundary="----=_Part_5028_7368284.1115579351471"
|
13
|
-
References: <F6E2D0B4-CC35-4A91-BA4C-C7C712B10C13@mac.com>
|
14
|
-
|
15
|
-
------=_Part_5028_7368284.1115579351471
|
16
|
-
Content-Type: text/plain; charset=ISO-8859-1
|
17
|
-
Content-Transfer-Encoding: quoted-printable
|
18
|
-
Content-Disposition: inline
|
19
|
-
|
20
|
-
We should not include these files or vcards as attachments.
|
21
|
-
|
22
|
-
---------- Forwarded message ----------
|
23
|
-
From: xxxxx xxxxxx <xxxxxxxx@xxx.com>
|
24
|
-
Date: May 8, 2005 1:17 PM
|
25
|
-
Subject: Signed email causes file attachments
|
26
|
-
To: xxxxxxx@xxxxxxxxxx.com
|
27
|
-
|
28
|
-
|
29
|
-
Hi,
|
30
|
-
|
31
|
-
Test attachments oddly encoded with japanese charset.
|
32
|
-
|
33
|
-
|
34
|
-
------=_Part_5028_7368284.1115579351471
|
35
|
-
Content-Type: application/octet-stream; name*=iso-2022-jp'ja'01%20Quien%20Te%20Dij%8aat.%20Pitbull.mp3
|
36
|
-
Content-Transfer-Encoding: base64
|
37
|
-
Content-Disposition: attachment
|
38
|
-
|
39
|
-
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFDCCAs0w
|
40
|
-
ggI2oAMCAQICAw5c+TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
|
41
|
-
d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
|
42
|
-
YWlsIElzc3VpbmcgQ0EwHhcNMDUwMzI5MDkzOTEwWhcNMDYwMzI5MDkzOTEwWjBCMR8wHQYDVQQD
|
43
|
-
ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMR8wHQYJKoZIhvcNAQkBFhBzbWhhdW5jaEBtYWMuY29t
|
44
|
-
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn90dPsYS3LjfMY211OSYrDQLzwNYPlAL
|
45
|
-
7+/0XA+kdy8/rRnyEHFGwhNCDmg0B6pxC7z3xxJD/8GfCd+IYUUNUQV5m9MkxfP9pTVXZVIYLaBw
|
46
|
-
------=_Part_5028_7368284.1115579351471--
|
47
|
-
|
data/test/fixtures/raw_email9
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
Received: from xxx.xxx.xxx ([xxx.xxx.xxx.xxx] verified)
|
2
|
-
by xxx.com (CommuniGate Pro SMTP 4.2.8)
|
3
|
-
with SMTP id 2532598 for xxx@xxx.com; Wed, 23 Feb 2005 17:51:49 -0500
|
4
|
-
Received-SPF: softfail
|
5
|
-
receiver=xxx.com; client-ip=xxx.xxx.xxx.xxx; envelope-from=xxx@xxx.xxx
|
6
|
-
quite Delivered-To: xxx@xxx.xxx
|
7
|
-
Received: by xxx.xxx.xxx (Wostfix, from userid xxx)
|
8
|
-
id 0F87F333; Wed, 23 Feb 2005 16:16:17 -0600
|
9
|
-
Date: Wed, 23 Feb 2005 18:20:17 -0400
|
10
|
-
From: "xxx xxx" <xxx@xxx.xxx>
|
11
|
-
Message-ID: <4D6AA7EB.6490534@xxx.xxx>
|
12
|
-
To: xxx@xxx.com
|
13
|
-
Subject: Stop adware/spyware once and for all.
|
14
|
-
X-Scanned-By: MIMEDefang 2.11 (www dot roaringpenguin dot com slash mimedefang)
|
15
|
-
|
16
|
-
You are infected with:
|
17
|
-
Ad Ware and Spy Ware
|
18
|
-
|
19
|
-
Get your free scan and removal download now,
|
20
|
-
before it gets any worse.
|
21
|
-
|
22
|
-
http://xxx.xxx.info?aid=3D13&?stat=3D4327kdzt
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
no more? (you will still be infected)
|
28
|
-
http://xxx.xxx.info/discon/?xxx@xxx.com
|
@@ -1,14 +0,0 @@
|
|
1
|
-
Mime-Version: 1.0 (Apple Message framework v730)
|
2
|
-
Message-Id: <9169D984-4E0B-45EF-82D4-8F5E53AD7012@example.com>
|
3
|
-
From: foo@example.com
|
4
|
-
Subject: testing
|
5
|
-
Date: Mon, 6 Jun 2005 22:21:22 +0200
|
6
|
-
To: blah@example.com
|
7
|
-
Content-Transfer-Encoding: quoted-printable
|
8
|
-
Content-Type: text/plain
|
9
|
-
|
10
|
-
A fax has arrived from remote ID ''.=0D=0A-----------------------=
|
11
|
-
-------------------------------------=0D=0ATime: 3/9/2006 3:50:52=
|
12
|
-
PM=0D=0AReceived from remote ID: =0D=0AInbound user ID XXXXXXXXXX, r=
|
13
|
-
outing code XXXXXXXXX=0D=0AResult: (0/352;0/0) Successful Send=0D=0AP=
|
14
|
-
age record: 1 - 1=0D=0AElapsed time: 00:58 on channel 11=0D=0A
|