I really don't understand what I am missing when I try to configure and test mailhandler. I have a couple issues. I have oa_mailhander installed and all the dependencies. I have the I created and tested my mailbox access using http://.../admin/structure/mailhandler. In http://.../admin/structure/feeds, I have "Discussion reply email importer" configured. I have it attached to "Discussion post."
My first issue is that I do not understand why I do not see the mail being checked in my mail server logs. I have cron setup, and have my basic settings configured for every 15 minutes.
My crontab entry:
*/5 * * * * www-data wget -O - -q -t 1 http://.../cron.php?cron_key=1apVHYFuDhCYFlISVSuYs--RiNGDiO6ArCGiAAGJaEg
My other issue is if I have it set to post upon submission, why don't I see anything happen in my logs? Nothing seems to be happening.
I would also like some clarification on exactly what "Require contextual node ID" means. Do I have to put something like "contextual node ID 4" in the subject and it will post everything to that node id? I tried that but it did not help me.
I have attached my exported settings from the Feed importers.
Thank you
| Comment | File | Size | Author |
|---|---|---|---|
| basicsettings.txt | 2.09 KB | jgz | |
| nodesettings.txt | 2.09 KB | jgz | |
| oaIMAPsettings.txt | 2.09 KB | jgz |
Comments
Comment #1
mpotter commentedThe "Require contextual node ID" just tells OA2 to add the node ID to the Subject of the email so it can determine what thread to post the reply. Currently there is no security around this so it needs improvement. But you should definitely enable this checkbox or else it won't bring in any messages. OA2 is checking the remote IMAP server messages for a subject with [#xxx] in it.
If your mail server is not being queried at all, then there is still something wrong with your email server settings in the Mailhandler settings. Make sure you have the PHP_IMAP extension enabled and working on your web server. That is what Mailhandler uses to check the IMAP email box.
Finally, also go to admin/config/system/site-information and configure the Mailbox E-mail address. That is the address actually placed in the Reply-to header for the outgoing emails and should match the server set up in Mailhandler. Unfortunately it's impossible to determine the reply-to email address directly from the Mailhandler server information, so we had to add this additional configuration field. We placed it in the Site Admin settings next to the site email address since that's the page most admins will have access to change (rather than the low-level Mailhandler server config).
Comment #2
jgz commentedOk. I have done some more work with this, and think I am getting closer. I am putting something like "#7: offending "submit" link" in the subject of my messages. If I change the number to a node that does not exist, I get "There are no new nodes. " If I use a node number that does exist and I thought I had setup at mailhandler source, I get "User user1 is not authorized to create content type oa_discussion_post." I have looked and tried different things, but cannot seem to locate where I need to grant permission to the node.
Comment #3
mpotter commentedThe normal format of the subject line is:
[space-name] Title of topic [#nid]
So you might want to try using that (specifically the #nid needs to be within square brackets). The system is geared for accepting replies to outgoing notification emails, so trying to generate a direct message is going to be tricky. I'd recommend first trying to reply to existing notifications and get that working first.
Other than that is should be doing a standard Feeds import. It's using "From email authentication" which means the From email address needs to match the email address of a user on your Drupal site, and that user needs to have permission to create content in the space/section of the matching discussion post node.
Comment #4
jgz commentedHow can I get the Title of the post to only have "Title of topic" instead of "[space-name] Title of topic [#nid]"? This seems to work, but it is ugly to look at when all the titles have [space-name] and [#nid] in them.
Thank you
Comment #5
mpotter commentedIf you go to Admin/Structure/MessageTypes you will see each message type. For the OA Update message you can Edit it and then you'll see the tokenized template fields for the email subject, body etc. You can remove the space-name if you wish, although in the past users have complained if they are a member of multiple projects (spaces) that the email doesn't tell them the name of the project.
Also, you can't get rid of the [#nid]. That is needed for email replies to work and is added regardless of the message token settings.
Comment #6
jgz commentedIs there any way I can add a new source, and just create a mapping to the title in Node processor mapping settings? I was thinking maybe a label in the body of the message, but I don't see anyway to do that or even add a different source than those listed in the drop downs. For example:
tag: Here is the title.
Thank you
Comment #7
mpotter commented