Using 'sendmail', 'mail', and 'mailx' all result in the same problem. I am sending an MS-Excel spreadsheet as a MIME object (application/octet-stream and application/vnd.ms-excel act the same). When the spreadsheet is received, intermittently throughout the document the characters "0x21,0x0d,0x0a" are inserted. The first occurrance is at offset 01737 (octal), then at 011730, 13672, 15634, 17576, 21540, 23502, etc... After the first occurance, the are equally spaced 994 bytes apart.
The email statement is:
/usr/lib/sendmail -B 8BITMIME -t < inputfile
(The -B option makes no difference in the outcome)
The input file is:
Content-Type: multipart/mixed; boundary="messagepartboundary"
Content-Type: text/plain; charset=us-ascii
This is the body of the message.
Content-Type: application/octet-stream; charset=us-ascii
Content-Disposition: attachment; filename="Book1.xls"
<Excel spreadsheet bianry code goes here>
Any thoughts out there? Try this code on your machine and let me know either way what the results are.
BTW: The input file was generated by 'cat hdr Book.xls trl', where hdr contains statements up to the binary code and trl contains the line '--messagepartboundary--'. Book.xls is the spreadsheet file.
Interesting point: This does not occur on an IRIX Unix computer. However, the IRIX machine converts any 0x0a characters found in the file to '\n'. This is irrelevant, since I'm not developing this for an IRIX system. Just an interesting point.