From ba62adb2c3d0d730f84572326c1cd6023231b705 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 6 Mar 2008 08:34:48 +0100 Subject: [PATCH] properly /dev/null cron mails --- procmail/deliver | 14 ++++++++++---- procmail/rules/cron | 5 ++++- 2 files changed, 14 insertions(+), 5 deletions(-) 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 -- 2.39.5