Mailhandler and MIME Router
The combination of Mailhandler and MIME Router allows you to set up your site to take posts via email, and to route attachments into filefields.
MIME Router integrates cleanly with Filefield, Imagefield and SWF Tools. File paths can be set via the Token module. To use MIME Router, just upload it into your modules directory and enable it; the module uses the allowed filetypes in Filefield's user interface. Aside from adding fields to your content types, no additional config is needed to use MIME Router.
Using this setup, images, video, and audio can be sent to your site via email. This also supports posting to the site from handheld devices that support emailing files. So, if you have ever been in a situation where you used a handheld device to take a picture, video, or audio recording, and wanted to post it to your own (or your organization's) web presence, this functionality is for you. This functionality can also be used to support eyewitness information on local news sites, real-time reporting for school newspapers, and other situations where you want to get fresh information live quickly.
The MIME Router module was written and released as part of our work for the Knight Drupal Initiative.
Notes
Mailhandler settings
- Defaults: admin/settings/mailhandler
- Adding mailboxes: admin/content/mailhandler
MIME Router config
- Nothing!: it uses CCK/Filefield admin settings. Nothing to see here.
Other modules used in the screencast
- CCK
- Filefield
- Lightbox2
- Imagefield
- Imagecache and Image API
- Token (used to create dynamic paths for uploaded files)
- SWF Tools
- Mimedetect


Comments
Great work
Submitted on June 24th, 2010 by Kyle MathewsI browsed through the code and it looks pretty good. Supporting attaching files from emails is a task that's been on the back burner for quite awhile for OG Mailinglist and I think the algorithm you've developed would work perfectly.
Have you looked at supporting the core upload module as well?
Not core upload at this point
Submitted on June 24th, 2010 by BillWe don't have any plans at this moment to support core upload - but, we'd probably be open to patches that added that in.
Our use case is filefield specific, and we haven't used core upload for anything in a while.
Although, I could imagine a use case that leveraged comment_upload where it could be useful...
want OGM to support all three
Submitted on June 24th, 2010 by Kyle MathewsI'm planning on supporting all three in OGM, Filefield, comment_upload, and the core upload module, but defaulting to FileField if available.
Post new comment