[Users] File containing filter rules?

Pierre A. pa.news at free.fr
Wed Aug 21 05:37:55 UTC 2024


> I have a rather larger number of filter rules, and would like to search
> through them to locate a particular item.

I agree with the remark and the questions.  I had this problem (hundreds of rules) with Thunderbird, that is why I moved to Claws Mail.

I do not have a straightforward answer to your questions.

However, you can reduce the number of Filtering configuration entries by using regular expressions.

Let me describe my organization, for example.

I have a score of folders for my most important correspondants and at most one Filtering configuration entry for each folder (a From or To test usually -- and a regexp can be used there too).  Thus the Filtering configuration is as manageable as the mailbox menu.

Moreover, I have one filter with a rule

test "spamtest.sh %f %s %t" move "#mh/Mailbox/trash"

where spamtest.sh is a shell script with a regular expression, the alternative of about 400 regular expressions typical of the incoming spam.

This spamtest.sh is a text file, indeed almost what you are looking for.

(I also tried Spamassassin and I concluded it was too complicated and not efficient.) 






More information about the Users mailing list