Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2007 11:54:20 -0400
From:      Mikhail Teterin <mi+kde@aldan.algebra.com>
To:        Daniel Bye <dan@slightlystrange.org>
Cc:        questions@freebsd.org, babkin@freebsd.org
Subject:   Re: Can cron e-mail HTML?
Message-ID:  <200707151154.21642@aldan>
In-Reply-To: <469A10CF.6080103@slightlystrange.org>
References:  <200707141603.55899@aldan> <200707141914.07646@aldan> <469A10CF.6080103@slightlystrange.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On нед╕ля 15 липень 2007, Daniel Bye wrote:
= Is /usr/share/misc/magic.mime of any use? Apparently it is consulted by
= file(1) when called with -i. According to libmagic(3), magic_open() with
= the MAGIC_MIME flag should do the same.

Yes, indeed -- just the ticket... Thanks.

Now, I have not received any e-mails from the cron modified as per the
linked patch yet, but if anyone cares to review it, please, do so. It 
compiles :-)

	http://aldan.algebra.com/~mi/cron-mime.diff

It increases the application's buffering of the job's output from 1 character 
to BUFSIZ and, if requested, passes the first thus-read buffer to 
magic_buffer().

If that succeeds, the Mime-Version and Content-Type headers are injected into 
the outgoing e-mail...

	-mi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707151154.21642>