Re: Bug under Win32
Martin Raspe <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
Mark Overmeer wrote: > and explictly stating policy => 'INPLACE' ? I always forget which > one works on Windows... Or was it cygwin... I thought REPLACE was the default? > Ah... ehhh... partial implementation :( I'll put $msg->lineSeparator > on the list of things to implement before next release. Would be good. It seems the line separators are the main problem. It would be good to maintain a linesep variable per mbox folder that contains the actual value. The Mozilla mbox files use 0x15 as separator, even under Windows. And since the files are read in binmode, the character count gets wrong because it is adjusted when it shouldn't. Normally the same lineseps that were read in should be written out. >>>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... > You can use the test suite to see wether the code is correct, but you > should correct the test suite to stop complaining: lines on Windows > use CRLF and no-one can change that. Only if you read files in text mode. Binary mode is the same as on *nix. > Don't hesistate to ask when parts of the code are unclear. Thank you! Martin