Marie followed up,
| Or maybe I should put the Else flag for efficiency, and I have then:
Yes, absolutely.
| :0
| * cond1
| * cond2
| * cond3
| { g1=1 }
|
| :0E
| * cond4
| * cond5
| { g2=1 }
|
| :0E
| * cond6
| { g3=1 }
|
| :0
| * 1^0 ! g1 ?? ^^^^
| * 1^0 ! g2 ?? ^^^^
| * 1^0 ! g3 ?? ^^^^
| {
| action
| ...
| action
| }
Two suggestions: first, unset the variables first to make sure they don't
have any other values left over from before.
Second, the last test to see whether any of them were set to 1 can be
streamlined.
g1 g2 g3 # unset the variables
:0
* cond1
* cond2
* cond3
{ g1=1 }
:0E
* cond4
* cond5
{ g2=1 }
:0E
* cond6
{ g3=1 }
g_all=$g1$g2$g3
:0
* g_all ?? 1
{
assignment or recipe
...
assignment or recipe
}
| I don't know if there is really a great loss of performance if I don't put
| the E flag.
There is enough to justify the E flag.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail