From: martin f. krafft Date: Thu, 6 Mar 2008 07:34:48 +0000 (+0100) Subject: properly /dev/null cron mails X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/ba62adb2c3d0d730f84572326c1cd6023231b705?hp=69cfa870d0295772f913609a69e6d85d4795a434 properly /dev/null cron mails --- diff --git a/procmail/deliver b/procmail/deliver index ca6bef4..e299423 100644 --- a/procmail/deliver +++ b/procmail/deliver @@ -1,3 +1,12 @@ +:0 +*$ DEST ?? ^$NULL$ +{ + LOG="deliver: sending message $MSGID to $DEST$NL" + + :0 + $NULL +} + :0 * ! DEST ?? . { DEST=/ } @@ -11,10 +20,7 @@ { DEST="$MATCH" } :0 -*$ DEST ?? ^\. -{ } - -:0 E +*$ ! DEST ?? ^\. { DEST=".$DEST" } :0 diff --git a/procmail/rules/cron b/procmail/rules/cron index b723e9b..2fd7f94 100644 --- a/procmail/rules/cron +++ b/procmail/rules/cron @@ -1,6 +1,9 @@ # rely on spool to keep cron output around :0 * FROM ?? ^root@(.+\.)+madduck.net \(Cron Daemon\)$ -$NULL +{ + DEST=$NULL + DELAY +} # vim:ft=procmail