procmail
[Top] [All Lists]

realizing thread-kill with procmail

2001-03-07 16:16:40
Hello,

I am planning to implement the following:

When I do not want to read a thread in a mailinglist, I still want
to archive the mails. So I thought that I could let them be marked
read automatically by a procmail script.

My first attempt is this:


        SUBJECT=`formail -zxSubject:`

        :0 fh
        * ? $HOME/bin/threadgrep "$SUBJECT"
        | formail -I "Status: RO"

threadgrep looks like this:

echo $* | grep -f ~/.procmail/kill-thread -

and in ~/.procmail/kill-thread I have a list of subjects which I
want marked read.

Perhaps someone could comment on these ? Something to make better ?

Gruß,

Sebastian

-- 
"No worries." - Rincewind

Sebastian Helms   -  mailto:sebastian(_at_)helms(_dot_)sh (PGP available)
_______________________________________________
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>