Attachment Warnings - End of Line Behavior Changed (CR, LF)

Marco Radzinschi mradzinschi at gmail.com
Wed Feb 1 15:55:17 GMT 2006


I'm so used to doing the following quick fix that I don't even think about
it anymore...

perl -p -e 's/\n/\r\n/' unixfile.txt dosfile.txt

perl -p -e 's/\r$//'  dosfile.txt unixfile.txt

Thanks for the catch - must not have had enough coffee that day. :-)

- Marco

On 2/1/06, Denis Beauchemin <Denis.Beauchemin at usherbrooke.ca> wrote:
>
> Marco Radzinschi wrote:
>
> >
> > Hello:
> >
> > I noticed that the CR/LF behavior has changed in the newest version of
> > MailScanner (4.49) from DOS (LF only) to Unix-type text files
> > (<CR>+<LF>) for the generated attachment warnings.
>
> DOS = CR+LF, Unix/Linux = LF
>
> >
> > I treid removing the excess <CR> characters in the report templates
> > myself, but I noticed that the Perl script still appends to the report
> > templates with <CR>+<LF>, which makes it appear mangled on a GroupWise
> > system running on Windows.
> >
> > I did not see a configuration option for this, so I am assuming that
> > it is hard-coded somewhere in the script, or in one of the external
> > modules that the script uses. Does anyone know how to change this
> > behavior?
>
> This has been discussed previously (about 1-2 weeks ago).  It is
> probably a bug in MIME::Tools IIRC.  Some people were supposed to talk
> to the developer to get a fix.  Don't know how it turned out...
>
> Denis
>
> --
>    _
>   °v°   Denis Beauchemin, analyste
> /(_)\  Université de Sherbrooke, S.T.I.
>   ^ ^   T: 819.821.8000x2252 F: 819.821.8045
>
>
> --
> MailScanner mailing list
> MailScanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20060201/7c70b9db/attachment.html


More information about the MailScanner mailing list