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".
mailhandler-configuration

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.
mailcomment-configuration

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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

laurentc’s picture

FileSize
599 bytes

Attached is a revised patch using stable modules

david.moore.ipg’s picture

To 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?

ezra-g’s picture

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

laurentc’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

laurentc’s picture

For gmail, sometimes imap.gmail.com stops working. In this case try gmail-imap.l.google.com.

t-readyroc’s picture

Version: » 6.x-2.6
Category: feature » support

Environment (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.

jsibley’s picture

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

t-readyroc’s picture

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