I like to detect unreaded mails in Maildir mailboxes. The subfolder "new" only content mails that are not already pulled from an MUA. But I want the unreaded mails within INBOX (no virtual subdirs). Any suggestions how this can be implemented?
PS: I do not enter the raw mail!
Using Debian Squeeze with Postfix and Dovecot (POP, IMAP).
You use Dovecot, so each file in the maildir folder that has
:2,S
near the end of the file name means it has been flagged as "Seen" or "Read".More useful info about Maildir formats:
http://wiki.dovecot.org/MailboxFormat/Maildir
http://cr.yp.to/proto/maildir.html
An example file name from my Maildir:
1324304849.M312689P14620.subdomain.domain,S=24816,W=25415:2,Sa