When mailhandler 6.x-2.4 (w/ feeds 6.x-1.0-beta11) grabs my mailbox and there are multiple messages, every imported node but the final message - final being newest - are missing data. Specifics:

Mappings:
subject -> Title (missing)
User ID -> User ID (present)
attachments -> a CCK filefield (missing)
Body (HTML) -> Body (present)
fromaddress -> a CCK text field (missing)
message_id -> a CCK text field (missing)

Comments

danepowell’s picture

Priority: Normal » Major

Hrm, that's not good. I'll have to do some investigation.

obrienmd’s picture

I've only tested on two sites, both with very similar configs. Have now tested on newest stable and -dev of both mailhandler and feeds. If I have time tomorrow I'll try to dump some data in flight and see what I can find... But no guarantees :)

pvanerk’s picture

Hi Dane,

I have got exactly the same the same problem (also with mailhandler 6.x-2.4 and feeds 6.x-1.0-beta11). I have tested it on multiple sites and it happens on every one of them (both IMAP and POP3 accounts).

When I installl mailhandler 6.x-2.2 and feeds 6.x-1.0-beta11 the mails are imported correctly (I didn't test it using mailhandler 6.x-2.3). When you need some more info or want me to test a new version, please let me know.

With regards,

Paul

danepowell’s picture

Just to confirm, I can reproduce this now- messages after the first have body and user ID but no other fields. Still investigating cause.

danepowell’s picture

Title: On multi-mail import, all e-mails but most recent missing data » Missing data when importing multiple messages
Status: Active » Fixed

This has been fixed in 6.x-2.x (not present in 7.x-2.x):
http://drupalcode.org/project/mailhandler.git/commit/60427f8

I also added a test case to make sure multi-message imports don't break like this in the future:
http://drupalcode.org/project/mailhandler.git/commit/1e83d93
http://drupalcode.org/project/mailhandler.git/commit/df698a8

obrienmd’s picture

Dane, this works great. Thanks!

pvanerk’s picture

Also works for me. Thanks!

Status: Fixed » Closed (fixed)

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