Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Paul Szabo <psz@maths.usyd.edu.au>
To: MB <mb301@hotmail.com>
Subject: Re: sending text file as attachement to Windows (Outlook)
Date: Fri, 05 Dec 2003 06:21:35 +1100	[thread overview]
Message-ID: <3FCF893F.41C6@maths.usyd.edu.au> (raw)
In-Reply-To: 1d08b916.0312040633.41aa5475@posting.google.com

MB wrote:

> I would like to send a text file as an attachement to Windows outlook from
> tru64 Unix.
> 
> # cat /tmp/file.txt | uuencode file.txt | mailx -s test someone@xzy.com
> 
> This works, however when you view the file in notepad it doesn't look right.

I guess the problem is the line termination: a single NL character (hex 0A)
is used in UNIX, while Windows uses the two-character CR-LF (hex 0D 0A).
Replace cat by:

  perl -pe 's/$/\r/' /tmp/file.txt | uuencode ...

-- 
Paul Szabo - psz@maths.usyd.edu.au  http://www.maths.usyd.edu.au:8000/u/psz/
School of Mathematics and Statistics  University of Sydney   2006  Australia


  reply	other threads:[~2003-12-04 19:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-04 14:33 sending text file as attachement to Windows (Outlook) MB
2003-12-04 19:21 ` Paul Szabo [this message]
2003-12-04 19:29   ` Joseph Dionne
2003-12-04 20:00 ` Adam Price
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox