Re: bug in Mail-Box-2.053 in Mail::Box->addMessage

Mark Overmeer <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* Erik A Johnson ([email protected]) [040107 20:16]:
> In the addMessage method of Mail::Box in Mail-Box-2.053, I 
> occasionally get errors at line 228
>     unless($message->head->isDelayed)
> 
> Should that line use $coerced instead of $message, i.e.,
>     unless($coerced->head->isDelayed)
> 
> I think similar changes through the rest of that method are also needed.
> Is this correct?  Thanks.

You are right, although I do wonder why your $coerced object is not
the same object as the original $message object.  All folder types
simply rebless the message object, you do you use Mail::Internet
or MIME::Entity's?

A patch will be included in the next release.
-- 
Thanks,
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.