procmail
[Top] [All Lists]

Re: problems with MATCH

2000-06-22 02:27:59
From: SoloCDM <deedsmis(_at_)ris(_dot_)net>

You need to start another recipe without a condition and just ":0" for
the line formail.

:0
* ^To[  ]*:[    ]*\/[a-zA-z0-9]+(_at_)[a-zA-Z0-9]+\(_dot_)(_dot_)*
{  ADR = "$MATCH" }

:0
| (formail -tr -i"Subject: The Address $ADR is going to expire" ; ...

No, this would catch all mail that has made it this far in the rc.
You need the A flag in this instance.  (There are actually several
ways to do it, as someone already pointed out.  "There's [always]
more than one way to skin a cat" when it comes to computers.)

Anyway,

        :0 A
        | formail whatever

The `A' says only do this recipe if the conditions in the previous
recipe were also met.

-- 
    \     .-.     .-.     .-.     .-.     .-.     .-.     .-.     /
     \-d-/-m-\-a-/-n-\-(_at_)-/-n-\-e-/-t-\-c-/-o-\-m-/-.-\-c-/-o-\-m-/
      '-'     '-'     '-'     '-'     '-'     '-'     '-'     '-'

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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