mms2r 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ ### 3.0.1 / 2010-03-28 (Lavona Succuboso - leader of "Succuboso Explosion")
2
+
3
+ * 1 minor enhancement
4
+ * support for U.S. Cellular
5
+
1
6
  ### 3.0.0 / 2010-02-24 (General Crozier - Chairman of the Joint Chiefs of Staff)
2
7
 
3
8
  * 1 new feature
data/Manifest.txt CHANGED
@@ -1,6 +1,7 @@
1
1
  .gitignore
2
2
  History.txt
3
3
  Manifest.txt
4
+ README.TMail.txt
4
5
  README.txt
5
6
  Rakefile
6
7
  conf/1nbox.net.yml
@@ -22,6 +23,7 @@ conf/mms.myhelio.com.yml
22
23
  conf/mms.netcom.no.yml
23
24
  conf/mms.o2online.de.yml
24
25
  conf/mms.three.co.uk.yml
26
+ conf/mms.uscc.net.mail
25
27
  conf/mms.vodacom4me.co.za.yml
26
28
  conf/mms2r_media.yml
27
29
  conf/mobile.indosat.net.id.yml
@@ -41,10 +43,10 @@ dev_tools/anonymizer.rb
41
43
  dev_tools/debug_sprint_nokogiri_parsing.rb
42
44
  dev_tools/github.rb
43
45
  init.rb
46
+ lib/mail_ext.rb
44
47
  lib/mms2r.rb
45
48
  lib/mms2r/media.rb
46
49
  lib/mms2r/media/sprint.rb
47
- lib/mail_ext.rb
48
50
  mms2r.gemspec
49
51
  test/fixtures/1nbox-2images-01.mail
50
52
  test/fixtures/1nbox-2images-02.mail
@@ -118,6 +120,7 @@ test/fixtures/tmobile-blackberry.mail
118
120
  test/fixtures/tmobile-image-01.mail
119
121
  test/fixtures/tmobile-image-02.mail
120
122
  test/fixtures/unicel-image-01.mail
123
+ test/fixtures/us-cellular-image-01.mail
121
124
  test/fixtures/verizon-blackberry.mail
122
125
  test/fixtures/verizon-image-01.mail
123
126
  test/fixtures/verizon-image-02.mail
@@ -155,6 +158,7 @@ test/test_mms_myhelio_com.rb
155
158
  test/test_mms_netcom_no.rb
156
159
  test/test_mms_o2online_de.rb
157
160
  test/test_mms_three_co_uk.rb
161
+ test/test_mms_uscc_net.rb
158
162
  test/test_mms_vodacom4me_co_za.rb
159
163
  test/test_mobile_indosat_net_id.rb
160
164
  test/test_msg_telus_com.rb
data/README.TMail.txt ADDED
@@ -0,0 +1,11 @@
1
+ 2/23/2010
2
+ Version 2.4.1 of MMS2R is the last TMail based MMS2R. TMail
3
+ http://tmail.rubyforge.org/ has been deemed to be a legacy gem and the most
4
+ RFC compliant Ruby gem for everything email related is now Mail
5
+ http://github.com/mikel/mail . I may back-port configuration settings to the
6
+ old MMS2R code base which will live in the legacy_tmail_branch branch and
7
+ publish point releases for 2.4.X. But I may not so don't count on it. Version
8
+ 3.0.0 of MMS2R will be the master branch going forward and will be dependent on
9
+ the Mail gem.
10
+ Thank you
11
+ Mike
data/README.txt CHANGED
@@ -52,6 +52,7 @@ Corpus of carriers currently processed by MMS2R:
52
52
  * Sprint: pm.sprint.com, messaging.sprintpcs.com, sprintpcs.com
53
53
  * T-Mobile: tmomail.net, mmsreply.t-mobile.co.uk, tmo.blackberry.net
54
54
  * TELUS Corporation (Canada): mms.telusmobility.com, msg.telus.com
55
+ * U.S. Cellular: mms.uscc.net
55
56
  * UAE MMS: mms.ae
56
57
  * Unicel: unicel.com, info2go.com
57
58
  (note: mobile number is tucked away in a text/plain part for unicel.com)
@@ -0,0 +1,8 @@
1
+ ---
2
+ ignore:
3
+ text/plain:
4
+ - /\AThank you for using Picture and Video Messaging by U\.S\. Cellular.*/m
5
+ transform:
6
+ text/plain:
7
+ - - /\A(.+?)\s+Thank you for using Picture and Video Messaging by U\.S\. Cellular.*/m
8
+ - "\1"
data/conf/mms2r_media.yml CHANGED
@@ -45,4 +45,4 @@ device_types:
45
45
  :blackberry: !ruby/regexp /BlackBerry/i
46
46
  :dash: !ruby/regexp /T-Mobile Dash/i
47
47
  :droid: !ruby/regexp /Droid/i
