procmail
[Top] [All Lists]

Re: writing a 'grepthread' script

2003-02-05 11:49:08
Zack Brown skribis:

It would be great if there were a 'grepthread' tool, something like
'grepmail', except it would output whole threads instead of individual
emails, if any post in that thread contained the target regex.

In the References-header you could find the Message-Ids of the previous 
messages. Add those Ids to a file. Set up a scheduled 'make' that runs 
procmail/fgrep with that id-file over your mail-archives, so that it 
moves (or copies) the parent-message(s) to your regexp-mailbox. Of course 
also check the References in the parent message(s) for new id's to add 
to the id-file.

-- 
Affijn, Ruud


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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