Re: Using a maildir or mh folder for the message cache?
Hi,
* Thomas Roessler [06-08-08 11:33:15 +0200] wrote:
Brendan, others?
It won't work for a simple reason: the filenames in which messages are
stored are named by unique IDs given by the server. This is UIDL for POP
and UID for IMAP.
I don't know very much about mh, but at least for maildir an operation
like 'flag' or 'reply' could change the filename so that next time, the
body cache won't find the message because of the rename.
But: if one understands that very clearly, it's trivial to set up
symlinks to use either a POP or IMAP body cache as a read-only maildir
folder. This works nicely.
But due to the fact that this direct mapping avoids further overhead in
finding proper names for the individual files, it would cost us some
more code to find other ways of mapping for storing it as maildir,
probably by storing raw data in the hcache.
However, the cool thing about the body cache is that it works
efficiently without any further external dependencies...
bye, Rocco
--
:wq!