On 8/29/20 6:11 PM, Sam Varshavchik wrote:
Use the maildirkw command. It has a man page.
A wrapper script between (.)procmail(rc) and maildirkw did exactly what I wanted.
If various conditions are met, apply '$label3' (literal including dollar sign) and mark it as read. -- The conditions test for proper nightly backup behavior. I have good (read, $label3(Personal(green))) and bad (unread, $label1(Important(red))) logs in different state.
Aside: I believe in keeping the good logs in addition to the bad logs so that I can look and confirm that the backup job is still running.
.procmailrc
:0 fB
|maildirkw.wrapper "$LASTFOLDER" '$label3'
:0 fB
|mv "$LASTFOLDER" "$LASTFOLDER:2,S"
maildirkw.wrapper
/usr/bin/maildirkw ~/${1%%/new/${1##*/}} ${1##*/} "$2"
Thank you again Sam.
--
Grant. . . .
unix || die
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
