]> granicus.if.org Git - neomutt/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)
commit197387df0dd3b6031c66a4d3f41fba46fc7b72a5
tree0e02b34d7dcf473d8c75a9d7e2e8841db4007a17
parent58621800d9b4396ed402519c956eca7c890a6953
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