[Logcheck-devel] Bug#542781: MAILARGS -a breaks mailing with mailx or mutt
Frédéric Brière
fbriere at fbriere.net
Mon Aug 24 02:05:44 UTC 2009
On Fri, Aug 21, 2009 at 12:03:20PM +0200, Florian Hinzmann wrote:
> This is due to
> > MAILARGS="-a 'Auto-Submitted: auto-generated'"
> in /usr/sbin/logcheck.
Damned if you do, damned it you don't, right Martin? :)
> Option -a wants to attach a file to the mail with at least the
> MUAs mutt and mailx from package heirloom-mailx.
mutt doesn't provide /usr/bin/mail, so it's irrelevant. But yeah,
heirloom-mailx is a bother. (You would've thought that all mailxes
would have the same command-line interface, no?)
> A real fix might be to use the sendmail binary to send mails. The
> following works:
> > echo -e "Subject: sub\nX-Test: myheader\n\nmail body\n" | sendmail butch
Note to self: echo -e is a bashism, so you might want to use /bin/echo
instead.
Another option would be to strictly depend on, say, bsd-mailx. It's a
crappy solution, but it is an easy one.
--
/*
* Please skip to the bottom of this file if you ate lunch recently
* -- Alan
*/
-- from Linux kernel pre-2.1.91-1
More information about the Logcheck-devel
mailing list