mms2r 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/Manifest.txt +3 -0
- data/README.txt +3 -1
- data/conf/pm.sprint.com.yml +2 -0
- data/conf/vmpix.com.yml +7 -0
- data/lib/mms2r.rb +1 -1
- data/mms2r.gemspec +5 -5
- data/test/fixtures/virgin-mobile-image-01.mail +73 -0
- data/test/test_github.rb +0 -1
- data/test/test_mms_myhelio_com.rb +2 -0
- data/test/test_vmpix_com.rb +46 -0
- metadata +7 -3
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -32,6 +32,7 @@ conf/sms.sasktel.com.yml
|
|
32
32
|
conf/tmomail.net.yml
|
33
33
|
conf/txt.bell.ca.yml
|
34
34
|
conf/unicel.com.yml
|
35
|
+
conf/vmpix.com.yml
|
35
36
|
conf/vzwpix.com.yml
|
36
37
|
conf/waw.plspictures.com.yml
|
37
38
|
dev_tools/anonymizer.rb
|
@@ -114,6 +115,7 @@ test/fixtures/verizon-image-02.mail
|
|
114
115
|
test/fixtures/verizon-image-03.mail
|
115
116
|
test/fixtures/verizon-text-01.mail
|
116
117
|
test/fixtures/verizon-video-01.mail
|
118
|
+
test/fixtures/virgin-mobile-image-01.mail
|
117
119
|
test/fixtures/vodacom4me-co-za-01.mail
|
118
120
|
test/fixtures/vodacom4me-co-za-02.mail
|
119
121
|
test/fixtures/vodacom4me-southafrica-mms-01.mail
|
@@ -151,6 +153,7 @@ test/test_rci_rogers_com.rb
|
|
151
153
|
test/test_sms_sasktel_com.rb
|
152
154
|
test/test_tmomail_net.rb
|
153
155
|
test/test_unicel_com.rb
|
156
|
+
test/test_vmpix_com.rb
|
154
157
|
test/test_vzwpix_com.rb
|
155
158
|
test/test_waw_plspictures_com.rb
|
156
159
|
vendor/plugins/mms2r/lib/autotest/discover.rb
|
data/README.txt
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
http://mms2r.rubyforge.org/
|
5
5
|
http://rubyforge.org/tracker/?group_id=3065
|
6
6
|
http://github.com/monde/mms2r/tree/master
|
7
|
+
http://peepcode.com/products/mms2r-pdf
|
7
8
|
|
8
9
|
== DESCRIPTION
|
9
10
|
|
@@ -50,8 +51,9 @@ Corpus of carriers currently processed by MMS2R:
|
|
50
51
|
* TELUS Corporation (Canada): mms.telusmobility.com, msg.telus.com
|
51
52
|
* Unicel: unicel.com, info2go.com
|
52
53
|
(note: mobile number is tucked away in a text/plain part for unicel.com)
|
53
|
-
* Vodacom: mms.vodacom4me.co.za
|
54
54
|
* Verizon: vzwpix.com, vtext.com
|
55
|
+
* Virgin Mobile: vmpix.com
|
56
|
+
* Vodacom: mms.vodacom4me.co.za
|
55
57
|
|
56
58
|
== FEATURES
|
57
59
|
|
data/conf/pm.sprint.com.yml
CHANGED
data/conf/vmpix.com.yml
ADDED
data/lib/mms2r.rb
CHANGED
data/mms2r.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{mms2r}
|
3
|
-
s.version = "2.1.
|
3
|
+
s.version = "2.1.2"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Mike Mondragon"]
|
7
|
-
s.date = %q{2008-
|
8
|
-
s.description = %q{== DESCRIPTION MMS2R is a library that decodes the parts of an MMS message to disk while stripping out advertising injected by the mobile carriers. MMS messages are multipart email and the carriers often inject branding into these messages. Use MMS2R if you want to get at the real user generated content from a MMS without having to deal with the cruft from the carriers. If MMS2R is not aware of a particular carrier no extra processing is done to the MMS other than decoding and consolidating its media. Contact the author to add additional carriers to be processed by the library. Suggestions and patches appreciated and welcomed! Corpus of carriers currently processed by MMS2R: * 1nbox/Idea: 1nbox.net * 3 Ireland: mms.3ireland.ie * Alltel: mms.alltel.com * AT&T/Cingular/Legacy: mms.att.net, txt.att.net, mmode.com, mms.mycingular.com, cingularme.com * Bell Canada: txt.bell.ca * Bell South / Suncom: bellsouth.net * Cricket Wireless: mms.mycricket.com * Dobson/Cellular One: mms.dobson.net * Helio: mms.myhelio.com * Hutchison 3G UK Ltd: mms.three.co.uk * INDOSAT M2: mobile.indosat.net.id * LUXGSM S.A.: mms.luxgsm.lu * Maroc Telecom / mms.mobileiam.ma * MTM South Africa: mms.mtn.co.za * NetCom (Norway): mms.netcom.no * Nextel: messaging.nextel.com * O2 Germany: mms.o2online.de * O2 UK: mediamessaging.o2.co.uk * Orange & Regional Oranges: orangemms.net, mmsemail.orange.pl, orange.fr * PLSPICTURES.COM mms hosting: waw.plspictures.com * PXT New Zealand: pxt.vodafone.net.nz * Rogers of Canada: rci.rogers.com * SaskTel: sms.sasktel.com * Sprint: pm.sprint.com, messaging.sprintpcs.com * T-Mobile: tmomail.net, mmsreply.t-mobile.co.uk * TELUS Corporation (Canada): mms.telusmobility.com, msg.telus.com * Unicel: unicel.com, info2go.com (note: mobile number is tucked away in a text/plain part for unicel.com) *
|
7
|
+
s.date = %q{2008-10-21}
|
8
|
+
s.description = %q{== DESCRIPTION MMS2R is a library that decodes the parts of an MMS message to disk while stripping out advertising injected by the mobile carriers. MMS messages are multipart email and the carriers often inject branding into these messages. Use MMS2R if you want to get at the real user generated content from a MMS without having to deal with the cruft from the carriers. If MMS2R is not aware of a particular carrier no extra processing is done to the MMS other than decoding and consolidating its media. Contact the author to add additional carriers to be processed by the library. Suggestions and patches appreciated and welcomed! Corpus of carriers currently processed by MMS2R: * 1nbox/Idea: 1nbox.net * 3 Ireland: mms.3ireland.ie * Alltel: mms.alltel.com * AT&T/Cingular/Legacy: mms.att.net, txt.att.net, mmode.com, mms.mycingular.com, cingularme.com * Bell Canada: txt.bell.ca * Bell South / Suncom: bellsouth.net * Cricket Wireless: mms.mycricket.com * Dobson/Cellular One: mms.dobson.net * Helio: mms.myhelio.com * Hutchison 3G UK Ltd: mms.three.co.uk * INDOSAT M2: mobile.indosat.net.id * LUXGSM S.A.: mms.luxgsm.lu * Maroc Telecom / mms.mobileiam.ma * MTM South Africa: mms.mtn.co.za * NetCom (Norway): mms.netcom.no * Nextel: messaging.nextel.com * O2 Germany: mms.o2online.de * O2 UK: mediamessaging.o2.co.uk * Orange & Regional Oranges: orangemms.net, mmsemail.orange.pl, orange.fr * PLSPICTURES.COM mms hosting: waw.plspictures.com * PXT New Zealand: pxt.vodafone.net.nz * Rogers of Canada: rci.rogers.com * SaskTel: sms.sasktel.com * Sprint: pm.sprint.com, messaging.sprintpcs.com * T-Mobile: tmomail.net, mmsreply.t-mobile.co.uk * TELUS Corporation (Canada): mms.telusmobility.com, msg.telus.com * Unicel: unicel.com, info2go.com (note: mobile number is tucked away in a text/plain part for unicel.com) * Verizon: vzwpix.com, vtext.com * Virgin Mobile: vmpix.com * Vodacom: mms.vodacom4me.co.za}
|
9
9
|
s.email = %q{mikemondragon@gmail.com}
|
10
10
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
11
|
-
s.files = [".gitignore", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "conf/1nbox.net.yml", "conf/aliases.yml", "conf/bellsouth.net.yml", "conf/mediamessaging.o2.co.uk.yml", "conf/messaging.nextel.com.yml", "conf/mms.3ireland.ie.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/vzwpix.com.yml", "conf/waw.plspictures.com.yml", "dev_tools/anonymizer.rb", "dev_tools/debug_sprint_hpricot_parsing.rb", "dev_tools/github.rb", "lib/mms2r.rb", "lib/mms2r/media.rb", "lib/mms2r/media/sprint.rb", "lib/tmail_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/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/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.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/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/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/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/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/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_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_vzwpix_com.rb", "test/test_waw_plspictures_com.rb", "vendor/plugins/mms2r/lib/autotest/discover.rb", "vendor/plugins/mms2r/lib/autotest/mms2r.rb"]
|
11
|
+
s.files = [".gitignore", "History.txt", "Manifest.txt", "README.txt", "Rakefile", "conf/1nbox.net.yml", "conf/aliases.yml", "conf/bellsouth.net.yml", "conf/mediamessaging.o2.co.uk.yml", "conf/messaging.nextel.com.yml", "conf/mms.3ireland.ie.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_hpricot_parsing.rb", "dev_tools/github.rb", "lib/mms2r.rb", "lib/mms2r/media.rb", "lib/mms2r/media/sprint.rb", "lib/tmail_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/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/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.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/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/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/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/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/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_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"]
|
12
12
|
s.has_rdoc = true
|
13
13
|
s.homepage = %q{by Mike Mondragon
|
14
14
|
}
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.rubyforge_project = %q{mms2r}
|
18
18
|
s.rubygems_version = %q{1.2.0}
|
19
19
|
s.summary = %q{Extract user media from MMS (and not carrier cruft)}
|
20
|
-
s.test_files = ["test/test_sms_sasktel_com.rb", "test/test_pxt_vodafone_net_nz.rb", "test/test_mms_mycricket_com.rb", "test/test_mobile_indosat_net_id.rb", "test/test_unicel_com.rb", "test/test_pm_sprint_com.rb", "test/test_messaging_sprintpcs_com.rb", "test/test_vzwpix_com.rb", "test/test_mms_alltel_com.rb", "test/test_mms2r_media.rb", "test/test_waw_plspictures_com.rb", "test/test_mms_3ireland_ie.rb", "test/test_msg_telus_com.rb", "test/test_bellsouth_net.rb", "test/test_mms_o2online_de.rb", "test/test_mms_att_net.rb", "test/test_mms_netcom_no.rb", "test/test_rci_rogers_com.rb", "test/test_mms_mtn_co_za.rb", "test/test_tmomail_net.rb", "test/test_mms_myhelio_com.rb", "test/test_mms_three_co_uk.rb", "test/test_mms_dobson_net.rb", "test/test_mms_luxgsm_lu.rb", "test/test_bell_canada.rb", "test/test_github.rb", "test/test_orangemms_net.rb", "test/test_helper.rb", "test/test_mms_mobileiam_ma.rb", "test/test_messaging_nextel_com.rb", "test/test_mediamessaging_o2_co_uk.rb", "test/test_1nbox_net.rb", "test/test_mms_vodacom4me_co_za.rb"]
|
20
|
+
s.test_files = ["test/test_sms_sasktel_com.rb", "test/test_pxt_vodafone_net_nz.rb", "test/test_mms_mycricket_com.rb", "test/test_mobile_indosat_net_id.rb", "test/test_unicel_com.rb", "test/test_pm_sprint_com.rb", "test/test_messaging_sprintpcs_com.rb", "test/test_vzwpix_com.rb", "test/test_mms_alltel_com.rb", "test/test_mms2r_media.rb", "test/test_waw_plspictures_com.rb", "test/test_mms_3ireland_ie.rb", "test/test_msg_telus_com.rb", "test/test_bellsouth_net.rb", "test/test_mms_o2online_de.rb", "test/test_mms_att_net.rb", "test/test_mms_netcom_no.rb", "test/test_rci_rogers_com.rb", "test/test_mms_mtn_co_za.rb", "test/test_tmomail_net.rb", "test/test_mms_myhelio_com.rb", "test/test_mms_three_co_uk.rb", "test/test_mms_dobson_net.rb", "test/test_mms_luxgsm_lu.rb", "test/test_bell_canada.rb", "test/test_github.rb", "test/test_orangemms_net.rb", "test/test_helper.rb", "test/test_vmpix_com.rb", "test/test_mms_mobileiam_ma.rb", "test/test_messaging_nextel_com.rb", "test/test_mediamessaging_o2_co_uk.rb", "test/test_1nbox_net.rb", "test/test_mms_vodacom4me_co_za.rb"]
|
21
21
|
|
22
22
|
if s.respond_to? :specification_version then
|
23
23
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
@@ -0,0 +1,73 @@
|
|
1
|
+
Delivered-To: tommy.tutone@example.com
|
2
|
+
Received: by 10.86.77.15 with SMTP id z15cs516084fga;
|
3
|
+
Wed, 8 Oct 2008 11:34:39 -0700 (PDT)
|
4
|
+
Received: by 10.114.73.14 with SMTP id v14mr9547151waa.163.1223490873307;
|
5
|
+
Wed, 08 Oct 2008 11:34:33 -0700 (PDT)
|
6
|
+
Return-Path: <2068675309@vmpix.com>
|
7
|
+
Received: from vscpsmgw05.vmuprod.local (mail1.vmobl.com [205.239.227.29])
|
8
|
+
by mx.google.com with ESMTP id f20si45293600waf.53.2008.10.08.11.34.32;
|
9
|
+
Wed, 08 Oct 2008 11:34:33 -0700 (PDT)
|
10
|
+
Received-SPF: neutral (google.com: 205.239.227.29 is neither permitted nor denied by best guess record for domain of 2068675309@vmpix.com) client-ip=205.239.227.29;
|
11
|
+
Authentication-Results: mx.google.com; spf=neutral (google.com: 205.239.227.29 is neither permitted nor denied by best guess record for domain of 2068675309@vmpix.com) smtp.mail=2068675309@vmpix.com
|
12
|
+
Received: from vscsmtp.vmobile-corp.com (mail2.vmobl.com [205.239.227.49])
|
13
|
+
by vscpsmgw05.vmuprod.local (Switch-3.3.1/Switch-3.3.1) with ESMTP id m98IYT8I025936
|
14
|
+
for <tommy.tutone@example.com>; Wed, 8 Oct 2008 11:34:29 -0700 (PDT)
|
15
|
+
Received: from vscpmms03.vmobile-corp.com (vscpmms03.vmobile-corp.com [205.239.233.166])
|
16
|
+
by vscsmtp.vmobile-corp.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id m98IYQXO006663
|
17
|
+
for <tommy.tutone@example.com>; Wed, 8 Oct 2008 11:34:26 -0700 (PDT)
|
18
|
+
Received: from opwvsmtp ([127.0.0.1]) by vscpmms03.vmobile-corp.com
|
19
|
+
(InterMail vM.6.01.05.00 201-2131-123-20050610) with SMTP
|
20
|
+
id <20081008183426.KTIA12469.vscpmms03.vmobile-corp.com@opwvsmtp>
|
21
|
+
for <tommy.tutone@example.com>; Wed, 8 Oct 2008 11:34:26 -0700
|
22
|
+
Content-Type: multipart/related; boundary="48ecfd313106qwerty_0000"; type="multipart/alternative"
|
23
|
+
Date: Wed, 08 Oct 2008 18:34:25 GMT
|
24
|
+
From: 2068675309@vmpix.com
|
25
|
+
MIME-Version: 1.0
|
26
|
+
Sender: 2068675309@vmpix.com
|
27
|
+
Subject: =?utf-8?b?SmFuaSBzbGVlcHk=?=
|
28
|
+
To: tommy.tutone@example.com
|
29
|
+
X-Priority: 3
|
30
|
+
Message-Id: <20081008183426.KTIA12469.vscpmms03.vmobile-corp.com@opwvsmtp>
|
31
|
+
X-Spam-Score: 0.00%
|
32
|
+
X-MASF: 0.00%
|
33
|
+
|
34
|
+
This is a multi-part message in MIME format.
|
35
|
+
|
36
|
+
--48ecfd313106qwerty_0000
|
37
|
+
Content-Type: multipart/alternative; boundary="prez_1234567890_ldksjfa"
|
38
|
+
|
39
|
+
|
40
|
+
--prez_1234567890_ldksjfa
|
41
|
+
Content-Type: text/plain; charset="utf-8"
|
42
|
+
|
43
|
+
This is an MMS message.
|
44
|
+
--prez_1234567890_ldksjfa
|
45
|
+
Content-Type: text/html; charset="utf-8"
|
46
|
+
|
47
|
+
<html><body>
|
48
|
+
<center>
|
49
|
+
<p ALIGN=LEFT><font size=2 color="#cc0000" face=Verdana>This message is from
|
50
|
+
a Virgin Mobile user. Enjoy.<br>
|
51
|
+
_____________________________________________________________</font></p><p>
|
52
|
+
<p><br><p>
|
53
|
+
<img src="cid:pic100508_3.jpg" border="0" alt="pic100508_3.jpg"><p>
|
54
|
+
</center>
|
55
|
+
</body></html>
|
56
|
+
|
57
|
+
--prez_1234567890_ldksjfa--
|
58
|
+
|
59
|
+
--48ecfd313106qwerty_0000
|
60
|
+
Content-Disposition: inline; filename="pic100508_3.jpg"
|
61
|
+
Content-ID: <pic100508_3.jpg>
|
62
|
+
Content-Transfer-Encoding: base64
|
63
|
+
Content-Type: image/jpeg; name="pic100508_3.jpg"
|
64
|
+
|
65
|
+
|
66
|
+
/9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD//gAXQ3JlYXRl
|
67
|
+
ZCB3aXRoIFRoZSBHSU1Q/9sAQwAFAwQEBAMFBAQEBQUFBgcMCAcHBwcPCwsJDBEPEhIRDxER
|
68
|
+
ExYcFxMUGhURERghGBodHR8fHxMXIiQiHiQcHh8e/9sAQwEFBQUHBgcOCAgOHhQRFB4eHh4e
|
69
|
+
Hh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4e/8AAEQgAAQAB
|
70
|
+
AwEiAAIRAQMRAf/EABUAAQEAAAAAAAAAAAAAAAAAAAAH/8QAFBABAAAAAAAAAAAAAAAAAAAA
|
71
|
+
AP/EABUBAQEAAAAAAAAAAAAAAAAAAAcI/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQAC
|
72
|
+
EQMRAD8AlgA6WW//2Q==
|
73
|
+
--48ecfd313106qwerty_0000--
|
data/test/test_github.rb
CHANGED
@@ -15,6 +15,7 @@ class TestMmsMyhelioCom < Test::Unit::TestCase
|
|
15
15
|
assert_equal 2, mms.media.size
|
16
16
|
assert_equal 1, mms.media['image/jpeg'].size
|
17
17
|
assert_equal 1, mms.media['text/plain'].size
|
18
|
+
mms.purge
|
18
19
|
end
|
19
20
|
|
20
21
|
def test_only_valid_content_should_be_retained_for_mms_with_text
|
@@ -22,6 +23,7 @@ class TestMmsMyhelioCom < Test::Unit::TestCase
|
|
22
23
|
mms = MMS2R::Media.new(mail)
|
23
24
|
assert_equal 1, mms.media.size
|
24
25
|
assert_equal 1, mms.media['text/plain'].size
|
26
|
+
mms.purge
|
25
27
|
end
|
26
28
|
|
27
29
|
def test_number_should_return_correct_number
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "..", "lib", "mms2r")
|
2
|
+
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
|
+
|
9
|
+
class TestVmpixCom < Test::Unit::TestCase
|
10
|
+
include MMS2R::TestHelper
|
11
|
+
|
12
|
+
def test_only_valid_content_should_be_retained_for_mms_with_image_and_text
|
13
|
+
mail = TMail::Mail.parse(load_mail('virgin-mobile-image-01.mail').join)
|
14
|
+
mms = MMS2R::Media.new(mail)
|
15
|
+
assert_equal 1, mms.media.size
|
16
|
+
assert_equal 1, mms.media['image/jpeg'].size
|
17
|
+
assert_file_size(mms.media['image/jpeg'].first, 337)
|
18
|
+
assert_match(/pic100508_3.jpg$/, mms.media['image/jpeg'].first)
|
19
|
+
mms.purge
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_number_should_return_correct_number
|
23
|
+
mail = TMail::Mail.parse(load_mail('virgin-mobile-image-01.mail').join)
|
24
|
+
mms = MMS2R::Media.new(mail)
|
25
|
+
number = mms.number()
|
26
|
+
assert_equal number, 2068675309.to_s
|
27
|
+
mms.purge
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_subject_should_return_correct_subject
|
31
|
+
mail = TMail::Mail.parse(load_mail('virgin-mobile-image-01.mail').join)
|
32
|
+
mms = MMS2R::Media.new(mail)
|
33
|
+
assert_equal "Jani sleepy", mms.subject
|
34
|
+
mms.purge
|
35
|
+
end
|
36
|
+
|
37
|
+
def test_attachment_should_return_jpeg
|
38
|
+
mail = TMail::Mail.parse(load_mail('virgin-mobile-image-01.mail').join)
|
39
|
+
mms = MMS2R::Media.new(mail)
|
40
|
+
image = mms.default_media
|
41
|
+
assert_equal 337, image.size
|
42
|
+
assert_equal "pic100508_3.jpg", image.original_filename
|
43
|
+
mms.purge
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mms2r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Mondragon
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-10-21 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: 1.7.0
|
44
44
|
version:
|
45
|
-
description: "== DESCRIPTION MMS2R is a library that decodes the parts of an MMS message to disk while stripping out advertising injected by the mobile carriers. MMS messages are multipart email and the carriers often inject branding into these messages. Use MMS2R if you want to get at the real user generated content from a MMS without having to deal with the cruft from the carriers. If MMS2R is not aware of a particular carrier no extra processing is done to the MMS other than decoding and consolidating its media. Contact the author to add additional carriers to be processed by the library. Suggestions and patches appreciated and welcomed! Corpus of carriers currently processed by MMS2R: * 1nbox/Idea: 1nbox.net * 3 Ireland: mms.3ireland.ie * Alltel: mms.alltel.com * AT&T/Cingular/Legacy: mms.att.net, txt.att.net, mmode.com, mms.mycingular.com, cingularme.com * Bell Canada: txt.bell.ca * Bell South / Suncom: bellsouth.net * Cricket Wireless: mms.mycricket.com * Dobson/Cellular One: mms.dobson.net * Helio: mms.myhelio.com * Hutchison 3G UK Ltd: mms.three.co.uk * INDOSAT M2: mobile.indosat.net.id * LUXGSM S.A.: mms.luxgsm.lu * Maroc Telecom / mms.mobileiam.ma * MTM South Africa: mms.mtn.co.za * NetCom (Norway): mms.netcom.no * Nextel: messaging.nextel.com * O2 Germany: mms.o2online.de * O2 UK: mediamessaging.o2.co.uk * Orange & Regional Oranges: orangemms.net, mmsemail.orange.pl, orange.fr * PLSPICTURES.COM mms hosting: waw.plspictures.com * PXT New Zealand: pxt.vodafone.net.nz * Rogers of Canada: rci.rogers.com * SaskTel: sms.sasktel.com * Sprint: pm.sprint.com, messaging.sprintpcs.com * T-Mobile: tmomail.net, mmsreply.t-mobile.co.uk * TELUS Corporation (Canada): mms.telusmobility.com, msg.telus.com * Unicel: unicel.com, info2go.com (note: mobile number is tucked away in a text/plain part for unicel.com) *
|
45
|
+
description: "== DESCRIPTION MMS2R is a library that decodes the parts of an MMS message to disk while stripping out advertising injected by the mobile carriers. MMS messages are multipart email and the carriers often inject branding into these messages. Use MMS2R if you want to get at the real user generated content from a MMS without having to deal with the cruft from the carriers. If MMS2R is not aware of a particular carrier no extra processing is done to the MMS other than decoding and consolidating its media. Contact the author to add additional carriers to be processed by the library. Suggestions and patches appreciated and welcomed! Corpus of carriers currently processed by MMS2R: * 1nbox/Idea: 1nbox.net * 3 Ireland: mms.3ireland.ie * Alltel: mms.alltel.com * AT&T/Cingular/Legacy: mms.att.net, txt.att.net, mmode.com, mms.mycingular.com, cingularme.com * Bell Canada: txt.bell.ca * Bell South / Suncom: bellsouth.net * Cricket Wireless: mms.mycricket.com * Dobson/Cellular One: mms.dobson.net * Helio: mms.myhelio.com * Hutchison 3G UK Ltd: mms.three.co.uk * INDOSAT M2: mobile.indosat.net.id * LUXGSM S.A.: mms.luxgsm.lu * Maroc Telecom / mms.mobileiam.ma * MTM South Africa: mms.mtn.co.za * NetCom (Norway): mms.netcom.no * Nextel: messaging.nextel.com * O2 Germany: mms.o2online.de * O2 UK: mediamessaging.o2.co.uk * Orange & Regional Oranges: orangemms.net, mmsemail.orange.pl, orange.fr * PLSPICTURES.COM mms hosting: waw.plspictures.com * PXT New Zealand: pxt.vodafone.net.nz * Rogers of Canada: rci.rogers.com * SaskTel: sms.sasktel.com * Sprint: pm.sprint.com, messaging.sprintpcs.com * T-Mobile: tmomail.net, mmsreply.t-mobile.co.uk * TELUS Corporation (Canada): mms.telusmobility.com, msg.telus.com * Unicel: unicel.com, info2go.com (note: mobile number is tucked away in a text/plain part for unicel.com) * Verizon: vzwpix.com, vtext.com * Virgin Mobile: vmpix.com * Vodacom: mms.vodacom4me.co.za"
|
46
46
|
email: mikemondragon@gmail.com
|
47
47
|
executables: []
|
48
48
|
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- conf/tmomail.net.yml
|
88
88
|
- conf/txt.bell.ca.yml
|
89
89
|
- conf/unicel.com.yml
|
90
|
+
- conf/vmpix.com.yml
|
90
91
|
- conf/vzwpix.com.yml
|
91
92
|
- conf/waw.plspictures.com.yml
|
92
93
|
- dev_tools/anonymizer.rb
|
@@ -169,6 +170,7 @@ files:
|
|
169
170
|
- test/fixtures/verizon-image-03.mail
|
170
171
|
- test/fixtures/verizon-text-01.mail
|
171
172
|
- test/fixtures/verizon-video-01.mail
|
173
|
+
- test/fixtures/virgin-mobile-image-01.mail
|
172
174
|
- test/fixtures/vodacom4me-co-za-01.mail
|
173
175
|
- test/fixtures/vodacom4me-co-za-02.mail
|
174
176
|
- test/fixtures/vodacom4me-southafrica-mms-01.mail
|
@@ -206,6 +208,7 @@ files:
|
|
206
208
|
- test/test_sms_sasktel_com.rb
|
207
209
|
- test/test_tmomail_net.rb
|
208
210
|
- test/test_unicel_com.rb
|
211
|
+
- test/test_vmpix_com.rb
|
209
212
|
- test/test_vzwpix_com.rb
|
210
213
|
- test/test_waw_plspictures_com.rb
|
211
214
|
- vendor/plugins/mms2r/lib/autotest/discover.rb
|
@@ -268,6 +271,7 @@ test_files:
|
|
268
271
|
- test/test_github.rb
|
269
272
|
- test/test_orangemms_net.rb
|
270
273
|
- test/test_helper.rb
|
274
|
+
- test/test_vmpix_com.rb
|
271
275
|
- test/test_mms_mobileiam_ma.rb
|
272
276
|
- test/test_messaging_nextel_com.rb
|
273
277
|
- test/test_mediamessaging_o2_co_uk.rb
|