Re: [Dovecot] Bash script to mark all mail read in Maildir + Dovecot

2009-01-12 Thread Andrew Oakley
Following several responses from this list (thanks all for your comments), I've revised the script. Notably, the script now copes with mail which has been moved to a /cur/ folder without being read. It does still ignore a few edge-case exceptions, in particular I'm not sure whether it copes in all

Re: [Dovecot] Bash script to mark all mail read in Maildir + Dovecot

2009-01-09 Thread Patrick Ben Koetter
* Andrew Oakley : > Hi, I'm writing a script to mark all new mail read, including all mail > in folders, for my system which uses Maildir and Dovecot. > > The reason for this script is that I use Google Mail at work, which > forwards to my SMTP/IMAP system at home. When I've finished my last > che

Re: [Dovecot] Bash script to mark all mail read in Maildir + Dovecot

2009-01-09 Thread Steve
Original-Nachricht > Datum: Fri, 9 Jan 2009 16:26:49 + > Von: "Andrew Oakley" > An: dovecot@dovecot.org > Betreff: [Dovecot] Bash script to mark all mail read in Maildir + Dovecot > Hi, I'm writing a script to mark all new mail read, including all mail > in folders, for my

Re: [Dovecot] Bash script to mark all mail read in Maildir + Dovecot

2009-01-09 Thread Timo Sirainen
On Fri, 2009-01-09 at 16:26 +, Andrew Oakley wrote: > Hi, I'm writing a script to mark all new mail read, including all mail > in folders, for my system which uses Maildir and Dovecot. Another way would be: printf "1 select inbox\n2 store 1:* +flags \\seen\n" | dovecot --exec-mail imap sig