procmail
[Top] [All Lists]

Re: how to filter out threads that I initiated or I participated in?

2009-04-08 11:04:24
On Tue, 7 Apr 2009, Zhengquan Zhang wrote:
but some mailinglist is such high volume that often I got my thread or
threads I joined in lost in lots of messages.

Sounds liek you want to catch messages with just the same Subject as a thread you have posted on, even if they no longer quote you....

How about dynamic rulset generation?

In your main RC file:

INCLUDERC /path/to/subjectsrcfile

:0 c
* ^Newsgroups:.*comp\.mail\.mutt
* ^From_youraddress(_at_)yourdomain(_dot_)tld
* ^Subject: (Re. |\[mailinglistsubjectag\] )*\/......*
| echo -e "\n:0\n* ^Subject:.*$MATCH\nmutt-threadsiamin/\n" >> subjectsrcfile

The use of '.....' prevents blank/short subject lines from triggering....
For this simple form, I auto-generated rules that just deliver matching mail to a new folder. You could also get fancy and 'formail' the message before dropping it into the existing folder, etc, etc.

By doing the 'INCLUDERC' first, you *should* prevent multiple redundant
triggers of the 'create a rule' rule when you add more posts to a thread. But your first posting will go to your regular mutt-users/ folder.

Of course, you would still have to frequently manually edit the file to remove old rules/subjects.... Don't let that rc file grow to large!

Hope this helps!

- Charles

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>