[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: mutt message scoring: body/header?



* Brian Nelson <nelson@bignachos.com> spake thus:
> "Karsten M. Self" <kmself@ix.netcom.com> writes:
> 
> > I'm playing with mutt message scoring.  It's interesting, but not quite
> > as powerful as I'd like.
> 
> I haven't played with it yet, but gnus is supposed to have a superior
> scoring system.  You may want to check it out if you're really
> interested in scoring.

Here's an exercept from my time with emacs/gnus. I switched to mutt some
time ago now, and don't really remember how it all worked. You might
find it useful though. The file is called all.SCORE and lives in the
~/News directory that Gnus uses.

(
 (read-only t)
 ;; we will on the subject line here.
 ("subject"
  ;; ALL CAPS SUBJECTS
  ("^\\([Rr][Ee]: +\\)?[^a-z]+$" -50 nil R)
  
  ;; Make Money
  ("$$" -100 nil s)
  
  ;; I'm important and I've got exclamation marks to prove it!!!
  ("!!" -50 nil s)
  ("!!!!" -100 nil s)
  
  ;; several pipes are also annoying
  ("||" -50 nil s)
  ("||||" -100 nil s)
  
  ;; question marks annoy me to bits
  ("???" -50 nil s)
  ("?????" -100 nil s)
  
  ;; Empty subjects are worthless!
  ("^ *\\([(<]none[>)]\\|(no subject\\( given\\)?)\\)? *$" -100 nil r)
  
  ;; Sometimes interesting announces occur!
  ("ANN?OU?NC\\(E\\|ING\\)" +50 nil r)
  
  ;; Some people think they're on mailing lists
  ("\\(un\\)?sub?scribe" -100 nil r)
  
  ;; Stop Micro$oft NOW!!
  ("\\(m\\(icro\\)?[s$]\\(oft\\|lot\\)?-?\\)?wind?\\(ows\\|aube\\|oze\\)?[- ]*\\('?95\\|NT\\|3[.]1\\|32\\|M[Ee]\\)" -50 nil r)
  
  ;; I won't buy anything
  ("\\(for\\|4\\)[- ]*sale" -100 nil r)
  
  ;; SELF-DISCIPLINED people
  ("\\[[^a-z0-9 \t\n][^a-z0-9 \t\n]\\]" +100 nil r)
  
  ;; No junk mail please!
  ("please ignore" -500 nil s)
  ("test" -500 nil e))
 
 ;; match the "from" header
 ("from"
  
  ;; To keep track of posters from my site
  (".*stigbrau@online\\.no" +1000 nil r)
  (".*s\\.brautaset@w.*\\.ac\\uk" +1000 nil r))

 ;; match "followup" header
 ("followup"
  ;; Keep track of answers to my posts
  (".*stigbrau@online\\.no" +1000 nil r)
  (".*S\\.brautaset@w.*\\.ac\\uk" +1000 nil r))
 
 ;; you get the point eh?
 ("lines"
  ;; Some people have really nothing to say!!
  (1 -50 nil <=))
 
 ;; depreciate articles with score lower than -100,
 ;; do not even show the ones with -150 or less.
 (mark -100)
 (expunge -150))

Regards,
Stig

-- 
brautaset.org
Registered Linux User 107343



Reply to: