Quoth Pizza Galaxy on Tuesday, 22 March 2011:
> On the unix end it is easy:
> 
> sed -e "s/\r//g"
> 
> On Tue, Mar 22, 2011 at 04:12:52PM -0700, Chip Camden wrote:
> > I run mutt under FreeBSD.  It often happens that I need to email source
> > files from a Windows system that I have connected via samba.  If I read
> > the source into the email body, it's OK -- but if I attach the source file,
> > it still contains all the CR/NL pairs instead of just NL.  That would be OK,
> > except that by the time it gets to the recipients it appears to be
> > double-spaced.
> > 
> > Is there any way that I can add a filter or something to strip CRs from
> > plain-text attachments?
> > 
> > -- 
> > .o. | Sterling (Chip) Camden      | http://camdensoftware.com
> > ..o | [email protected] | http://chipsquips.com
> > ooo | 2048D/3A978E4F              | http://chipstips.com
> 
> 
> 
> -- 
> Rudy Vener, Owner and founder
> Pizza Galaxy - Low cost Online ordering and Email marketing 
> for neighborhood Mom and Pop pizza and sub shops.
> Phone: (203) 230-9662
> Website: http://www.pizzagalaxy.com

Yes, I know about sed and tr.  My question is, how do I invoke that
automatically whilst attaching the file?  I don't want to have to
escape to a shell to enter a separate command to create a new file
and then attach it.

-- 
.o. | Sterling (Chip) Camden      | http://camdensoftware.com
..o | [email protected] | http://chipsquips.com
ooo | 2048D/3A978E4F              | http://chipstips.com

Attachment: pgpgP1rXgWnEO.pgp
Description: PGP signature

Reply via email to