<<< Date Index >>>     <<< Thread Index >>>

Re: mutt cache sensitivity



On Thursday, March 29 at 12:33 PM, quoth Rocco Rutte:
Ideally, the tempfile resides in the final target directory to avoid lengthy buffer copies for large messages (e.g. you wait ages for a 50 MB message to download and then some more time of moving it from tmpdir to cache dir). If the tempfile is not in the target directory, we may get the same problem again when the user kills mutt during the tmpdir -> message_cachedir copy.

Why copy? Why not rename(), or better yet, link() & unlink()?

Having it within the target directory would also ensure that there's enough space available. Prior to comitting it while writing the contents we would get an error already and could fall back to the dumb cache POP and IMAP have besides message_cachedir.

Sounds good.

~Kyle
--
We *can't* simply do our science and not worry about the ethical issues.
                                                           -- Bill Joy

Attachment: pgpomKMgpcw9v.pgp
Description: PGP signature