[Users] [Bug 2627] New: Filtering does not work on NNTP

Leon Fisk lfisk at iserv.net
Thu Mar 15 13:28:51 CET 2012


On Tue, 13 Mar 2012 16:13:31 +0100 (CET)
noreply at thewildbeast.co.uk wrote:

>http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2627
>
>           Summary: Filtering does not work on NNTP
>           Product: Claws Mail
>           Version: 3.8.0
>          Platform: PC
>        OS/Version: Linux
>            Status: NEW
>          Severity: normal
>          Priority: P3
>         Component: Filtering
>        AssignedTo: users at lists.claws-mail.org
>        ReportedBy: flobber at mailinator.com
>
>
>The global filters (Configuration -> Filtering) are not applied to new news
>articles (NNTP).
>
>I tried to filter on something like "if from is in addressbook trolls then mark
>as read" to implement something like a kill-file.  Unfortunately, it only works
>on mail accounts but not on NNTP accounts.
>
>Setting that rule as a folders's processing rules does work, but then Claws
>scans ALL messages of that folder (read and unread) each time I open it.  That
>takes too long on newsgroups with thousands of messages.  Processing on start
>would not help as I usually never quit Claws-Mail.
>
>Is it possible to filter NNTP articles or alternatively process only NEW
>articles?

Yes, it helps a lot to speed up the process. I copied several
NNTP group processing rules from my "matcherrc" file in .claws to give
you some ideas:

===
[#news/Et-Sept/rec.crafts.metalworking]
enabled rulename "Delete older than 17 days & read" age_greater 17 & ~unread delete
enabled rulename "Bozo Groups" header "xref" regexpcase "limbaugh|politics|survivalism|tricks|kooks|comp.cad|nuclear|gossip|rights|marketplace|religion|\\.fan" & ~watch_thread & unread ignore
enabled rulename "Mark Bozo's Read" from regexpcase "too_many_tools|basil karlo|benny fishhole|Lib Loo|burled frau|egalitarian|wholetruth|createstuf|asheksp|zhang|snothead|pogonip" & unread mark_as_read
enabled rulename "Delete ignored & older than 3 days" ignore_thread & age_greater 3 & subject regexp "^Re:" delete
enabled rulename "Color mark Bozo's" from regexpcase "gunnerasch|richg|pittmanpirate|terrell|steveb\\@" & unread color 3

[#news/Et-Sept/rec.gardens]
enabled rulename "Delete older than 21 days" age_greater 21 delete
enabled rulename "Delete ignored and older than 3 days" ignore_thread & age_greater 3 & subject regexp "^Re:" delete
enabled rulename "windows-1256" header "content-type" matchcase "windows-1256" & unread ignore
enabled rulename "Flag bozos" from regexpcase "wildbilly|charlie|brooklyn1|gunner" & unread color 3
===

Watch the word-wrap. Each line should start with "enabled rulename".
You can edit this file directly, but I think it would be best if Claws
wasn't running at the time. You can also enter it using Claws
"Processing..." menu selections. _Be aware_ though that the syntax is
slightly different between editing it directly or using the menu way.

-- 
Leon
Claws 3.7.9, Ubuntu Karmic 9.10



More information about the Users mailing list