Marking a message read when delivering to a Maildir
Doug Barton <[email protected]>
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
Howdy,
I have searched the web and cobbled together a process to deliver a
message to my Junk folder (Maildir), then immediately mark it read.
However, I've run into a small problem, the filter runs faster than the
actual delivery, so I have to spin waiting for the file to appear. My
filter is below.
I'm wondering, is there an easier/better way to do this in the first
place? Is it ever contemplated to add this as a feature?
Thanks,
Doug
if (/^X-Spam-Status: Yes/:h)
{
cc Maildir/.Junk
`until [ -f ${HOME}/Maildir/.Junk/cur/1*:2, ]; do sleep 0.1; done`
`for m in ${HOME}/Maildir/.Junk/cur/1*:2,; do mv $m ${m}S; done`
exit
}
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d