procmail
[Top] [All Lists]

Re: if this - than that - else this and that ;) - X-Priority - HIGH

2001-07-18 18:01:33
thx for that help.. now i have another tricky problem... ;)
maybe someone can help ?

i first started in this way.....

:0   
* ^Subject:.*Notification of CM transfer Request for Domain [.*].*
{
        :0   
        * ^status:.*\[CORE-81\].*       

        :0 a
                .............
}

what i want:

if * ^Subject:.*Notification of CM transfer Request for Domain [.*].* matches

-----> check the body for: ^status:.*\[CORE-99\].*

if $MATCH = 99 -----> copy to another user ELSE do nothing.....

can someone give me a hint her ??

thx a lot !!!!

* michab <iniquity(_at_)gmx(_dot_)de> [010716 07:37]:
 hi al..

 i know there are situations where i can say " if this and this - than do 
that"

 with

 ":A" i think....

 can someone give me a little example for

 IF "X-Priority: 3" was found PLEASE check if "X-MSMail-Priority: Normal" is 
also found..

 does anyone have an idea howto grep the "important" mails ??

 thx a lot !
 micha
 -- michab, iniquity(_at_)gmx(_dot_)de on 16.07.2001

You can do this w/ scoring.  Here's an example (untested, of course!):

:0:
* -1^0
*  1^0 ^X-Priority: 3
*  1^0 ^X-MSMail-Priority: Normal
saveme

Or if you want to do it the 'if this and this' way:

:0:
* ^X-Priority: 3
dosomething

:0A:
* ^X-MSMail-Priority: Normal
dosomethingelse


-- michab, iniquity(_at_)gmx(_dot_)de on 19.07.2001

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