X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/4a3212dc350e8b9584823bf603e3eb71a7528cae..873ad5c3ec93f8789e6e1c4696f3b140fc128689:/procmail/deliver diff --git a/procmail/deliver b/procmail/deliver index 7a7b9a9..e3db030 100644 --- a/procmail/deliver +++ b/procmail/deliver @@ -1,6 +1,22 @@ +VERBOSE=yes :0 *$ $DEST { + :0 + * DEST ?? .+[^/]$ + { DEST="$DEST/" } + + :0 + *$ DEST ?? ^$BASE/\. + { } + + :0 E + *$ DEST ?? ^\. + { DEST="$BASE/$DEST" } + + :0 E + { DEST="$BASE/.$DEST" } + LOG="deliver: delivering message $MSGID to $DEST$NL" :0 $DEST