1
I use a maildrop script to sort my mails directly on the mail server into folders and I would like it to mark certain unnecessary mails as read.
Unfortunately maildrop does not seem to have a command for that.
Right now I use this line to rename the newest mail of the qmail Maildir folder to a 2,s
read status:
`ls -t "$MAILDIR/.0 Spamfilter.catchall/new" | head -1 | xargs -I {} mv "$MAILDIR/.0 Spamfilter.catchall/new/{}" "$MAILDIR/.0 Spamfilter.catchall/cur/{}:2,S"`
However, this sometimes fails and the mail remains unread. I guess there is a race condition, when another mails arrives, before the mv has been executed.
Have you tried to set
– AnFi – 2017-09-30T06:54:46.573FLAGS
variable in maildropfilter? http://www.courier-mta.org/maildrop/maildropfilter.htmlno, i did not rtfm, just followed a tutorial – BeniBela – 2017-09-30T11:08:33.400
Now I tried
FLAGS="S"
beforeto
, but it does not seem to do anything – BeniBela – 2017-09-30T14:17:39.6901Omg, on the server they have maildrop 2.5.5. FLAGS was added in maildrop 2.8.4 – BeniBela – 2017-09-30T18:55:36.827