mms2r 2.4.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/History.txt +5 -0
- data/Manifest.txt +1 -1
- data/README.txt +12 -9
- data/Rakefile +11 -10
- data/conf/mobile.indosat.net.id.yml +1 -1
- data/conf/waw.plspictures.com.yml +1 -1
- data/lib/mail_ext.rb +37 -0
- data/lib/mms2r.rb +7 -5
- data/lib/mms2r/media.rb +29 -35
- data/lib/mms2r/media/sprint.rb +19 -19
- data/mms2r.gemspec +23 -17
- data/test/fixtures/att-blackberry-02.mail +5 -6
- data/test/fixtures/att-iphone-01.mail +3 -3
- data/test/fixtures/dobson-image-01.mail +3 -3
- data/test/fixtures/maroctelecom-france-mms-01.mail +4 -4
- data/test/fixtures/mycingular-image-01.mail +3 -3
- data/test/fixtures/nextel-image-02.mail +2 -2
- data/test/fixtures/orangepoland-text-01.mail +2 -1
- data/test/fixtures/orangepoland-text-02.mail +2 -1
- data/test/fixtures/pics.cingularme.com-image-01.mail +0 -1
- data/test/fixtures/sasktel-image-01.mail +4 -4
- data/test/fixtures/sprint-broken-image-01.mail +1 -1
- data/test/fixtures/sprint-text-01.mail +1 -1
- data/test/fixtures/tmobile-blackberry-02.mail +4 -4
- data/test/test_1nbox_net.rb +16 -19
- data/test/test_bell_canada.rb +8 -13
- data/test/test_bellsouth_net.rb +5 -10
- data/test/test_helper.rb +16 -11
- data/test/test_mediamessaging_o2_co_uk.rb +21 -17
- data/test/test_messaging_nextel_com.rb +18 -12
- data/test/test_messaging_sprintpcs_com.rb +4 -8
- data/test/test_mms2r_media.rb +153 -143
- data/test/test_mms_3ireland_ie.rb +4 -9
- data/test/test_mms_ae.rb +12 -12
- data/test/test_mms_alltel_com.rb +14 -15
- data/test/test_mms_att_net.rb +35 -27
- data/test/test_mms_dobson_net.rb +9 -11
- data/test/test_mms_luxgsm_lu.rb +23 -17
- data/test/test_mms_mobileiam_ma.rb +4 -10
- data/test/test_mms_mtn_co_za.rb +4 -9
- data/test/test_mms_mycricket_com.rb +9 -9
- data/test/test_mms_myhelio_com.rb +18 -14
- data/test/test_mms_netcom_no.rb +19 -17
- data/test/test_mms_o2online_de.rb +20 -18
- data/test/test_mms_three_co_uk.rb +14 -14
- data/test/test_mms_vodacom4me_co_za.rb +24 -24
- data/test/test_mobile_indosat_net_id.rb +6 -9
- data/test/test_msg_telus_com.rb +5 -10
- data/test/test_orangemms_net.rb +25 -17
- data/test/test_pm_sprint_com.rb +37 -22
- data/test/test_pxt_vodafone_net_nz.rb +7 -11
- data/test/test_rci_rogers_com.rb +3 -8
- data/test/test_sms_sasktel_com.rb +2 -7
- data/test/test_tmomail_net.rb +25 -23
- data/test/test_unicel_com.rb +8 -12
- data/test/test_vmpix_com.rb +14 -13
- data/test/test_vzwpix_com.rb +24 -14
- data/test/test_waw_plspictures_com.rb +2 -7
- metadata +77 -26
- data/lib/tmail_ext.rb +0 -22
data/mms2r.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{mms2r}
|
5
|
-
s.version = "
|
5
|
+
s.version = "3.0.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Mike Mondragon"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2010-02-26}
|
10
10
|
s.description = %q{== DESCRIPTION
|
11
11
|
|
12
12
|
MMS2R is a library that decodes the parts of an MMS message to disk while
|
@@ -21,14 +21,14 @@ MMS other than decoding and consolidating its media.
|
|
21
21
|
MMS2R can be used to process any multipart email to conveniently access the
|
22
22
|
parts the mail is comprised of.}
|
23
23
|
s.email = ["mikemondragon@gmail.com"]
|
24
|
-
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"
|
25
|
-
s.files = [".gitignore", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "conf/1nbox.net.yml", "conf/aliases.yml", "conf/bellsouth.net.yml", "conf/from.yml", "conf/mediamessaging.o2.co.uk.yml", "conf/messaging.nextel.com.yml", "conf/mms.3ireland.ie.yml", "conf/mms.ae.yml", "conf/mms.alltel.com.yml", "conf/mms.att.net.yml", "conf/mms.dobson.net.yml", "conf/mms.luxgsm.lu.yml", "conf/mms.mobileiam.ma.yml", "conf/mms.mtn.co.za.yml", "conf/mms.mycricket.com.yml", "conf/mms.myhelio.com.yml", "conf/mms.netcom.no.yml", "conf/mms.o2online.de.yml", "conf/mms.three.co.uk.yml", "conf/mms.vodacom4me.co.za.yml", "conf/mms2r_media.yml", "conf/mobile.indosat.net.id.yml", "conf/msg.telus.com.yml", "conf/orangemms.net.yml", "conf/pm.sprint.com.yml", "conf/pxt.vodafone.net.nz.yml", "conf/rci.rogers.com.yml", "conf/sms.sasktel.com.yml", "conf/tmomail.net.yml", "conf/txt.bell.ca.yml", "conf/unicel.com.yml", "conf/vmpix.com.yml", "conf/vzwpix.com.yml", "conf/waw.plspictures.com.yml", "dev_tools/anonymizer.rb", "dev_tools/debug_sprint_nokogiri_parsing.rb", "dev_tools/github.rb", "
|
24
|
+
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
25
|
+
s.files = [".gitignore", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "conf/1nbox.net.yml", "conf/aliases.yml", "conf/bellsouth.net.yml", "conf/from.yml", "conf/mediamessaging.o2.co.uk.yml", "conf/messaging.nextel.com.yml", "conf/mms.3ireland.ie.yml", "conf/mms.ae.yml", "conf/mms.alltel.com.yml", "conf/mms.att.net.yml", "conf/mms.dobson.net.yml", "conf/mms.luxgsm.lu.yml", "conf/mms.mobileiam.ma.yml", "conf/mms.mtn.co.za.yml", "conf/mms.mycricket.com.yml", "conf/mms.myhelio.com.yml", "conf/mms.netcom.no.yml", "conf/mms.o2online.de.yml", "conf/mms.three.co.uk.yml", "conf/mms.vodacom4me.co.za.yml", "conf/mms2r_media.yml", "conf/mobile.indosat.net.id.yml", "conf/msg.telus.com.yml", "conf/orangemms.net.yml", "conf/pm.sprint.com.yml", "conf/pxt.vodafone.net.nz.yml", "conf/rci.rogers.com.yml", "conf/sms.sasktel.com.yml", "conf/tmomail.net.yml", "conf/txt.bell.ca.yml", "conf/unicel.com.yml", "conf/vmpix.com.yml", "conf/vzwpix.com.yml", "conf/waw.plspictures.com.yml", "dev_tools/anonymizer.rb", "dev_tools/debug_sprint_nokogiri_parsing.rb", "dev_tools/github.rb", "init.rb", "lib/mms2r.rb", "lib/mms2r/media.rb", "lib/mms2r/media/sprint.rb", "lib/mail_ext.rb", "mms2r.gemspec", "test/fixtures/1nbox-2images-01.mail", "test/fixtures/1nbox-2images-02.mail", "test/fixtures/1nbox-2images-03.mail", "test/fixtures/1nbox-2images-04.mail", "test/fixtures/3ireland-mms-01.mail", "test/fixtures/alltel-image-01.mail", "test/fixtures/alltel-mms-01.mail", "test/fixtures/alltel-mms-03.mail", "test/fixtures/apple-double-image-01.mail", "test/fixtures/att-blackberry-02.mail", "test/fixtures/att-blackberry.mail", "test/fixtures/att-image-01.mail", "test/fixtures/att-image-02.mail", "test/fixtures/att-iphone-01.mail", "test/fixtures/att-iphone-02.mail", "test/fixtures/att-iphone-03.mail", "test/fixtures/att-text-01.mail", "test/fixtures/bell-canada-image-01.mail", "test/fixtures/cingularme-text-01.mail", "test/fixtures/cingularme-text-02.mail", "test/fixtures/dobson-image-01.mail", "test/fixtures/dot.jpg", "test/fixtures/generic.mail", "test/fixtures/helio-image-01.mail", "test/fixtures/helio-message-01.mail", "test/fixtures/iconv-fr-text-01.mail", "test/fixtures/indosat-image-01.mail", "test/fixtures/indosat-image-02.mail", "test/fixtures/info2go-image-01.mail", "test/fixtures/iphone-image-01.mail", "test/fixtures/luxgsm-image-01.mail", "test/fixtures/maroctelecom-france-mms-01.mail", "test/fixtures/mediamessaging_o2_co_uk-image-01.mail", "test/fixtures/mmode-image-01.mail", "test/fixtures/mms.ae-image-01.mail", "test/fixtures/mms.mycricket.com-pic-and-text.mail", "test/fixtures/mms.mycricket.com-pic.mail", "test/fixtures/mmsreply.t-mobile.co.uk-text-image-01.mail", "test/fixtures/mobile.mycingular.com-text-01.mail", "test/fixtures/mtn-southafrica-mms.mail", "test/fixtures/mycingular-image-01.mail", "test/fixtures/netcom-image-01.mail", "test/fixtures/nextel-image-01.mail", "test/fixtures/nextel-image-02.mail", "test/fixtures/nextel-image-03.mail", "test/fixtures/nextel-image-04.mail", "test/fixtures/o2-de-image-01.mail", "test/fixtures/orange-uk-image-01.mail", "test/fixtures/orangefrance-text-and-image.mail", "test/fixtures/orangepoland-text-01.mail", "test/fixtures/orangepoland-text-02.mail", "test/fixtures/pics.cingularme.com-image-01.mail", "test/fixtures/pxt-image-01.mail", "test/fixtures/rogers-canada-mms-01.mail", "test/fixtures/sasktel-image-01.mail", "test/fixtures/sprint-broken-image-01.mail", "test/fixtures/sprint-image-01.mail", "test/fixtures/sprint-pcs-text-01.mail", "test/fixtures/sprint-purged-image-01.mail", "test/fixtures/sprint-text-01.mail", "test/fixtures/sprint-two-images-01.mail", "test/fixtures/sprint-video-01.mail", "test/fixtures/sprint.mov", "test/fixtures/suncom-blackberry.mail", "test/fixtures/telus-image-01.mail", "test/fixtures/three-uk-image-01.mail", "test/fixtures/tmo.blackberry.net-image-01.mail", "test/fixtures/tmobile-blackberry-02.mail", "test/fixtures/tmobile-blackberry.mail", "test/fixtures/tmobile-image-01.mail", "test/fixtures/tmobile-image-02.mail", "test/fixtures/unicel-image-01.mail", "test/fixtures/verizon-blackberry.mail", "test/fixtures/verizon-image-01.mail", "test/fixtures/verizon-image-02.mail", "test/fixtures/verizon-image-03.mail", "test/fixtures/verizon-text-01.mail", "test/fixtures/verizon-video-01.mail", "test/fixtures/virgin-mobile-image-01.mail", "test/fixtures/virgin.ca-text-01.mail", "test/fixtures/vodacom4me-co-za-01.mail", "test/fixtures/vodacom4me-co-za-02.mail", "test/fixtures/vodacom4me-southafrica-mms-01.mail", "test/fixtures/vodacom4me-southafrica-mms-04.mail", "test/fixtures/vtext-text-01.mail", "test/fixtures/vzwpix.com-image-01.mail", "test/fixtures/waw.plspictures.com-image-01.mail", "test/test_1nbox_net.rb", "test/test_bell_canada.rb", "test/test_bellsouth_net.rb", "test/test_github.rb", "test/test_helper.rb", "test/test_mediamessaging_o2_co_uk.rb", "test/test_messaging_nextel_com.rb", "test/test_messaging_sprintpcs_com.rb", "test/test_mms2r_media.rb", "test/test_mms_3ireland_ie.rb", "test/test_mms_ae.rb", "test/test_mms_alltel_com.rb", "test/test_mms_att_net.rb", "test/test_mms_dobson_net.rb", "test/test_mms_luxgsm_lu.rb", "test/test_mms_mobileiam_ma.rb", "test/test_mms_mtn_co_za.rb", "test/test_mms_mycricket_com.rb", "test/test_mms_myhelio_com.rb", "test/test_mms_netcom_no.rb", "test/test_mms_o2online_de.rb", "test/test_mms_three_co_uk.rb", "test/test_mms_vodacom4me_co_za.rb", "test/test_mobile_indosat_net_id.rb", "test/test_msg_telus_com.rb", "test/test_orangemms_net.rb", "test/test_pm_sprint_com.rb", "test/test_pxt_vodafone_net_nz.rb", "test/test_rci_rogers_com.rb", "test/test_sms_sasktel_com.rb", "test/test_tmomail_net.rb", "test/test_unicel_com.rb", "test/test_vmpix_com.rb", "test/test_vzwpix_com.rb", "test/test_waw_plspictures_com.rb", "vendor/plugins/mms2r/lib/autotest/discover.rb", "vendor/plugins/mms2r/lib/autotest/mms2r.rb"]
|
26
26
|
s.homepage = %q{http://mms2r.rubyforge.org/
|
27
27
|
}
|
28
28
|
s.rdoc_options = ["--main", "README.txt"]
|
29
29
|
s.require_paths = ["lib"]
|
30
30
|
s.rubyforge_project = %q{mms2r}
|
31
|
-
s.rubygems_version = %q{1.3.
|
31
|
+
s.rubygems_version = %q{1.3.6}
|
32
32
|
s.summary = %q{Extract user media from MMS (and not carrier cruft)}
|
33
33
|
s.test_files = ["test/test_mms_o2online_de.rb", "test/test_helper.rb", "test/test_pm_sprint_com.rb", "test/test_sms_sasktel_com.rb", "test/test_mms_mobileiam_ma.rb", "test/test_msg_telus_com.rb", "test/test_messaging_sprintpcs_com.rb", "test/test_mms_myhelio_com.rb", "test/test_mms_3ireland_ie.rb", "test/test_mms_ae.rb", "test/test_mms_att_net.rb", "test/test_mediamessaging_o2_co_uk.rb", "test/test_bell_canada.rb", "test/test_mms_mtn_co_za.rb", "test/test_vmpix_com.rb", "test/test_github.rb", "test/test_vzwpix_com.rb", "test/test_bellsouth_net.rb", "test/test_unicel_com.rb", "test/test_waw_plspictures_com.rb", "test/test_mms_luxgsm_lu.rb", "test/test_mms_netcom_no.rb", "test/test_mms_mycricket_com.rb", "test/test_mms2r_media.rb", "test/test_rci_rogers_com.rb", "test/test_messaging_nextel_com.rb", "test/test_mms_vodacom4me_co_za.rb", "test/test_tmomail_net.rb", "test/test_1nbox_net.rb", "test/test_pxt_vodafone_net_nz.rb", "test/test_mobile_indosat_net_id.rb", "test/test_mms_three_co_uk.rb", "test/test_mms_alltel_com.rb", "test/test_mms_dobson_net.rb", "test/test_orangemms_net.rb"]
|
34
34
|
|
@@ -37,20 +37,26 @@ parts the mail is comprised of.}
|
|
37
37
|
s.specification_version = 3
|
38
38
|
|
39
39
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
40
|
-
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
41
|
-
s.add_runtime_dependency(%q<
|
42
|
-
s.add_runtime_dependency(%q<uuidtools>, [">= 0"])
|
43
|
-
s.add_development_dependency(%q<
|
40
|
+
s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.0"])
|
41
|
+
s.add_runtime_dependency(%q<mail>, [">= 2.1.0"])
|
42
|
+
s.add_runtime_dependency(%q<uuidtools>, [">= 2.1.0"])
|
43
|
+
s.add_development_dependency(%q<rubyforge>, [">= 2.0.3"])
|
44
|
+
s.add_development_dependency(%q<gemcutter>, [">= 0.4.1"])
|
45
|
+
s.add_development_dependency(%q<hoe>, [">= 2.5.0"])
|
44
46
|
else
|
45
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
46
|
-
s.add_dependency(%q<
|
47
|
-
s.add_dependency(%q<uuidtools>, [">= 0"])
|
48
|
-
s.add_dependency(%q<
|
47
|
+
s.add_dependency(%q<nokogiri>, [">= 1.4.0"])
|
48
|
+
s.add_dependency(%q<mail>, [">= 2.1.0"])
|
49
|
+
s.add_dependency(%q<uuidtools>, [">= 2.1.0"])
|
50
|
+
s.add_dependency(%q<rubyforge>, [">= 2.0.3"])
|
51
|
+
s.add_dependency(%q<gemcutter>, [">= 0.4.1"])
|
52
|
+
s.add_dependency(%q<hoe>, [">= 2.5.0"])
|
49
53
|
end
|
50
54
|
else
|
51
|
-
s.add_dependency(%q<nokogiri>, [">= 0"])
|
52
|
-
s.add_dependency(%q<
|
53
|
-
s.add_dependency(%q<uuidtools>, [">= 0"])
|
54
|
-
s.add_dependency(%q<
|
55
|
+
s.add_dependency(%q<nokogiri>, [">= 1.4.0"])
|
56
|
+
s.add_dependency(%q<mail>, [">= 2.1.0"])
|
57
|
+
s.add_dependency(%q<uuidtools>, [">= 2.1.0"])
|
58
|
+
s.add_dependency(%q<rubyforge>, [">= 2.0.3"])
|
59
|
+
s.add_dependency(%q<gemcutter>, [">= 0.4.1"])
|
60
|
+
s.add_dependency(%q<hoe>, [">= 2.5.0"])
|
55
61
|
end
|
56
62
|
end
|
@@ -3,12 +3,12 @@ Received: by 10.65.114.15 with SMTP id r15cs144223qbm;
|
|
3
3
|
Thu, 13 Mar 2008 09:38:14 -0700 (PDT)
|
4
4
|
Received: by 10.114.126.1 with SMTP id y1mr9717246wac.108.1205426288880;
|
5
5
|
Thu, 13 Mar 2008 09:38:08 -0700 (PDT)
|
6
|
-
Return-Path: <2068675309>
|
6
|
+
Return-Path: <2068675309@mms.att.net>
|
7
7
|
Received: from barrierN241.nike.com (barrierm241.nike.com [146.197.27.91])
|
8
8
|
by mx.google.com with ESMTP id k21si26738395waf.31.2008.03.13.09.38.06;
|
9
9
|
Thu, 13 Mar 2008 09:38:08 -0700 (PDT)
|
10
|
-
Received-SPF: pass (google.com: best guess record for domain of 2068675309 designates 146.197.27.91 as permitted sender) client-ip=146.197.27.91;
|
11
|
-
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of 2068675309 designates 146.197.27.91 as permitted sender) smtp.mail=2068675309
|
10
|
+
Received-SPF: pass (google.com: best guess record for domain of 2068675309@mms.att.net designates 146.197.27.91 as permitted sender) client-ip=146.197.27.91;
|
11
|
+
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of 2068675309@mms.att.net designates 146.197.27.91 as permitted sender) smtp.mail=2068675309@mms.att.net
|
12
12
|
X-MimeOLE: Produced By Microsoft Exchange V6.5
|
13
13
|
Content-class: urn:content-classes:message
|
14
14
|
MIME-Version: 1.0
|
@@ -21,9 +21,8 @@ X-MS-Has-Attach: yes
|
|
21
21
|
X-MS-TNEF-Correlator:
|
22
22
|
Thread-Topic: IMG00367.jpg
|
23
23
|
Thread-Index: AciFKJgctMXWfPg5QbejKsyJmyuE8w==
|
24
|
-
From: "
|
25
|
-
To: <tommy.tutone@example.com>, "User, Joe" <2068675309
|
26
|
-
<simmons_michelle@yahoo.com>
|
24
|
+
From: "User, Joe" <2068675309@mms.att.net>
|
25
|
+
To: <tommy.tutone@example.com>, "User, Joe" <2068675309@mms.att.net>
|
27
26
|
X-OriginalArrivalTime: 13 Mar 2008 16:37:58.0362 (UTC) FILETIME=[987DB3A0:01C88528]
|
28
27
|
|
29
28
|
This is a multi-part message in MIME format.
|
@@ -3,7 +3,7 @@ Received: by 10.86.84.9 with SMTP id h9cs212049fgb;
|
|
3
3
|
Sun, 13 Apr 2008 13:45:56 -0700 (PDT)
|
4
4
|
Received: by 10.115.79.1 with SMTP id g1mr6089073wal.2.1208119554185;
|
5
5
|
Sun, 13 Apr 2008 13:45:54 -0700 (PDT)
|
6
|
-
Return-Path: <2068675309>
|
6
|
+
Return-Path: <2068675309@mms.att.net>
|
7
7
|
Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176])
|
8
8
|
by mx.google.com with ESMTP id n22si11015104pof.13.2008.04.13.13.45.52;
|
9
9
|
Sun, 13 Apr 2008 13:45:54 -0700 (PDT)
|
@@ -22,13 +22,13 @@ DomainKey-Signature: a=rsa-sha1; c=nofws;
|
|
22
22
|
b=UNVBRv1SU52UN+WCsLeYS3+zbUrIeRrgabXnXRoVsW79cqWHVMem8fBgrqwz/Es9URWr7Lpn4XDVViuSawHTaeMya+V34Ny2YvhR6+/XG2gE5uqVZFXIK15v3zlmWozw9P4heqg/V7fcQvvjEw5mF+tx04ZMkIRkPaTZ8L4HCgo=
|
23
23
|
Received: by 10.115.59.2 with SMTP id m2mr2796408wak.197.1208119552501;
|
24
24
|
Sun, 13 Apr 2008 13:45:52 -0700 (PDT)
|
25
|
-
Return-Path: <2068675309>
|
25
|
+
Return-Path: <2068675309@mms.att.net>
|
26
26
|
Received: from ?192.168.0.252? ( [65.102.174.9])
|
27
27
|
by mx.google.com with ESMTPS id m40sm12467791waf.16.2008.04.13.13.45.48
|
28
28
|
(version=TLSv1/SSLv3 cipher=OTHER);
|
29
29
|
Sun, 13 Apr 2008 13:45:50 -0700 (PDT)
|
30
30
|
Message-Id: <3577FC81-B8BE-4510-9269-82E0CF3BD52E@gmail.com>
|
31
|
-
From: Mike Mondragon <2068675309>
|
31
|
+
From: Mike Mondragon <2068675309@mms.att.net>
|
32
32
|
To: <tommy.tutone@example.com>
|
33
33
|
Content-Type: multipart/mixed;
|
34
34
|
boundary=Apple-Mail-1-31533988
|
@@ -3,11 +3,11 @@ Received: by 10.114.126.6 with SMTP id y6cs662518wac;
|
|
3
3
|
Wed, 18 Apr 2007 17:30:16 -0700 (PDT)
|
4
4
|
Received: by 10.70.37.12 with SMTP id k12mr2098583wxk.1176942615765;
|
5
5
|
Wed, 18 Apr 2007 17:30:15 -0700 (PDT)
|
6
|
-
Return-Path: <
|
6
|
+
Return-Path: <2068675309@mms.dobson.net>
|
7
7
|
Received: from mms.dobson.net ([12.168.76.27])
|
8
8
|
by mx.google.com with SMTP id h13si2340383wxd.2007.04.18.17.30.14;
|
9
9
|
Wed, 18 Apr 2007 17:30:15 -0700 (PDT)
|
10
|
-
Received-SPF: neutral (google.com: 12.168.76.27 is neither permitted nor denied by best guess record for domain of
|
10
|
+
Received-SPF: neutral (google.com: 12.168.76.27 is neither permitted nor denied by best guess record for domain of 2068675309@mms.dobson.net)
|
11
11
|
Received: (qmail 4243 invoked from network); 19 Apr 2007 00:30:14 -0000
|
12
12
|
Received: from unknown (HELO mmsc1be1.dobson.net) (172.23.1.158)
|
13
13
|
by 0 with SMTP; 19 Apr 2007 00:30:14 -0000
|
@@ -17,7 +17,7 @@ Content-Type: multipart/related;boundary=1_4626B816_9F1690;Type="application/smi
|
|
17
17
|
Subject: Subject
|
18
18
|
Date: Thu, 19 Apr 2007 00:30:14 GMT
|
19
19
|
To: luke@example.com
|
20
|
-
From:
|
20
|
+
From: 2068675309@mms.dobson.net
|
21
21
|
Message-ID: <AVTD2MlE05dRftqAJ@mmsc1be1.dobson.net>
|
22
22
|
Mime-Version: 1.0
|
23
23
|
X-Mms-Message-Type: m-send-req
|
@@ -1,5 +1,5 @@
|
|
1
|
-
From
|
2
|
-
Return-Path: <
|
1
|
+
From 98206867309@mms.mobileiam.ma Fri Mar 7 21:03:00 2008
|
2
|
+
Return-Path: <98206867309@mms.mobileiam.ma>
|
3
3
|
X-Original-To: test@example.com
|
4
4
|
Delivered-To: test@example.com
|
5
5
|
Received: from mmsemail1.mms.mobileiam.ma (ll212-2-46-54-217-212.ll212-2.iam.net.ma [212.217.54.46])
|
@@ -13,8 +13,8 @@ Received: from tgw.mms.mobileiam.ma (tgw.mms.mobileiam.ma [212.217.54.54])
|
|
13
13
|
for <test@example.com>; Sat, 8 Mar 2008 01:45:49 GMT
|
14
14
|
Message-ID: <3180046.1204941944434.JavaMail.jboss@mmsemail1>
|
15
15
|
Date: Sat, 8 Mar 2008 01:45:48 +0000
|
16
|
-
From:
|
17
|
-
Reply-To:
|
16
|
+
From: 98206867309@mms.mobileiam.ma
|
17
|
+
Reply-To: 98206867309 <98206867309@mms.mobileiam.ma>
|
18
18
|
To: test@example.com
|
19
19
|
Subject: Multimedia message
|
20
20
|
Mime-Version: 1.0
|
@@ -3,11 +3,11 @@ Received: by 10.35.66.7 with SMTP id t7cs256749pyk;
|
|
3
3
|
Tue, 24 Apr 2007 16:40:50 -0700 (PDT)
|
4
4
|
Received: by 10.64.143.12 with SMTP id q12mr104771qbd.1177458050520;
|
5
5
|
Tue, 24 Apr 2007 16:40:50 -0700 (PDT)
|
6
|
-
Return-Path: <
|
6
|
+
Return-Path: <2068675309@mms.mycingular.com>
|
7
7
|
Received: from iad2.emailsrvr.com (iad2.emailsrvr.com [207.97.227.212])
|
8
8
|
by mx.google.com with ESMTP id 7si86743nzn.2007.04.24.16.40.46;
|
9
9
|
Tue, 24 Apr 2007 16:40:50 -0700 (PDT)
|
10
|
-
Received-SPF: neutral (google.com: 207.97.227.212 is neither permitted nor denied by best guess record for domain of
|
10
|
+
Received-SPF: neutral (google.com: 207.97.227.212 is neither permitted nor denied by best guess record for domain of 2068675309@mms.mycingular.com)
|
11
11
|
Received: by mail41a.mail.iad.mlsrvr.com (SMTP Server, from userid 5000)
|
12
12
|
id 0B65D514083; Tue, 24 Apr 2007 19:40:45 -0400 (EDT)
|
13
13
|
Received: from gate16.gate.iad.mlsrvr.com (gate16.gate.iad.mlsrvr.com [192.168.1.36])
|
@@ -31,7 +31,7 @@ Content-Type: multipart/mixed; boundary="----=_Part_2944038_406917.117745804379
|
|
31
31
|
X-Mms-Delivery-Report: 1
|
32
32
|
Received: from alpagw02 ([209.183.34.196]) by atlmtaow02.cingularme.com (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20070424234043.EHXN2345.atlmtaow02.cingularme.com@alpagw02> for <go@example.com>; Tue, 24 Apr 2007 19:40:43 -0400
|
33
33
|
X-Mms-Transaction-ID: 1-5190f9
|
34
|
-
From: <
|
34
|
+
From: <2068675309@mms.mycingular.com>
|
35
35
|
To: go@example.com
|
36
36
|
X-Mms-Message-Class: 0
|
37
37
|
X-Mms-Read-Reply: 1
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Content-Type: multipart/related; boundary="45f5bb5505a8qwerty_0000"; type="multipart/alternative"
|
2
2
|
To: <tommytutone@example.com>
|
3
3
|
Date: Mon, 12 Mar 2007 20:43:01 GMT
|
4
|
-
From:
|
5
|
-
Sender: "
|
4
|
+
From: 2068675309@messaging.nextel.com
|
5
|
+
Sender: "2068675309" <2068675309@messaging.nextel.com>
|
6
6
|
X-Priority: 3
|
7
7
|
MIME-Version: 1.0
|
8
8
|
Message-Id: <20070112204344.ABCD1234.adcext11.messaging.nextel.com@dadslffd>
|
@@ -6,7 +6,6 @@ Received: by 10.65.180.7 with SMTP id h7mr1899344qbp;
|
|
6
6
|
Wed, 25 Oct 2006 17:03:38 -0700 (PDT)
|
7
7
|
Return-Path: <2068675309@pics.cingularme.com>
|
8
8
|
Received: from atlmtaow01.cingularme.com (atlmtaow01.cingularme.com [66.102.165.6])
|
9
|
-
|
10
9
|
Wed, 25 Oct 2006 17:03:38 -0700 (PDT)
|
11
10
|
Received-SPF: pass (google.com: domain of 2068675309@pics.cingularme.com designates 66.102.165.6 as permitted sender)
|
12
11
|
X-Mms-MMS-Version: 18
|
@@ -1,5 +1,5 @@
|
|
1
|
-
From
|
2
|
-
Return-Path: <
|
1
|
+
From 3068675309@sms.sasktel.com Thu Jan 24 12:19:21 2008
|
2
|
+
Return-Path: <3068675309@sms.sasktel.com>
|
3
3
|
X-Original-To: fohnohch@snapmylife.com
|
4
4
|
Delivered-To: catch-all@mtagd.com
|
5
5
|
Received: from smtp02.prv.sun2.lightsurf.net (smtp02.sun2.lightsurf.net [64.157.6.51])
|
@@ -10,7 +10,7 @@ Received: from bwa-back001 (smtp.prv.sun2.lightsurf.net [10.103.1.134])
|
|
10
10
|
for <fohnohch@snapmylife.com>; Thu, 24 Jan 2008 09:19:20 -0800
|
11
11
|
Date: Thu, 24 Jan 2008 09:19:20 -0800
|
12
12
|
Message-ID: <10248944.1201195160389.JavaMail.lsadm@bwa-back001>
|
13
|
-
From:
|
13
|
+
From: 3068675309@sms.sasktel.com
|
14
14
|
To: fohnohch@snapmylife.com
|
15
15
|
Subject: A Picture/Video Message!
|
16
16
|
MIME-Version: 1.0
|
@@ -1582,7 +1582,7 @@ Content-Transfer-Encoding: 7bit
|
|
1582
1582
|
<td> </td><td> </td></tr>
|
1583
1583
|
<tr align="left" valign="top">
|
1584
1584
|
<td> </td><td><p> You have received a message from
|
1585
|
-
|
1585
|
+
3068675309 </p>
|
1586
1586
|
<p>Lil'ndawg</p>
|
1587
1587
|
<p>
|
1588
1588
|
<img src="cid:A2.7959841022938083">
|
@@ -46,7 +46,7 @@ Content-Transfer-Encoding: 7bit
|
|
46
46
|
-->
|
47
47
|
<!-- lsPictureMail-UserInfo-helloworld0123456789-comment
|
48
48
|
<?xml version="1.0" encoding="UTF-8"?>
|
49
|
-
<UserInfo timestamp="2007-03-04T21:14:27.96+00:00" originating_from_address="someuser@pm.sprint.com"><credential name="MDN">
|
49
|
+
<UserInfo timestamp="2007-03-04T21:14:27.96+00:00" originating_from_address="someuser@pm.sprint.com"><credential name="MDN">2068675309</credential></UserInfo>
|
50
50
|
-->
|
51
51
|
</head>
|
52
52
|
<body marginheight="0" marginwidth="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
|
@@ -46,7 +46,7 @@ Content-Transfer-Encoding: 7bit
|
|
46
46
|
-->
|
47
47
|
<!-- lsPictureMail-UserInfo-helloworld0123456789-comment
|
48
48
|
<?xml version="1.0" encoding="UTF-8"?>
|
49
|
-
<UserInfo timestamp="2007-03-04T21:14:27.96+00:00" originating_from_address="someuser@pm.sprint.com"><credential name="MDN">
|
49
|
+
<UserInfo timestamp="2007-03-04T21:14:27.96+00:00" originating_from_address="someuser@pm.sprint.com"><credential name="MDN">2068765309</credential></UserInfo>
|
50
50
|
-->
|
51
51
|
</head>
|
52
52
|
<body marginheight="0" marginwidth="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
|
@@ -3,7 +3,7 @@ Received: by 10.64.96.17 with SMTP id t17cs77228qbb;
|
|
3
3
|
Sat, 8 Mar 2008 17:41:11 -0800 (PST)
|
4
4
|
Received: by 10.65.96.6 with SMTP id y6mr5506769qbl.5.1205026871007;
|
5
5
|
Sat, 08 Mar 2008 17:41:11 -0800 (PST)
|
6
|
-
Return-Path: <2068675309>
|
6
|
+
Return-Path: <2068675309@example.com>
|
7
7
|
Received: from smtp04.bis.na.blackberry.com (smtp04.bis.na.blackberry.com [216.9.248.51])
|
8
8
|
by mx.google.com with ESMTP id e14si6100040qbe.24.2008.03.08.17.41.07;
|
9
9
|
Sat, 08 Mar 2008 17:41:10 -0800 (PST)
|
@@ -13,15 +13,15 @@ Received: from bda242-cell03.bisx.prod.on.blackberry (localhost.localdomain [127
|
|
13
13
|
by bda242.bis.na.blackberry.com (8.13.4 TEAMON/8.13.4) with ESMTP id m291f5QI005057
|
14
14
|
for <tommy.tutone@example.com>; Sun, 9 Mar 2008 01:41:05 GMT
|
15
15
|
X-rim-org-msg-ref-id: 1436806694
|
16
|
-
Return-Receipt-To: 2068675309
|
16
|
+
Return-Receipt-To: 2068675309@example.com
|
17
17
|
Message-ID: <1436806694-1205026864-cardhu_decombobulator_blackberry.rim.net-110047835-@bxe002.bisx.prod.on.blackberry>
|
18
|
-
Reply-To: 2068675309
|
18
|
+
Reply-To: 2068675309@example.com
|
19
19
|
X-Priority: Normal
|
20
20
|
Sensitivity: Normal
|
21
21
|
Importance: Normal
|
22
22
|
To: tommy.tutone@example.com
|
23
23
|
Subject: IMG00141.jpg
|
24
|
-
From: "=?utf-8?B?UGV0ZQ==?=" <2068675309>
|
24
|
+
From: "=?utf-8?B?UGV0ZQ==?=" <2068675309@example.com>
|
25
25
|
Date: Sun, 9 Mar 2008 01:37:40 +0000
|
26
26
|
Content-Type: multipart/mixed; boundary="part42711-boundary-1392797391-905953628"
|
27
27
|
MIME-Version: 1.0
|
data/test/test_1nbox_net.rb
CHANGED
@@ -1,19 +1,14 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), "..", "lib", "mms2r")
|
2
1
|
require File.join(File.dirname(__FILE__), "test_helper")
|
3
|
-
require 'test/unit'
|
4
|
-
require 'rubygems'
|
5
|
-
require 'mocha'
|
6
|
-
gem 'tmail', '>= 1.2.1'
|
7
|
-
require 'tmail'
|
8
2
|
|
9
3
|
class Test1nboxNet < Test::Unit::TestCase
|
10
4
|
include MMS2R::TestHelper
|
11
|
-
|
12
|
-
def
|
13
|
-
mail =
|
5
|
+
|
6
|
+
def test_image_and_text_and_number_and_carrier
|
7
|
+
mail = mail('1nbox-2images-01.mail')
|
14
8
|
mms = MMS2R::Media.new(mail)
|
15
|
-
|
9
|
+
|
16
10
|
assert_equal "+919812345678", mms.number
|
11
|
+
assert_equal "1nbox.net", mms.carrier
|
17
12
|
assert_equal 2, mms.media.size
|
18
13
|
|
19
14
|
assert_not_nil mms.media['text/plain']
|
@@ -28,14 +23,15 @@ class Test1nboxNet < Test::Unit::TestCase
|
|
28
23
|
end
|
29
24
|
|
30
25
|
def test_image_with_no_plain_text
|
31
|
-
mail =
|
26
|
+
mail = mail('1nbox-2images-02.mail')
|
32
27
|
mms = MMS2R::Media.new(mail)
|
33
|
-
|
28
|
+
|
34
29
|
assert_nil mms.media['text/plain']
|
35
30
|
|
36
31
|
assert_equal "+919898765432", mms.number
|
32
|
+
assert_equal "1nbox.net", mms.carrier
|
37
33
|
assert_equal 1, mms.media.size
|
38
|
-
|
34
|
+
|
39
35
|
assert_not_nil mms.media['image/jpeg']
|
40
36
|
assert_equal 1, mms.media['image/jpeg'].size
|
41
37
|
assert_match(/showpicture\.jpeg$/, mms.media['image/jpeg'].first)
|
@@ -44,12 +40,12 @@ class Test1nboxNet < Test::Unit::TestCase
|
|
44
40
|
end
|
45
41
|
|
46
42
|
def test_image_with_extra_chars
|
47
|
-
mail =
|
43
|
+
mail = mail('1nbox-2images-03.mail')
|
48
44
|
mms = MMS2R::Media.new(mail)
|
49
|
-
|
45
|
+
|
50
46
|
assert_equal 1, mms.media.size
|
51
47
|
assert_nil mms.media['text/plain']
|
52
|
-
|
48
|
+
|
53
49
|
assert_not_nil mms.media['image/jpeg']
|
54
50
|
assert_equal 1, mms.media['image/jpeg'].size
|
55
51
|
assert_match(/=\?UTF-8\?Q\?Copy_of_test1\.jpg\?=/, mms.media['image/jpeg'].first)
|
@@ -58,9 +54,9 @@ class Test1nboxNet < Test::Unit::TestCase
|
|
58
54
|
end
|
59
55
|
|
60
56
|
def test_image_with_plain_email
|
61
|
-
mail =
|
57
|
+
mail = mail('1nbox-2images-04.mail')
|
62
58
|
mms = MMS2R::Media.new(mail)
|
63
|
-
|
59
|
+
|
64
60
|
assert_equal 2, mms.media.size
|
65
61
|
|
66
62
|
assert_not_nil mms.media['text/plain']
|
@@ -68,7 +64,8 @@ class Test1nboxNet < Test::Unit::TestCase
|
|
68
64
|
assert_equal "Hi,I'M TESTERS/MALE/23/IND/GOV.SRVC.01234567890.", open(mms.media['text/plain'].first).read
|
69
65
|
|
70
66
|
assert_equal "1234567890", mms.number
|
71
|
-
|
67
|
+
assert_equal "1nbox.net", mms.carrier
|
68
|
+
|
72
69
|
assert_not_nil mms.media['image/gif']
|
73
70
|
assert_equal 1, mms.media['image/gif'].size
|
74
71
|
assert_match(/@003\.gif$/, mms.media['image/gif'].first)
|
data/test/test_bell_canada.rb
CHANGED
@@ -1,19 +1,14 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), "..", "lib", "mms2r")
|
2
1
|
require File.join(File.dirname(__FILE__), "test_helper")
|
3
|
-
require 'test/unit'
|
4
|
-
require 'rubygems'
|
5
|
-
require 'mocha'
|
6
|
-
gem 'tmail', '>= 1.2.1'
|
7
|
-
require 'tmail'
|
8
2
|
|
9
3
|
class TestBellCanada < Test::Unit::TestCase
|
10
4
|
include MMS2R::TestHelper
|
11
|
-
|
5
|
+
|
12
6
|
def test_image_and_text_and_number
|
13
|
-
mail =
|
7
|
+
mail = mail('bell-canada-image-01.mail')
|
14
8
|
mms = MMS2R::Media.new(mail)
|
15
9
|
|
16
10
|
assert_equal "2068675309", mms.number
|
11
|
+
assert_equal "txt.bell.ca", mms.carrier
|
17
12
|
assert_equal "A Picture/Video Message!", mms.subject
|
18
13
|
|
19
14
|
assert_equal 4, mms.media.size
|
@@ -24,21 +19,21 @@ class TestBellCanada < Test::Unit::TestCase
|
|
24
19
|
|
25
20
|
# make sure transform strips out massive dtd at start of doc
|
26
21
|
assert_equal 3331, File.size(mms.media['text/html'].first)
|
27
|
-
|
22
|
+
|
28
23
|
mms.purge
|
29
24
|
end
|
30
25
|
|
31
26
|
|
32
27
|
def test_default_media_should_return_user_generated_content
|
33
|
-
mail =
|
28
|
+
mail = mail('bell-canada-image-01.mail')
|
34
29
|
mms = MMS2R::Media.new(mail)
|
35
30
|
file = mms.default_media
|
36
|
-
|
31
|
+
|
37
32
|
# make sure the users jpg is the one that we default to
|
38
33
|
assert_equal 31962, file.size
|
39
34
|
assert_equal '.jpg', File.extname(file.path)
|
40
|
-
|
35
|
+
|
41
36
|
mms.purge
|
42
|
-
end
|
37
|
+
end
|
43
38
|
|
44
39
|
end
|
data/test/test_bellsouth_net.rb
CHANGED
@@ -1,20 +1,15 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), "..", "lib", "mms2r")
|
2
1
|
require File.join(File.dirname(__FILE__), "test_helper")
|
3
|
-
require 'test/unit'
|
4
|
-
require 'rubygems'
|
5
|
-
require 'mocha'
|
6
|
-
gem 'tmail', '>= 1.2.1'
|
7
|
-
require 'tmail'
|
8
2
|
|
9
3
|
class TestBellsouthNet < Test::Unit::TestCase
|
10
4
|
include MMS2R::TestHelper
|
11
|
-
|
5
|
+
|
12
6
|
def test_image_from_blackberry
|
13
|
-
mail =
|
7
|
+
mail = mail('suncom-blackberry.mail')
|
14
8
|
mms = MMS2R::Media.new(mail)
|
15
|
-
|
9
|
+
|
10
|
+
assert_equal "2068675309", mms.number
|
16
11
|
assert_nil mms.media['text/plain']
|
17
|
-
|
12
|
+
|
18
13
|
assert_not_nil mms.media['image/jpeg'].first
|
19
14
|
assert_match(/Windows-1252\?B\?SU1HMDAwNjUuanBn/, mms.media['image/jpeg'].first)
|
20
15
|
mms.purge
|