X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/2ad538abdf547692be431d16c614868c934ef452..eb9dd09cb90c9bd41775382ba2febd43f1b8a62d:/procmail/deliver diff --git a/procmail/deliver b/procmail/deliver index e299423..e2bd907 100644 --- a/procmail/deliver +++ b/procmail/deliver @@ -23,6 +23,15 @@ *$ ! DEST ?? ^\. { DEST=".$DEST" } +:0 +* MARK_READ ?? . +{ + TRAP="$TRAP; BASENAME=\"\${DESTFILE##*/}:2,S\"" + TRAP="$TRAP; DIRNAME=\"\${DESTFILE%/new/*}/cur\"" + TRAP="$TRAP; DESTFILE=\"\$DIRNAME/\$BASENAME\"" + TRAP="$TRAP; mv \"\$LASTFOLDER\" \"$BASE/\$DESTFILE\"" +} + :0 { LOG="deliver: delivering message $MSGID to $DEST$NL"