Sandy Drobic wrote:
> Dave Howorth wrote:
>> My daily backup script on a server mails the output to me (it's a cron
>> job run by root). Recently, instead of sending me a plain text email
>> message, it's started sending me an empty email with an attachment
>> called 'attachment.bin'. This is just a plain text file with the same
>> old content.
>>
>> Does anybody know how to make it send me plain text messages again?
>>
>> The only notable difference I can see in the messages is this header:
>>
>> < Content-Type: text/plain; charset=us-ascii
>> ---
>>> Content-Type: application/octet-stream; charset=us-ascii
> 
> If there are characters in the mail not covered by ascii7 mail is
> automatically send as "application/octet-stream". This might happen if
> you  have file names with strange characters.

Good idea. But there's nothing greater than 122 ('z') in attachment.bin.

The man page for nail actually says:

  "Otherwise, or if the filename has no extension, the content  types
   text/plain  or  application/octet-stream  are  used, the first for
   text or international text files, the second for any file  that
   contains  formatting  characters other than newlines and horizontal
   tabulators."

But the only control character in the file is 10 (newline) :(

> Instead of directly mailing the output you could save it into a file and
> use mime::lite to send it.

Sorry, it's not me that's mailing this. It's cron.

> You should probably update your server, 9.2 is no longer supported.

Yes, it's in the queue of things to do :)  I would have moved to 10.1
but that seemed to be a real dog, so now I'm being even more cautious
before moving to 10.2.

Thanks, Dave

FWIW, this is what /var/log/mail has to say on the server:

Jan 29 05:58:28 suse1 postfix/pickup[14756]: 1FED528317: uid=0 from=<root>
Jan 29 05:58:28 suse1 postfix/cleanup[14780]: 1FED528317:
message-id=<[EMAIL PROTECTED]>
Jan 29 05:58:28 suse1 postfix/qmgr[18458]: 1FED528317:
from=<[EMAIL PROTECTED]>, size=4133, nrcpt=1 (queue active)
Jan 29 05:58:28 suse1 postfix/cleanup[14780]: 99A2B6A92B:
message-id=<[EMAIL PROTECTED]>
Jan 29 05:58:29 suse1 postfix/local[14782]: 1FED528317:
to=<[EMAIL PROTECTED]>, orig_to=<root>, relay=local, delay=2,
status=sent (forwarded as 99A2B6A92B)
Jan 29 05:58:29 suse1 postfix/qmgr[18458]: 99A2B6A92B:
from=<[EMAIL PROTECTED]>, size=4270, nrcpt=1 (queue active)
Jan 29 05:58:29 suse1 postfix/qmgr[18458]: 1FED528317: removed
Jan 29 05:58:29 suse1 postfix/smtp[14783]: 99A2B6A92B:
to=<[EMAIL PROTECTED]>, orig_to=<root>, relay=server1[10.1.0.0],
delay=1, status=sent (250 OK id=1HBPXB-0004t3-00)
croc

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to