From: martin f. krafft Date: Sun, 23 Sep 2007 16:12:06 +0000 (+0200) Subject: delete file after resubmitting it X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/ff92db2e5401f79a2721d2ffc20cbd21cb15f109 delete file after resubmitting it --- diff --git a/bin/resubmit b/bin/resubmit index 01990b2..63f8a02 100755 --- a/bin/resubmit +++ b/bin/resubmit @@ -6,5 +6,7 @@ PROCMAIL=$HOME/.etc/mailfilter/procmail/procmailrc if [ -z "$1" ]; then cat | exec $PROCMAIL else - exec $PROCMAIL < "$1" + $PROCMAIL < "$1" && rm -f "$1" fi + +exit 0