Home All Groups Group Topic Archive Search About

Avoiding empty ATT*.txt attachments (email sent using SMTP, not from Outlook)

Author
11 Sep 2007 9:11 AM
Stephane Barizien
I'm sending email messages with attachments (from a Korn Shell script, using
MKS's smtpmail, FWIW) using a SMTP transaction to our Exchange server and a
message contents of:

From: "Stephane Barizien" <stephane.bariz***@oce.com>
To: , "Stephane Barizien" <stephane.bariz***@oce.com>
MIME-Version: 1.0
Content-Type: Multipart/Mixed; boundary=Message-Boundary-400418939
Subject: Output from: printfiles -D -m sba ../man/man1/printfiles.1
Date: Tue Sep 11 10:49:27 RST 2007

--Message-Boundary-400418939
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: Quoted-printable
Content-description: Mail message body

This message is used to transport the output from:

printfiles -D -m sba ../man/man1/printfiles.1

as an attachment.

--Message-Boundary-400418939
Content-type: application/octet-stream; name="printfiles.pdf"; type=Binary
Content-transfer-encoding: BASE64

JVBERi0xLjQNJeLjz9MNCjYgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgMTUyNTYvTyA4L0UgMTEz
NjkvTiAxL1QgMTUwOTAvSCBbIDYzNiAxNjddPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAg
DQp4cmVmDQo2IDE3DQowMDAwMDAwMDE2IDAwMDAwIG4NCjAwMDAwMDA4MDMgMDAwMDAgbg0KMDAw
[stuff deleted]
MDAwMDAgbg0KMDAwMDAxMTQ3OCAwMDAwMCBuDQowMDAwMDE0OTI3IDAwMDAwIG4NCnRyYWlsZXIN
Cjw8L1NpemUgNj4+DQpzdGFydHhyZWYNCjExNg0KJSVFT0YNCg==

--Message-Boundary-400418939



The message arrives OK, with the attached PDF files, but also with a
useless, empty, 268-byte ATTnnnnnn.txt attachment.

How do I get this of this?

TIA

AddThis Social Bookmark Button