<span style="font-family: verdana; color: rgb(51, 51, 255);">Thanks!  I'll splice this in tonight and, hopefully, will not have to be part of the captive audience for Karl's infernal surrogate-blog.</span><br style="font-family: verdana; color: rgb(51, 51, 255);">
<br><div><span class="gmail_quote">On 8/27/07, <b class="gmail_sendername">Todd Zullinger</b> <<a href="mailto:tmz@pobox.com">tmz@pobox.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Peter Connolly wrote:<br>> Finally, Todd, since it's obvious that Karl's prattle will never<br>> end, I'd be interested if you ever got that thread-killer working...<br><br>Here's a start, though there are surely still rough edges and broken
<br>parts.  You get both pieces if it breaks.<br><br>Stick these recipes somewhere in your procmail config:<br><br>:0 W<br>* ? formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:" -x"Return-Path:" \
<br>    | egrep -is -f $HOME/.procmail/killfile<br>{<br>    # add it to the killthread cache if it's not a reply<br>    :0 Wic: killthread.lock<br>    * ? formail -c -x 'References' -x 'In-Reply-To' | grep -s .
<br>    | formail -D 40960 $HOME/.procmail/killthread.cache<br><br>    :0<br>    /dev/null<br>}<br><br># get rid of any threads started by people in the killfile<br>:0<br>* ? thread-kill<br>/dev/null<br><br>(You'll want to change /dev/null to a mailbox for testing probably.)
<br><br>The thread-kill script is just a hackish shell script:<br><br>#!/bin/bash<br><br>function check_msgid() {<br>    cat | formail -c -x 'References' -x 'In-Reply-To' | \<br>    for i in $(awk '{split($0, a); for (i in a) {print a[i]}}'); do
<br>        if grep "$i" ~/.procmail/killthread.cache &>/dev/null; then<br>            echo 1<br>            break<br>        fi<br>    done<br>}<br><br>[ "`check_msgid`" == "1" ] && exit 0 || exit 1
<br><br>I'd be happy to hear about any improvements you make make to it.<br><br>--<br>Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: <a href="http://www.pobox.com/~tmz/pgp">www.pobox.com/~tmz/pgp</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<br>Every time I close the door on reality, it comes in through the<br>windows.<br><br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">
https://www.redhat.com/mailman/listinfo/fedora-list</a><br><br></blockquote></div><br>