<span style="font-family: verdana; color: rgb(51, 51, 255);">Thanks!&nbsp; I&#39;ll splice this in tonight and, hopefully, will not have to be part of the captive audience for Karl&#39;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> &lt;<a href="mailto:tmz@pobox.com">tmz@pobox.com</a>&gt; 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>&gt; Finally, Todd, since it&#39;s obvious that Karl&#39;s prattle will never<br>&gt; end, I&#39;d be interested if you ever got that thread-killer working...<br><br>Here&#39;s a start, though there are surely still rough edges and broken
<br>parts.&nbsp;&nbsp;You get both pieces if it breaks.<br><br>Stick these recipes somewhere in your procmail config:<br><br>:0 W<br>* ? formail -x&quot;From&quot; -x&quot;From:&quot; -x&quot;Sender:&quot; -x&quot;Reply-To:&quot; -x&quot;Return-Path:&quot; \
<br>&nbsp;&nbsp;&nbsp;&nbsp;| egrep -is -f $HOME/.procmail/killfile<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;# add it to the killthread cache if it&#39;s not a reply<br>&nbsp;&nbsp;&nbsp;&nbsp;:0 Wic: killthread.lock<br>&nbsp;&nbsp;&nbsp;&nbsp;* ? formail -c -x &#39;References&#39; -x &#39;In-Reply-To&#39; | grep -s .
<br>&nbsp;&nbsp;&nbsp;&nbsp;| formail -D 40960 $HOME/.procmail/killthread.cache<br><br>&nbsp;&nbsp;&nbsp;&nbsp;:0<br>&nbsp;&nbsp;&nbsp;&nbsp;/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&#39;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>&nbsp;&nbsp;&nbsp;&nbsp;cat | formail -c -x &#39;References&#39; -x &#39;In-Reply-To&#39; | \<br>&nbsp;&nbsp;&nbsp;&nbsp;for i in $(awk &#39;{split($0, a); for (i in a) {print a[i]}}&#39;); do
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if grep &quot;$i&quot; ~/.procmail/killthread.cache &amp;&gt;/dev/null; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fi<br>&nbsp;&nbsp;&nbsp;&nbsp;done<br>}<br><br>[ &quot;`check_msgid`&quot; == &quot;1&quot; ] &amp;&amp; exit 0 || exit 1
<br><br>I&#39;d be happy to hear about any improvements you make make to it.<br><br>--<br>Todd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OpenPGP -&gt; 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>