Re: [opensuse] cron job email attachment.bin



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=<45BD8D03.mailBE81ISU8G@xxxxxxxxxxxxxxxxxx>
Jan 29 05:58:28 suse1 postfix/qmgr[18458]: 1FED528317:
from=<root@xxxxxxxxxxxxxxxxxx>, size=4133, nrcpt=1 (queue active)
Jan 29 05:58:28 suse1 postfix/cleanup[14780]: 99A2B6A92B:
message-id=<45BD8D03.mailBE81ISU8G@xxxxxxxxxxxxxxxxxx>
Jan 29 05:58:29 suse1 postfix/local[14782]: 1FED528317:
to=<root@xxxxxxxxxxxxxxxxxx>, orig_to=<root>, relay=local, delay=2,
status=sent (forwarded as 99A2B6A92B)
Jan 29 05:58:29 suse1 postfix/qmgr[18458]: 99A2B6A92B:
from=<root@xxxxxxxxxxxxxxxxxx>, 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=<djh02@xxxxxxxxxxxxxxxxx>, orig_to=<root>, relay=server1[10.1.0.0],
delay=1, status=sent (250 OK id=1HBPXB-0004t3-00)
croc

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Describing peoples
    ... The mountains rose abruptly from the plain. ... the line between cliff and plain. ... Christine shook her head, but then Diane pointed. ... and got the dialog (and, along with it, a sense of the characters). ...
    (rec.arts.sf.composition)
  • Re: What Software to Type Math In?
    ... characters when 10 will do is not a good idea. ... replace fonts; also, the user could even modify characters in ... division of labour in the process of typesetting your document. ... What is "plain text"? ...
    (sci.math)
  • Re: FBoFW 5/2
    ... and their eyes lock from across the room in a mutual sudden realization that ... It's as plain as the fact that suddenly Anthony is looking more ... characters don't change that much. ...
    (rec.arts.comics.strips)
  • Re: Custom dictionary still not working!
    ... I believe this is actually the result of an attempt to fix a different bug. ... The old bug was that the Custom Dictionary was coded to use ANSI text (plain ... Word 2004, of course, uses Unicode, not ANSI as its ... characters, and they thought the bug was fixed. ...
    (microsoft.public.mac.office.word)
  • Re: Change how Word formats a .txt file
    ... When I display the formatting characters, the paragraph mark is at the ... If I load the .txt file, change my Plain ... Is there a way to change how Word opens and formats a .txt file? ... creates TIFF files by automating the opening and printing txt files ...
    (microsoft.public.word.newusers)