[Pdx-pm] UNIX NL verses MS(DOS) CRLF

Roderick A. Anderson raa at mailporter.net
Tue Aug 31 12:56:31 CDT 2004

Joe Oppegaard wrote:

>On Tue, 31 Aug 2004 at 9:25am -0700, Roderick A. Anderson wrote:
>>I am processing files on a Windows system from a Linux system that has the
>>share as a SMB mount.  I'm using Marc Overmeer's Mailbox collection to
>>process spam folders (mailboxen) and any time the process (re)writes the
>>file I end up with NLs instead of CRLFs.  This causes all kinds of
>>heart-ache and discontent with the users as they can't pop the messages
>>back using Outlook.
>>   Is there a setting I can use 'perl-wise' to make all "\n" writes be
>>"\r\n".  The perlport man pages indicate to me that $/ applies to read not
>>write and the example only shows one character being used.
>While not the same approach, you could just run the unix2dos utility
>(most Linux distros have it) on all the mailbox files after your
>program is done processing them.

Thanks Joe.

Yeah this did float by as an idea.  I'll try that on the next run to see
if it does fix the problem. I'm hoping this is the actual problem and
not soemthing else that manifests itself as a line ending issue.


[Certified Virus free by ASISNA Mail Services.    www.asisna.com ]

More information about the Pdx-pm-list mailing list