Re: Bug under Win32

Mark Overmeer <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* Martin Raspe ([email protected]) [040109 16:05]:
> I am trying Mail::Box (v. 2.053, Win2000, Perl 5.6.1) and it seems it 
> has s a bug:
> 
> When a folder is opened and closed again (without modifications, but 
> rewriting it by "force"), the folder gets corrupted and an error message 
> is printed for the last message:

There are some problems using Mboxes with Windows.  When you run the
tests included in MailBox you see the warnings.  Quite a few people
have offered to solve this problem (I never use Windows myself), but
they all found small fixes to the tests to solve the complaints, not
solving the real cause.

When you specify  policy => 'REPLACE', then it will work.  Otherwise
not.  This has not only to do with Windows CRLF seperators, but also
with the inability of Windows to rename files which are open...

> I guess it Mail::Box makes a mistake when counting the linebreaks
> (which are CRLFs here it seems - I work with Mozilla Thunderbird files). 
> When I try to set the "lineSeparator" (as stated in the POD) for the 
> folder I get:
> 
> "Method lineSeparator() is not defined for a Mail::Box::Mbox::Message."
> 	Mail::Reporter::AUTOLOAD('Mail::Box::Mbox::Message=HASH(0x2396c90)', 
> '^M^J') called at C:/Perl/site/lib/Mail/Message/Construct.pm line 61
> Mail::Message::AUTOLOAD('Mail::Box::Mbox::Message=HASH(0x2396c90)', 
> '^M^J') called at C:/Perl/site/lib/Mail/Box.pm line 800
> 	Mail::Box::lineSeparator('test', 'CRLF') called at 
> D:\Scripts\perl\test.pl line 45

In which POD?
I have tried for some time to get people involved to get it corrected,
but Mail::Box::write() and writeMessages() are apparently too complicated
to debug for most people...
-- 
Challenge?
               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.