Closed (fixed)
Project:
Mailhandler
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2011 at 14:12 UTC
Updated:
26 Jan 2011 at 05:20 UTC
This issue was first reported here http://drupal.org/node/927654#comment-3610084 and the problems seems to be that the authenticate() and command() classes will not be properly loaded during a batch import. The issue appears similar in type to http://drupal.org/node/887846 where a __sleep and __wakeup magic method were needed in order to properly save and reload classes on the object.
Comments
Comment #1
Ian Ward commentedThis was actually the mailbox object not made available during batch processing, lost between sessions. Turns out the mailbox object is not really needed, but rather specific variables so I fixed to no longer pass in the whole mailbox object in MailhandlerParser, which then was passed to MailhandlerNodeProcessor::setTargetElement, and later ::authenticate and ::commands. Commit is http://drupal.org/cvs?commit=479678 which also reorganizes fetcher to fetch and parser to parse, and a small fix to make file attachments not break batch import.