procmail
[Top] [All Lists]

passing MATCH

1999-08-20 18:51:59
  Got a quick question, I'm playing around with different rules to see how
they work, what they do, etc.. and I'm playing with the following

MAILLISTS=${PMDIR}/rc.mailinglists

:0h
* ? test -f ${MAILLISTS} && (formail -zx TO_ | grep -i -f ${MAILLISTS})

can I use TO_ in that, or should I list all the headers to check? Anyway, 
what I'm actually wondering is if I can catch the line in the $MAILLISTS
for example, its checking address(_at_)mailinglist(_dot_)com if its successful 
how
can I pass that particular address to the following

{
  :0
  * MATCH ?? address(_at_)mailinglist(_dot_)com
  {
    # save to appropriate mailing-list folder
    :0:
    $MATCH
  }
}

I'm assuming it would be MATCH but when I checked, it was an empty
variable.
-- 
     S.Toms - tomas(_at_)primenet(_dot_)com - http://www.primenet.com/~tomas
                S.u.S.E. Linux v6.1+ - Kernel 2.2.11

Experience is the worst teacher.  It always gives the test first and
the instruction afterward.

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