Discussion:
Slowness when coloring the index
Ralf Hildebrandt
2018-05-25 14:33:36 UTC
Permalink
I'm using this to color spammy mails in the index:

folder-hook . "uncolor index *"
folder-hook ***@backup.invalid "color index red default '~h ^X-Spam:'"

That's working OK, but it's quite slow. It seems that mutt is fetching
the whole body (instead of just the headers). But I can live with that.

When I'm done processing that particular mailbox, I'm marking all messages deleted.
This process again fetches all mails, before marking them delete -- and I fail to understand why...

% mutt -v
Mutt 1.9.4 (2018-02-28)

System: Linux 4.15.0-20-generic (x86_64)
ncurses: ncurses 6.1.20180127 (compiled with 6.1)
libidn: 1.33 (compiled with 1.33)
hcache backend: tokyocabinet 1.4.48


Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
***@charite.de | https://www.charite.de
Kevin J. McCarthy
2018-05-25 16:45:28 UTC
Permalink
Post by Ralf Hildebrandt
That's working OK, but it's quite slow. It seems that mutt is fetching
the whole body (instead of just the headers).
Yes, it is. ~h is a very bad idea to use for index coloring. If
possible you should use the 'spam' command and '~H' instead
<https://muttmua.gitlab.io/mutt/manual-dev.html#spam>

You can do the same kind of thing for other headers too:
<http://www.8t8.us/blog/2016/07/03/caching-additional-headers-in-mutt.html>
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
Loading...