Re: [RFC] header+body caching for POP
On Fri, 05 May 2006, Rocco Rutte wrote:
> I've started writing a patch for CVS head that ports the header caching
> used in Maildir and IMAP also to POP. In addition, via $imap_cachedir,
> mutt can cache whole messages and not just headers. I've also started
> porting this feature to POP.
POP header caching is very useful for me.
> What this patch does in detail:
>
> 1. it adds $message_cachedir as generalization from
> $imap_cachedir which is now a synonym for it
> 2. it adds a manual section on header and body caching
> 3. it enables header and body caching for POP
If $message_cachedir is unset, mutt can't read POP messages.
I suspect this part:
> if (!(msg->fp = msg_cache_put (pop_data->conn, h->data)))
> return -1;
Hmm, msg_cache_put should return a temporary fp?
--
tamo