New Computer

Peter Connolly psconnolly at gmail.com
Mon Aug 27 20:44:51 UTC 2007


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.

On 8/27/07, Todd Zullinger <tmz at pobox.com> wrote:
>
> Peter Connolly wrote:
> > Finally, Todd, since it's obvious that Karl's prattle will never
> > end, I'd be interested if you ever got that thread-killer working...
>
> Here's a start, though there are surely still rough edges and broken
> parts.  You get both pieces if it breaks.
>
> Stick these recipes somewhere in your procmail config:
>
> :0 W
> * ? formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:" -x"Return-Path:"
> \
>     | egrep -is -f $HOME/.procmail/killfile
> {
>     # add it to the killthread cache if it's not a reply
>     :0 Wic: killthread.lock
>     * ? formail -c -x 'References' -x 'In-Reply-To' | grep -s .
>     | formail -D 40960 $HOME/.procmail/killthread.cache
>
>     :0
>     /dev/null
> }
>
> # get rid of any threads started by people in the killfile
> :0
> * ? thread-kill
> /dev/null
>
> (You'll want to change /dev/null to a mailbox for testing probably.)
>
> The thread-kill script is just a hackish shell script:
>
> #!/bin/bash
>
> function check_msgid() {
>     cat | formail -c -x 'References' -x 'In-Reply-To' | \
>     for i in $(awk '{split($0, a); for (i in a) {print a[i]}}'); do
>         if grep "$i" ~/.procmail/killthread.cache &>/dev/null; then
>             echo 1
>             break
>         fi
>     done
> }
>
> [ "`check_msgid`" == "1" ] && exit 0 || exit 1
>
> I'd be happy to hear about any improvements you make make to it.
>
> --
> Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Every time I close the door on reality, it comes in through the
> windows.
>
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20070827/a2cec8cf/attachment-0002.html 


More information about the users mailing list