Closed (cannot reproduce)
Project:
Mailhandler
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2008 at 09:53 UTC
Updated:
9 Jul 2011 at 13:46 UTC
Just got mailhandler recieving e-mails and converting into nodes, however all the node bodies are empty. This is the same whether creating casetracker cases or 'pages'.
I'm still in the early stages of troubleshooting, but will update as soon I can track it down to anything specific.
Comments
Comment #1
catchOK, so as far as I can see, the e-mail body isn't getting processed at all.
Sending an e-mail with:
Subject: A subjectResults in a node with a title, but no type or body.
Commands inside "default commands" work fine - it's everything in the e-mail body that's simply ignored.
Viewing the node itself, I get:
call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'blog_node_form' was given in includes/form.inc on line 218.(blog module isn't installed).
Comment #2
catchOn this system at least, $origbody is empty in mailhandler_retrieve. There's quite a lot going on in mailhandler_get_part() so i'm not sure where to go from here..
Comment #3
moshe weitzman commentedSomeone posted that they had better luck after disabling casetracker.
Comment #4
catchWithout casetracker, I still get the same issue. Also this code runs before any modules get to play with it afaict.
Got a little further:
mail_handler_get_part() isn't returning anything. This is whether I default to html or plain text e-mail in mailhandler settings or my client, and I've tested sending it from a couple of different clients too.
As far as I can tell the issue is with this line:
$data = mailhandler_get_part($stream, $msg_number, $mime_type, $sub_structure, $prefix . ($index + 1));
data is is always empty here.
mail_handler_get_parts() works as expected, and I can hack a body into my nodes by doing this in mailhandler_retrieve():
Ugly as hell of course.
Will keep looking into it, sorry for the multiple bumps.
Comment #5
cor3huis commentedComment #6
DropInTheOcean commentedHi - I have a similar issue. Using drupal 7, E-mails are imported (If there are 5 emails in the mailbox, I get 5 new nodes), and the username corresponding to the sender is also assigned correctly. However the subject line and body are blank. Something like #4 looks useful. I only have Pop3 access (on a shared host without iMap extension unfortunately, but I got the basics working with the patch http://drupal.org/node/1042112). I get a "No Data!!" error in Drupal logs. I think that I must be nearly close if I can access the emails, username. Any suggestions for other debugging/tests?