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