Formatting a mail

Luciano Rocha strange at nsk.no-ip.org
Fri Oct 12 10:36:38 UTC 2007


On Fri, Oct 12, 2007 at 11:33:34AM +0100, Paul Ward wrote:
> Hi all,
> 
> Please can someone show me the easy way of fixing this format problem,
> I am sure it must be a simple command.
> 
> I am mailing myself a file from postfix.
> the file is created by doing a cat of around 10 files into my tmpfile
> when viewed by less it looks like this
> Number of pages printed for RIAS-INS-HH04 today is 24
> Number of pages printed for RIAS-INS-HH05 today is 7
> Number of pages printed for RIAS-INS-HH06 today is 0
> Number of pages printed for RIAS-INS-HH07 today is 0
> Number of pages printed for RIAS-INS-HH09 today is 0
> Number of pages printed for RIAS-INS-HH10 today is 0
> Number of pages printed for RIAS-INS-HH11 today is 0
> Number of pages printed for RIAS-INS-HH12 today is 0
> Number of pages printed for RIAS-INS-HH13 today is 0
> Number of pages printed for RIAS-INS-HH14 today is 0
> Number of pages printed for RIAS-INS-PRT02 today is 12
> Number of pages printed for RIAS-INS-PRT03 today is 17
> 
> However when I mail myself it mail -s "TEST" pnward at googlemail.com <
> /tmp/tmpfile

Add \r to \n:
unix2dos < /tmp/tmpfile | mail -s "TEST" pnward at googlemail.com

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20071012/a1a01bfb/attachment-0001.bin 


More information about the users mailing list