procmail
[Top] [All Lists]

Re: Addresses

1996-02-23 18:11:05
Brock Rozen asked,

| I have the following recipe:
| 
|       :0
|         * ^TOowner-.*@(synergy.Destek.net|destek.net|torah.org)
|         Project-Genesis/Owner-<list>
| 
| How could I turn it into something of the sort where the synergy would be 
| "optional". Something of the sort of
| 
| ((synergy.)?Destek.net|torah.org)
| 
| I don't believe that works, but I'm sure something else does.

Well, it doesn't work quite right, and something else does, but not for the
reasons you think.  Your use of the parentheses and question mark is correct,
but periods are magic, so you should escape those that you want to match only
a literal period:

    * ^TOowner-.*@((synergy\.)?destek\.net|torah\.org)

Unless you have the D flag on the recipe, the case of Destek or destek
doesn't matter.

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