48
- :htc: !ruby/regexp /Eris|HERO200/i
48
+ :htc: !ruby/regexp /HTC|Eris|HERO200/i
data/lib/mms2r.rb CHANGED
@@ -39,7 +39,7 @@ module MMS2R
39
39
  ##
40
40
  # MMS2R library version
41
41
 
42
- VERSION = '3.0.0'
42
+ VERSION = '3.0.1'
43
43
 
44
44
  end
45
45
 
data/mms2r.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
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{2010-02-26}
9
+ s.date = %q{2010-03-28}
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,8 +21,8 @@ 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", "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"]
24
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.TMail.txt", "README.txt"]
25
+ s.files = ["History.txt", "Manifest.txt", "README.TMail.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.uscc.net.mail", "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/mail_ext.rb", "lib/mms2r.rb", "lib/mms2r/media.rb", "lib/mms2r/media/sprint.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/us-cellular-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_uscc_net.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"]
@@ -30,7 +30,7 @@ parts the mail is comprised of.}
30
30
  s.rubyforge_project = %q{mms2r}
31
31
  s.rubygems_version = %q{1.3.6}
32
32
  s.summary = %q{Extract user media from MMS (and not carrier cruft)}
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"]
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_mms_uscc_net.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
 
35
35
  if s.respond_to? :specification_version then
36
36
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
@@ -0,0 +1,55 @@
1
+ Return-Path: <5418675309@mms.uscc.net>
2
+ Delivered-To: unknown
3
+ Received: from imap.gmail.com (74.125.95.109) by ntk with IMAP4-SSL; 16 Mar
4
+ 2010 02:25:04 -0000
5
+ Delivered-To: joe@example.com
6
+ Received: by 10.231.12.76 with SMTP id w12cs198243ibw;
7
+ Mon, 15 Mar 2010 19:23:32 -0700 (PDT)
8
+ Received: by 10.87.59.28 with SMTP id m28mr8974373fgk.11.1268706211480;
9
+ Mon, 15 Mar 2010 19:23:31 -0700 (PDT)
10
+ Received: from a.mx.uscc.net ([166.182.112.1])
11
+ by mx.google.com with ESMTP id d8si1073115fga.14.2010.03.15.19.23.28;
12
+ Mon, 15 Mar 2010 19:23:30 -0700 (PDT)
13
+ Received-SPF: pass (google.com: domain of 5418675309@mms.uscc.net designates 166.182.112.1 as permitted sender) client-ip=166.182.112.1;
14
+ Authentication-Results: mx.google.com; spf=pass (google.com: domain of 5418675309@mms.uscc.net designates 166.182.112.1 as permitted sender) smtp.mail=5418675309@mms.uscc.net
15
+ Received: from unknown (HELO mmscknxv1.uscc.net) ([166.182.127.115])
16
+ by tnknox01-csnmx-01.uscc.com with SMTP; 16 Mar 2010 02:23:24 +0000
17
+ X-Priority: 3
18
+ Importance: Normal
19
+ From: 5418675309@mms.uscc.net
20
+ To: joe@example.com
21
+ Subject:
22
+ Message-ID: <212135466205024569@-212135466205024570>
23
+ Date: Mon, 16 Mar 2010 02:23:25 +0000
24
+ MIME-Version: 1.0
25
+ Content-Type: multipart/mixed;
26
+ type="application/smil";
27
+ boundary="__CONTENT_64564_PART_BOUNDARY__33243242__"
28
+
29
+ --__CONTENT_64564_PART_BOUNDARY__33243242__
30
+ Content-Type: text/plain;
31
+ charset=utf-8;
32
+ name="TEXT95952701533.txt"
33
+ Content-ID: <TEXT95952701533.txt>
34
+ Content-Location: TEXT95952701533.txt
35
+
36
+ This is what i do at work most the day
37
+
38
+ Thank you for using Picture and Video Messaging by U.S. Cellular. See www.uscellular.com for info.
39
+
40
+ --__CONTENT_64564_PART_BOUNDARY__33243242__
41
+ Content-Type: image/jpeg;
42
+ name="0315001513.jpg"
43
+ Content-ID: <0315001513.jpg>
44
+ Content-Location: 0315001513.jpg
45
+ Content-Transfer-Encoding: base64
46
+
47
+ /9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD//gAXQ3JlYXRl
48
+ ZCB3aXRoIFRoZSBHSU1Q/9sAQwAFAwQEBAMFBAQEBQUFBgcMCAcHBwcPCwsJDBEPEhIRDxER
49
+ ExYcFxMUGhURERghGBodHR8fHxMXIiQiHiQcHh8e/9sAQwEFBQUHBgcOCAgOHhQRFB4eHh4e
50
+ Hh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4e/8AAEQgAAQAB
51
+ AwEiAAIRAQMRAf/EABUAAQEAAAAAAAAAAAAAAAAAAAAH/8QAFBABAAAAAAAAAAAAAAAAAAAA
52
+ AP/EABUBAQEAAAAAAAAAAAAAAAAAAAcI/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQAC
53
+ EQMRAD8AlgA6WW//2Q==
54
+ --__CONTENT_64564_PART_BOUNDARY__33243242__--
55
+
@@ -0,0 +1,33 @@
1
+ require File.join(File.dirname(__FILE__), "test_helper")
2
+
3
+ class TestMmsUsccNet < Test::Unit::TestCase
4
+ include MMS2R::TestHelper
5
+
6
+ def test_mms_uscc_net
7
+ # mms.uscc.net service
8
+ mail = mail('us-cellular-image-01.mail')
9
+ mms = MMS2R::Media.new(mail)
10
+
11
+ assert_equal "5418675309", mms.number
12
+ assert_equal "mms.uscc.net", mms.carrier
13
+ assert_equal "", mms.subject
14
+ assert_equal 2, mms.media.size
15
+ assert_nil mms.media['text/html']
16
+ assert_nil mms.media['image/gif']
17
+
18
+ assert_not_nil mms.media['image/jpeg']
19
+ assert_equal 1, mms.media['image/jpeg'].size
20
+ assert_match(/0315001513.jpg$/, mms.media['image/jpeg'].first)
21
+ assert_file_size(mms.media['image/jpeg'].first, 337)
22
+
23
+ assert_not_nil mms.media['text/plain']
24
+ file = mms.media['text/plain'][0]
25
+ assert_not_nil file
26
+ assert_equal true, File::exist?(file)
27
+ text = IO.readlines("#{file}").join
28
+ assert_match(/This is what i do at work most the day/, text)
29
+
30
+ mms.purge
31
+ end
32
+
33
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 0
8
- - 0
9
- version: 3.0.0
8
+ - 1
9
+ version: 3.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mike Mondragon
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-02-26 00:00:00 -08:00
17
+ date: 2010-03-28 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -124,11 +124,13 @@ extensions: []
124
124
  extra_rdoc_files:
