From: martin f. krafft Date: Sun, 14 Sep 2008 11:04:55 +0000 (+0200) Subject: allow messages to be marked as read X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/eb9dd09cb90c9bd41775382ba2febd43f1b8a62d allow messages to be marked as read --- 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"