
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
= mms2r
by Mike Mondragon http://mms2r.rubyforge.org/ http://rubyforge.org/tracker/?group_id=3065 http://github.com/monde/mms2r/tree/master http://peepcode.com/products/mms2r-pdf
== 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:
== FEATURES
== BOOKS
MMS2R, Making email useful http://peepcode.com/products/mms2r-pdf
== SYNOPSIS
require 'rubygems' require 'mms2r'
require 'tmail' require 'fileutils'
mail = TMail::Mail.parse(IO.readlines("sample-MMS.file").join) mms = MMS2R::Media.new(mail)
puts "MMS has default carrier subject" if mms.subject.empty?
puts "MMS was from phone #{mms.number}"
file = mms.default_media puts "MMS had a media: #{file.inspect}" unless file.nil?
file = mms.default_text puts "MMS had some text: #{file.inspect}" unless file.nil?
mms.media['image/jpeg'].each {|f| puts "#{f}"} mms.media['text/plain'].each {|f| puts "#{f}"}
text = IO.readlines(mms.media['text/plain'].first).join puts text
FileUtils.cp mms.media['image/jpeg'].first, '/some/where/useful', :verbose => true
puts "does the MMS have quicktime video? #{!mms.media['video/quicktime'].nil?}"
mms.process do |media_type, files| # assumes a Clip model that is an AttachmentFu Clip.create(:uploaded_data => files.first, :title => "From phone") if media_type =~ /video/ end
picture = Picture.new picture.title = mms.subject picture.uploaded_data = mms.default_media picture.save!
#remove all the media that was put to temporary disk mms.purge
== REQUIREMENTS
== INSTALL
conventional
github
== SOURCE
git clone git://github.com/monde/mms2r.git svn co svn://rubyforge.org/var/svn/mms2r/trunk mms2r
== CONTRIBUTE
If you contribute a patch that is accepted then you'll get developer rights for the project on RubyForge. Please ensure your work includes 100% test converage. The library is ZenTest autotest discovery enabled so running autotest in the root of the project is very helpful during development.
== AUTHORS
Copyright (c) 2007-2008 by Mike Mondragon (blog[http://blog.mondragon.cc/])
MMS2R's Flickr page[http://www.flickr.com/photos/8627919@N05/]
== CONTRIBUTORS
== LICENSE
(The MIT License)
Copyright (c) 2007, 2008 Mike Mondragon (mikemondragon@gmail.com). All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Unknown package
We found that brendanlim-mms2r demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.