[Logwatch-Devel] Fwd: multiple email addresses

Kirk Bauer kirk at kaybee.org
Sat May 12 18:33:30 MST 2007

Any takers?  I never do anything fancy with the emailing myself.

---------- Forwarded message ----------
From: Gabor Adam TOTH <tg at x-net.hu>
Date: Sun, 13 May 2007 02:01:48 +0200
Subject: multiple email addresses
To: logwatch-patches at logwatch.org


I have to send reports to different email addresses for each host so I
made this small patch.
It uses MailTo_host config options to set To: headers and falls back to
MailTo if no such option found. Multiple email addresses can be
seperated by spaces.

It also fixes a bug, multiple MIME headers were written to emails if
MultiEmail was set.


SplitHosts = Yes
MultiEmail = Yes
MailTo = user at example.com
MailTo_host1 = foobar at example.com
MailTo_host2 = foo at example.com bar at example.com

Gabor Adam TOTH

Kirk Bauer <kirk at kaybee.org>
http://linux.kaybee.org | www.autorpm.org | www.logwatch.org

More information about the Logwatch-Devel mailing list