On Sun, Dec 30, 2012 at 12:11:22PM +0000, Chris Green wrote: > My mail is initially delivered by SMTP (to a postfix server running > locally) and then filtered by a python script at the moment. Thus, if > I switch to maildir just now it's the Python libraries which create > the maildirs. However my issue is more with MUAs which don't play > nicely together using the same maildirs (and also utilities for > manipulating maildirs as they're so painful to manage 'by hand'). >
Hi Chris, I use a quite similiar setup, where an exim4 delivers the mail to my INBOX directly, and a .forward file in exim-filters style delivers it to the folders. So each and every folder-writing software in my case uses the full directory name as I present it to it. So this is for example my mutt-rule: if $header_Sender: contains "mutt.org" then save "Maildir/Archiv/Mailinglisten/mutt-users@mutt.org/" endif As you can see I use the / literally, so it gets saved to folders as it should. Redirecting everything into this structure from the default maildir structure took me nearly a day, but it was worth it. For accessing my mailbox by a tool that I am not sure of if they leave the structure untouched I simply use dovecot's imap. Dovecot itself can handly the filesystem-type mailbox with ease, and for Thunderbird or Evolution this is enough. (as a small warning: Evolution tends to rearrange the filesystem-maildir into the .-layouted maildir without warning.) BTW: I just finished my script to scan a big Maildir-based mailbox for all subfolders and/or folders with unread (~O) mail. The usual find-based method proved non-performant when there are mailboxes with 3000+ mails.. ( http://git.ak-online.be/?p=mutt.git;a=blob;f=.mutt/mailboxes.pl ) Regards, Andre -- Andre Klärner
smime.p7s
Description: S/MIME cryptographic signature