Re: [opensuse] cron job email attachment.bin



Dave Howorth wrote:
Sandy Drobic wrote:
Dave Howorth wrote:
Sandy Drobic wrote:
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.
Well, something is in your backup result that causes nail not to see the
text as ascii7.

I've attached a complete message. I can only see 7-bit characters and
the only control characters I can see are TAB and NL. I really hope you
can see something else, because I'm going mad!

I can't see anything though it doesn't mean there wasn't anything in it befor you decided to attach it. For example, in you mail there are not tabs any more, they are replaced with spaces.

>> 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.
Then change your script to use mime::lite to send the report.

I don't want to seem ungrateful but I'd rather not do this. It's just
papering over the cracks. There's no good reason why cron shouldn't
carry on mailing these messages as text exactly as it has done for ages.
I want to find the cause of the current problem, not just mask its effect.

I see, a man of principles. In that case you might want to investigate the programs that are called in cron. cron does not control what these programs write to standard out, so it is reasonable to assume that some programs will produce output that causes nail to regard the text as not ascii7.

I had the same problem a year ago when I set up cron to update antivir. I finally gave in and ran the output through "tr" to replace the characters causing nail to attach the text as a binary.

Someone more savvy might see a way, but at least I can't tell you how cron should be able to control, what kind of characters the called programs write to standard out. Though I strongly suspect that it is simply not possible.

--
Sandy

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Article: Setting as a Character
    ... Author of A Nail Through the Heart: A Novel ... imaginations of your characters. ... Timothy Hallinan is the author of A Nail Through the Heart: ...
    (misc.writing)
  • Re: [opensuse] cron job email attachment.bin
    ... There's no good reason why cron shouldn't ... Well, cron uses the system "mail" command, which was changed not long ago ... produce output that causes nail to regard the text as not ascii7. ...
    (SuSE)
  • Re: Heavens Keep
    ... am reading his 10th book and think he keeps getting better and better. ... disappointed me with the twists they put their characters and series ... But I figure that trying to nail an author down to one formula and one ... set of characters that they can't do anything drastic to is like making ...
    (rec.arts.mystery)
  • Re: Heavens Keep
    ... am reading his 10th book and think he keeps getting better and better. ... shocked and even disappointed me with the twists they put their characters and series through. ... But I figure that trying to nail an author down to one formula and one set of characters that they can't do anything drastic to is like making them write in a straight-jacket. ...
    (rec.arts.mystery)
  • Re: [opensuse] cron job email attachment.bin
    ... you have file names with strange characters. ... something is in your backup result that causes nail not to see the ... it's not me that's mailing this. ... There's no good reason why cron shouldn't ...
    (SuSE)