Mimemail would take over the work of the PHP libraries Mailparse and mimeDecode. They currently convert raw emails into PHP arrays which OGM then manipulates. I've looked briefly over the Mimemail code and it looks like it'd work. Further experimentation is still needed.

The advantage of using Mimemail is it'd be simpler to install OGM. Making this switch isn't a very high priority right now however.

Comments

kyle_mathews’s picture

Status: Active » Fixed

I ended up not using Mimemail and instead just copying their technique of POSTing emails to OGM. I didn't use Mimemail as a) I already had a lot of working code w/ mimeDecode and b) when I attempted to decode 3 test emails using mimemail, 2 of the 3 mimemail couldn't decode. Didn't inspire much confidence...

Anyways, Drush is now not a requirement! And this new setup is working pretty well. I'll be rolling a new alpha perhaps tomorrow or Monday but for now, look at the code on github. This was the major beta-blocker in my mind so assuming there's no bugs found and we can get a few more MTAs working, I'll roll a beta next week.

kyle_mathews’s picture

Title: Integrate OGM with Mimemail » Replace the current Drush system for handling incoming mail with a mimemail-inspired POSTing system.

quick title change for future reference.

tobias’s picture

Title: Replace the current Drush system for handling incoming mail with a mimemail-inspired POSTing system. » which URL to POST to?

Hi Kyle -

Glad to see this progress - great news! :)

I am having a poke around and trying to get this working on my qmail system, but not clear on how this works exactly. What is the URL to POST to?

Thanks,

Tobias

tobias’s picture

Title: which URL to POST to? » Replace the current Drush system for handling incoming mail with a mimemail-inspired POSTing system

Whoops - sorry, accidentally renamed the issue! :) Back again.

kyle_mathews’s picture

You post to yoursite.com/og_mailinglist. Look at how the og_mailinglist_exim4_transport.php file works. You'll need to copy what it does for other MTAs.

tobias’s picture

Hi Kyle,

Thanks - I thought so but wanted to rule out that issue. I am now getting this drupal error when I post, even when replying to a post from the site - not sure where to proceed from here. I've got the same "validation string" in the site_info.php and ogm admin settings.

Authentication error for POST e-mail. Check that you've set the validation string in /admin/settings/og_mailinglist and in site_info.php

Cheers,

Tobias

kyle_mathews’s picture

Not sure. First thing I'd double check is that you saved the validation string in the ogm_settings. What comes up there isn't saved automatically until you click "save settings" Which, now that I think about it, is probably the wrong way to do things. I'll file a bug report for myself.

The second thing to check is to go to the og_mailinglist_post() function in og_mailinglist_transport.inc and send to watchdog what are the actual values of the $token and $hash and figure out from there why things aren't working.

Status: Fixed » Closed (fixed)
Issue tags: -ogm-1.0-nice-to-have

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