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