Attached is a patch to add mailhandler and mailcomment modules to commons.
Some quick configuration instructions:
1. Enable "Mailhandler" and "Mail Comment" modules and clear the cache
2. Go to admin/content/mailhandler and add a mailbox. IMPORTANT: select "MailComment Default" for "Message authentication method".
3. Go to admin/messaging/mailcomment. Select the mailbox you've just created in "Mail Comment-enabled mailboxes". Select the content types to enable. Leave default settings everywhere else.
Pease refer to the full documentation here: http://drupal.org/node/542118
Tests:
4. In admin/messaging/notifications check "Immediate sending" and "Notify poster of own posts"
5. Create one of the content types you've selected in #3. Enable at least subscriptions (post by author for example).
6. If it works you should receive and email containing: "((( Reply ABOVE this LINE to POST a COMMENT )))"
7. Reply to this message. Go to admin/content/mailhandler and press retrieve. A comment should be added.
Comment | File | Size | Author |
---|---|---|---|
#1 | reply_email_to_comment-2.patch | 599 bytes | laurentc |
reply_to_comment_in_email-1.patch | 978 bytes | laurentc | |
Mailcomment-configuration.png | 158.29 KB | laurentc | |
Mailhandler-configuration.png | 173.8 KB | laurentc |
Comments
Comment #1
laurentc CreditAttribution: laurentc commentedAttached is a revised patch using stable modules
Comment #2
david.moore.ipg CreditAttribution: david.moore.ipg commentedTo me, this is a critical feature for commons. I would be happy to help test.
It looks like mailhandler 2.0 has a RC and might potentially be better for creating an email based workflow (http://drupal.org/node/1045918)
I had been looking at http://drupal.org/project/og_mailinglist as a solution, but it is heavy (uses PHPMailer) and requires direct access to your MTA, so maybe not appropriate if commons is to work in a shared hosting environment.
Discussions and polls might need some different handling.
I also wonder how Mollom would react to this stuff.
what's next?
Comment #3
ezra-g CreditAttribution: ezra-g commentedGlad to hear this is a valuable feature for you!
We chose Mailcomment/Mailhandler 1.x because these are compatible with Notifications 2.x, rather than 4.x, per the plan to stick with the 2.x branch of Notifications in OG 6.x-2.x for the time being.
Comment #4
laurentc CreditAttribution: laurentc commentedThanks for the review. It's committed: http://drupalcode.org/project/commons.git/commitdiff/8d0b608
Comment #6
laurentc CreditAttribution: laurentc commentedFor gmail, sometimes imap.gmail.com stops working. In this case try gmail-imap.l.google.com.
Comment #7
t-readyroc CreditAttribution: t-readyroc commentedEnvironment (Commons 2.6):
Mailhandler 6.x-2.4
Messaging 6.x-2.4
Notifications 6.x-2.3
Mail Comment 6.x-2.2
Token 6.x-1.18
The Mail Comment full documentation says not to enable Notifications Lite, but it's enabled by default, because it's required by Commons Notifications as well as OG Notifications.
There are several sections mentioned in both the documentation & this thread that aren't visible to me. The "Message Authentication Method" section is not visible at all in the Mailhandler mailbox configuration page. Also, the "Passthru to mailhandler module" setting isn't visible in the Mail Comment configuration. Finally, the "Mailhandler Inbox" section isn't visible; there's just a text field labeled "Reply-to address."
Settings are correct for the mailbox config; I get the "Mailhandler was able to connect to the mailbox" message upon clicking Test connection each time. I am also recieving correctly formatted emails for nodes that the test user is subscribed to. The issue is that replies to these emails do not get passed on to the site; they simply sit in the inbox of the Mailhandler mailbox.
I'd appreciate any help you could give me.
Comment #8
jsibley CreditAttribution: jsibley commented@t-readyroc, on the off chance that you are having a similar problem to the one I had with og_mailinglist, if you have site security enabled, make sure that you have the appropriate page listed under publicly accessible pages. Mailhandler may work differently, but this was the key to getting inbound emails to work for me.
Comment #9
t-readyroc CreditAttribution: t-readyroc commented@jsibley - I eventually figured out that using MailHandler/MailComment 2.x requires following an entirely different set of instructions from the 1.x version - not intuitive since Commons ships with 1.x & accompanying defaults.
TL;DR: got it working following the correct instructions.