X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/89f701e747fdcb7fbbf09e1ad3c4a904d021db33..c1b84832deb10b1d35aa30c0e77eb61d19ae7cdd:/procmail/deliver diff --git a/procmail/deliver b/procmail/deliver index 168ccdf..ca6bef4 100644 --- a/procmail/deliver +++ b/procmail/deliver @@ -17,10 +17,11 @@ :0 E { DEST=".$DEST" } -TRAP="DEST=\"\${LASTFOLDER#$BASE/}\"; - echo \"delivered: \$DEST\" >> '$THISLOGFILE'; - $TRAP" - -LOG="deliver: delivering message $MSGID to $DEST$NL" :0 -$BASE/$DEST +{ + LOG="deliver: delivering message $MSGID to $DEST$NL" + TRAP="$TRAP; echo \"delivered: \$DESTFILE\" >> '$THISLOGFILE'" + + :0 + $BASE/$DEST +}