From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f70e8d71658d5c99 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-12-04 11:21:37 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!news.usyd.edu.au!not-for-mail From: Paul Szabo Newsgroups: comp.unix.tru64 Subject: Re: sending text file as attachement to Windows (Outlook) Date: Fri, 05 Dec 2003 06:21:35 +1100 Organization: School of Mathematics and Statistics, University of Sydney Message-ID: <3FCF893F.41C6@maths.usyd.edu.au> References: <1d08b916.0312040633.41aa5475@posting.google.com> NNTP-Posting-Host: talus.maths.usyd.edu.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: spacebar.ucc.usyd.edu.au 1070565695 24141 129.78.68.1 (4 Dec 2003 19:21:35 GMT) X-Complaints-To: usenet@news.usyd.edu.au NNTP-Posting-Date: 4 Dec 2003 19:21:35 GMT To: MB X-Mailer: Mozilla 3.01Gold (X11; I; OSF1 V5.1 alpha) Xref: archiver1.google.com comp.unix.tru64:10990 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