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