X-Git-Url: https://git.madduck.net/etc/mailfilter.git/blobdiff_plain/ba62adb2c3d0d730f84572326c1cd6023231b705..34f0d6618e8837976f4981c4edeecf06a27c74c2:/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"