125
125
  - History.txt
126
126
  - Manifest.txt
127
+ - README.TMail.txt
127
128
  - README.txt
128
129
  files:
129
130
  - .gitignore
130
131
  - History.txt
131
132
  - Manifest.txt
133
+ - README.TMail.txt
132
134
  - README.txt
133
135
  - Rakefile
134
136
  - conf/1nbox.net.yml
@@ -150,6 +152,7 @@ files:
150
152
  - conf/mms.netcom.no.yml
151
153
  - conf/mms.o2online.de.yml
152
154
  - conf/mms.three.co.uk.yml
155
+ - conf/mms.uscc.net.mail
153
156
  - conf/mms.vodacom4me.co.za.yml
154
157
  - conf/mms2r_media.yml
155
158
  - conf/mobile.indosat.net.id.yml
@@ -169,10 +172,10 @@ files:
169
172
  - dev_tools/debug_sprint_nokogiri_parsing.rb
170
173
  - dev_tools/github.rb
171
174
  - init.rb
175
+ - lib/mail_ext.rb
172
176
  - lib/mms2r.rb
173
177
  - lib/mms2r/media.rb
174
178
  - lib/mms2r/media/sprint.rb
175
- - lib/mail_ext.rb
176
179
  - mms2r.gemspec
177
180
  - test/fixtures/1nbox-2images-01.mail
178
181
  - test/fixtures/1nbox-2images-02.mail
@@ -246,6 +249,7 @@ files:
246
249
  - test/fixtures/tmobile-image-01.mail
247
250
  - test/fixtures/tmobile-image-02.mail
248
251
  - test/fixtures/unicel-image-01.mail
252
+ - test/fixtures/us-cellular-image-01.mail
249
253
  - test/fixtures/verizon-blackberry.mail
250
254
  - test/fixtures/verizon-image-01.mail
251
255
  - test/fixtures/verizon-image-02.mail
@@ -283,6 +287,7 @@ files:
283
287
  - test/test_mms_netcom_no.rb
284
288
  - test/test_mms_o2online_de.rb
285
289
  - test/test_mms_three_co_uk.rb
290
+ - test/test_mms_uscc_net.rb
286
291
  - test/test_mms_vodacom4me_co_za.rb
287
292
  - test/test_mobile_indosat_net_id.rb
288
293
  - test/test_msg_telus_com.rb
@@ -349,6 +354,7 @@ test_files:
349
354
  - test/test_vmpix_com.rb
350
355
  - test/test_github.rb
351
356
  - test/test_vzwpix_com.rb
357
+ - test/test_mms_uscc_net.rb
352
358
  - test/test_bellsouth_net.rb
353
359
  - test/test_unicel_com.rb
354
360
  - test/test_waw_plspictures_com.rb