Mutt scoring

James Wilkinson ubuntu at westexe.demon.co.uk
Fri May 13 12:15:42 UTC 2005


Magnus Therning wrote:
> You've just motivated me to look into mutt scoring. Thank you!

My experiences with mutt scoring:

It works quite well. Expect, with aggressive scoring, to get 5% to 10%
above "normal", 5% to 10% below "normal", and the rest "normal".

Aim to keep your scores between 0 and 9. Then you can put the scores
into the index (with %N) and only have them take up one column.

Some ideas, in the form of a .muttrc excerpt:

# Have a standard score of 5:
unscore *
score ~A +5

# Different colours for different scores:
message-hook '~A' "color header cyan default '^From|Subject:'"
message-hook '~n 7-' "color header red default '^From|Subject:'"
message-hook '~n -3' "color header brightblack default '^From|Subject:'"

message-hook '~A' "color signature cyan default"
message-hook '~n 7-' "color signature red default"
message-hook '~n -3' "color signature brightblack default"

message-hook '~A' "color status cyan default"
message-hook '~n 7-' "color status red default"
message-hook '~n -3' "color status brightblack default"

color index brightblack default "~n 0-3" # low scores get fainter indexing
color index red default "~n 7-" # show important e-mails
color index blue default "~f .*@westexe\.demon\.co\.uk" # me

folder-hook "Ubuntu Users" set sort_aux=score

# Messages scoring 1 or less get automatically read.
set score_threshold_read=1

# spammers...
score "~f 'powell_curtis at hotmail.com'" -6
score "~f 'devxx9 at yahoo\.com'" -6
# You'll want to put other people in here depending on how they
# behave...

# Stuff I'm not interested in:
score '~s "wireless|wlan|802.11|wifi|wi-fi"' -1
score '~s "plone|zope"' -1
score '~s "turbotax"' -1
score '~s "nerolinux"' -1

# Try and do something with "is out of the office..."
score '~s "re.*is out of the office\."' +4
score '~s "is out of the office\."' -4
# should score down the original by 4, but not any responses.

# Include anyone from the alias file...
score "~f '(`awk -F'[<>]' '{ printf ("|%s", $2) }' ~/.mutt/aliases | cut -c2-`)' " +3

# Folks worth seeing:
score "~f '@ubuntu\.com'" =7
score "~f '@canonical\.com'" =7

# Subjects that might be interesting
score '~s " vi[ m$]"' +1
score '~s "mutt"' +1
score '~s "x86[\-_]64|amd64|i686|rpm|apt|yum|smp"' +1

# I also have .procmailrc support for labelling messages that are HTML
# only: these get marked down a lot.
# 
# Hope this helps,
# 
# James.

-- 
E-mail address: james | Found -- the gene that causes the orchestra to move.
@westexe.demon.co.uk  |     -- The megahal program, trained on my quote file.




More information about the ubuntu-users mailing list