]> granicus.if.org Git - mutt/commit
OK, I couldn't resist. ;-)
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 26 Sep 2001 10:56:52 +0000 (10:56 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 26 Sep 2001 10:56:52 +0000 (10:56 +0000)
commit800928c346a98c986247107ab46db1bd88dbd82a
tree0e02b34d7dcf473d8c75a9d7e2e8841db4007a17
parenta6d921f52dc66a0720f9908f462139f83f69646c
OK, I couldn't resist. ;-)

Depending on the user's usage patterns and configuration, there may
be a strong bias in maildir files moving either within the new or to
the cur subfolder. This patch adds hit counters for each of these
directories. Mutt will then look first into the directory
encountered more frequently in the past.  This should help to reduce
the cost of chasing messages a bit, and isn't too costly itself.

(Another possibility for optimization may be to actually base the
prediction on the configuration and on the message flags as we know
them - in particular, the mark_old and move options could have some
effect here.  Thinking about message flags, one could even replace
the simple heuristic currently implemented by a matrix recording hit
counters depending on flags.  But then again, it's all just playing
around, since this function will be invoked only rarely. ;-)
mh.c