Re: Marking a message read when delivering to a Maildir

Doug Barton <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
On 03/26/2013 12:24 AM, Doug Barton wrote:
> 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?

Ok, FYI I found a better way to do this. I'm still learning about 
Maildir, so I found the explanation for what I was seeing. This works 
better without having to wait:


{
         cc Maildir/.Junk
         `for m in ${HOME}/Maildir/.Junk/new/*; do mv $m 
${HOME}/Maildir/.Junk/cur/${m##*/new/}:2,S; done`
         exit
}

Hope this helps someone reading the archive.

Doug


------------------------------------------------------------------------------
Own the Future-Intel(R) 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://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.