Operating System - HP-UX
1831275 Members
2861 Online
110022 Solutions
New Discussion

Extra empty line, produced in email attach.

 
SOLVED
Go to solution
Vittorio_3
Advisor

Extra empty line, produced in email attach.

Hi,
I have one file:
-Created on MVS with x'50' non printable chars.
-FTPed to UNIX
-Emailed from UNIX with mutt as attachement.

If I'm looking at this file on UNIX or MVS it looks fine, no any extra lines, but when I open in Windows it sent as attachment I alwayse see extra empty line. I'm using Notepad for that, but other dos application which process this file regornize it too and crashes. In attached sample there are details lines, and when you go to the bottom you can see extra empty line.
Vs if I directrly FTP file from MVS to C: i don't see any extra line.

Anybody can recommend solution how to get rid of this extra line. Probably it's some conversion problems.

Thanks to all
Vic
3 REPLIES 3
Uday_S_Ankolekar
Honored Contributor
Solution

Re: Extra empty line, produced in email attach.

While emailing did you use uuencode for attachment ?

Try with uuencode
# uuencode your_file some name | sendmail emailid.
Ex:
uuencode /etc/passwd passwd.hostname | sendmail emailid.

And also while ftp use bin format.

There is also other command ux2dos and dos2ux

But first I will try with uuencode.

-USA
Good Luck..
Vittorio_3
Advisor

Re: Extra empty line, produced in email attach.

Teshekur, Aday

uuencode works on my machine but only write to standard, can't make it place output into file.
I'm on RedHat LInux.

Best
V
Bejoy C Alias
Respected Contributor

Re: Extra empty line, produced in email attach.

use 'cat filename | uuencode filename | sendmail -v emaiid' to send the file as attachment to the email id. Try ftpying in bin and ascii mode and check for any difference.
Be Always Joy ......