From: martin f. krafft Date: Sun, 23 Sep 2007 15:51:23 +0000 (+0200) Subject: ensure proper format for final destination X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/ec33cde8f8ecb3f68c805ce48b4d62838647a739?ds=inline ensure proper format for final destination --- diff --git a/procmail/deliver b/procmail/deliver index 7a7b9a9..928d52c 100644 --- a/procmail/deliver +++ b/procmail/deliver @@ -1,6 +1,15 @@ +VERBOSE=yes :0 *$ $DEST { + :0 + * DEST ?? .+[^/]$ + { DEST="$DEST/" } + + :0 E + *$ DEST ?? ^\. + { DEST="$BASE/$DEST" } + LOG="deliver: delivering message $MSGID to $DEST$NL" :0 $DEST