The maildir format stores messages in ./new and ./cur within the maildir. So, simply pass in both of those directories to sa-learn, rather than the top-level directory. This is how I have been doing it, and it seems to be working fine.
Hmm, I noticed it "learned" from two messages, even for empty maildirs, so I suspect here may be a couple of non-message files lying in there :-S
I would, however, appreciate it if sa-learn could recognize a maildir and do the same automatically.
Hear hear! :-)
Or perhaps even recursively, because I have a maildir heirarchy, and learning from everything in that requires a bit of shell magic.
Hear hear hear hear :-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk