procmail
[Top] [All Lists]

Re: More compact mailing list filter?

1997-09-15 11:36:51
Steven Whatley <swhatley(_at_)blkbox(_dot_)com> wrote:
I was wonder if there was a mroe compact recipe for filtering mailing
lists.  Currently I have:
...
What would be nice is to have a tab or space delitimed file like:

anothernet    IN.misc
cagtag        IN.cagtag
efs           IN.misc
nasanews      IN.misc
procmail      IN.procmail

$ cat > makefile
rc.lists: list.text
        genlistrc < list.txt > rc.lists
^D
$ cat > genlistrc
#!/usr/local/bin/perl -w
while(<>){
        next if /^#/;
        /^\s*(\S+\)\s+(\S+)/;
        if (defined($1) && defined($2)) {
                print ":0:\n* ^TO$1\n$2\n";
        }
}
exit(0);
^D
$ chmod 755 genlistrc
$ echo "Untested."
Untested
$

Elijah
------
I /dev/null dupes, no need to CC list posts.  It is not my responsibility to
prove to you my mail is not spam, if mail to you bounces it will not be resent.

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