Add attachments sent via email to forum post
jmcclelland - April 3, 2009 - 17:28
| Project: | Listhandler |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Currently, listhandler works like a charm by send via email (as link or attachment) attachments made to drupal web posts
However, the opposite does not happen. When an email is sent with an attachment, the attachment is not posted to the forum.
It would be useful if a admin could specify the attachment content types that should be attached to forum nodes. And, perhaps a comment email with an attachment would simply save the attachment to the parent forum node.
Is this functionality that would be welcome?

#1
I'm attaching a patch that provides this functionality. It is disabled by default and can be enabled in the listhandler config screen.
If the post is a node, the attachment is made to the post itself. If it's a comment, it attaches to the parent node.
Currently, the allowed mimetimes that can be posted are hard coded (ms excel, doc, openoffice all files, pdf, wp, etc).
TO DO:
#2
When i coded the forum attachment functionality, i omitted the from-email attachment mechanism because it is provided by the http://drupal.org/project/mailsave module.
By itself it does not permit configuration granularity because it uses the same rules as upload module, but i suppose those rules can be customized by listhandler via the hook_mailsave function.