Reply to comment

mutt integration

Hi,

I am training crm114 with a few shortcuts from within mutt (sorry, very long lines):


macro index \es "|grep -a -v \"X-CRM114-\" |crm -u /home/jrschulz/.crm114 /home/jrschulz/.crm114/mailfilter.crm --force --learnspam |grep -a \"X-CRM114-\" \n=spam\n" "crm114 learn as spam"

macro pager \es "|grep -a -v \"X-CRM114-\" |crm -u /home/jrschulz/.crm114 /home/jrschulz/.crm114/mailfilter.crm --force --learnspam |grep -a \"X-CRM114-\" \n=spam\n" "crm114 learn as spam"

macro index \eh "|grep -a -v \"X-CRM114-\" |crm -u /home/jrschulz/.crm114 /home/jrschulz/.crm114/mailfilter.crm --force --learnnonspam |grep -a \"X-CRM114-\" \n" "crm114 learn as ham"

macro pager \eh "|grep -a -v \"X-CRM114-\" |crm -u /home/jrschulz/.crm114 /home/jrschulz/.crm114/mailfilter.crm --force --learnnonspam |grep -a \"X-CRM114-\" \n" "crm114 learn as ham"

That way you can just use crm114's header to sort mails into the proper directories and press two keys to tell crm114 when it failed (Esc-h for "this is ham", Esc-s for "this is spam).

Additionally, you can tell mutt how to recognize the spam score by using

spam "^X-CRM114-Status: SPAM . pR: ([-0-9]+\.[0-9])" "%1"

Then you can use the pattern ~H to colorize spam in the index. You can even sort your mailbox containing spam (or "Unsure") by the spam score assigned by crm114.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options