Download & Extend

Add attachments sent via email to forum post

Project:Listhandler
Version:master
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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?

Comments

#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:

  • Use configurable mimetypes
  • Upload to comment if comment uploads are allowed
AttachmentSize
listhandler.module.mail2forum-attachments.patch 3.59 KB

#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.

#3

Status:active» needs review

Thanks for the patch, really appreciated. Changed the status to needs review even if v5.x is not supported anymore. The feature you have created a patc for could however prove usefull for a v6.x 1.x version of listhandler also therefore a review would make make it trickle through higher version.

#4

Version:5.x-1.1» master