Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issues with VMS MAIL Line wrap

SOLVED
Go to solution
Pradeep Nair_1
Occasional Advisor

Facing issues with VMS MAIL Line wrap

I'm using Open VMS 8.2-1 on itanium. I'm getting an informative message while trying to send a log file,

$ mail $1$DGAxxx:[somedire]somelogfile.LOG "smtp%user@domain.com" -
_$ /subject="test send"

%TCPIP-I-SMTP_LINEWRAP, line contains more then 1000 bytes, splitting into multiple lines

Where i dont want these line wrap to be happened.

Appreciate if someone can help me to resolve this or give some information to get more insight for this problem.

Thanks in advance.

Pradeep
4 REPLIES
Karl Rohwedder
Honored Contributor

Re: Facing issues with VMS MAIL Line wrap

Pradeep,

acc. to the HELP/MESSAGE longer lines are not possible acc. to the RFC.

SMTP_LINEWRAP, line contains more then 1000 bytes, splitting into
multiple lines

Facility: TCPIP, Simple Mail Transfer Protocol (SMTP)

Explanation: The SMTP protocol (RFC 821) does not support message bodies
with single lines longer than 998 characters (or 1000 lines
if the closing characters are included). When TCP/IP
SMTP detects lines longer than 998 characters, it splits those
lines into multiple lines in the SMTP message that is sent.

User Action: If the split lines cause a problem for the recipient, then
encode the file before sending and decode it on receipt.


regards Kalle
Bojan Nemec
Honored Contributor
Solution

Re: Facing issues with VMS MAIL Line wrap

Pradeep,

As Kalle explains the line can not have more than 1000 bytes.

Try to use MIME to create an attachment:

$ MIME
NEW /NODIT mail.txt
ADD/ENCODING=Base64 logfile.log
SAVE
$ MAIL mail.txt "user@domain.com" /subject="sub"

Bojan
Pradeep Nair_1
Occasional Advisor

Re: Facing issues with VMS MAIL Line wrap

Thanks Kalle & Bojan for extending your wings.

It was really helpful and i resolved the problem.

Regards,
Pradeep Kumar P
Pradeep Nair_1
Occasional Advisor

Re: Facing issues with VMS MAIL Line wrap

Great Help from forum folks.