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
Comment #1
kyle_mathews commentedI 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.
Comment #2
kyle_mathews commentedquick title change for future reference.
Comment #3
tobias commentedHi 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
Comment #4
tobias commentedWhoops - sorry, accidentally renamed the issue! :) Back again.
Comment #5
kyle_mathews commentedYou 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.
Comment #6
tobias commentedHi 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
Comment #7
kyle_mathews commentedNot 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.