procmail
[Top] [All Lists]

## Re: capturing the OR that succeeds ???

2004-05-14 07:56:04
```Toen wij Ruud H.G. van Tol kietelden, kwam er dit uit:
```
```Toen wij David W. Tamkin kietelden, kwam er dit uit:

```
```    MATCH # don't load it with eee; there may be no alphabet soup at
all

:0 B D fw h
* aaa|bbb|ccc|ddd|eee
* 9876543210^0 ()\/aaa
* 9876543210^0 ()\/bbb
* 9876543210^0 ()\/ccc
* 9876543210^0 ()\/ddd
* 1^0
| formail -I "X-Procmail: alphabet soup: \${MATCH-eee}"

:0 A
alphabet/soup
```
```
```
```This seems to do it too:

:0 B D fw h
* aaa|bbb|ccc|ddd|\/eee
* 1^0
* 9876543210^0 ()\/aaa
* 9876543210^0 ()\/bbb
* 9876543210^0 ()\/ccc
* 9876543210^0 ()\/ddd
| formail -I "X-Procmail: alphabet soup: \$MATCH"

:0 A
alphabet/soup
```
```

Optimizing combination:

MATCH # unset

:0 B D fw h
* aaa|bbb|ccc|ddd|\/eee
* 1^0
* 9876543210^0 ()\/aaa
* 9876543210^0 ()\/bbb
* 9876543210^0 ()\/ccc
| formail -I "X-Procmail: alphabet soup: \${MATCH-ddd}"

:0 A
alphabet/soup

--
Grtz, Ruud

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

```
 Current Thread capturing the OR that succeeds ???, Michael D Schleif Re: capturing the OR that succeeds ???, Ruud H.G. van Tol Re: capturing the OR that succeeds ???, Dallman Ross Re: capturing the OR that succeeds ???, Michael D Schleif Re: capturing the OR that succeeds ???, Dallman Ross Re: capturing the OR that succeeds ???, Ruud H.G. van Tol Re: capturing the OR that succeeds ???, David W. Tamkin Re: capturing the OR that succeeds ???, Dallman Ross Re: capturing the OR that succeeds ???, Ruud H.G. van Tol Re: capturing the OR that succeeds ???, Ruud H.G. van Tol <= Re: capturing the OR that succeeds ???, David W. Tamkin Re: capturing the OR that succeeds ???, Ruud H.G. van Tol Re: capturing the OR that succeeds ???, Dallman Ross Re: capturing the OR that succeeds ???, Ruud H.G. van Tol Re: capturing the OR that succeeds ???, Ruud H.G. van Tol Re: capturing the OR that succeeds ???, Dallman Ross Re: capturing the OR that succeeds ???, David W. Tamkin Re: capturing the OR that succeeds ???, Michael D Schleif Re: capturing the OR that succeeds ???, Dallman Ross Re: capturing the OR that succeeds ???, Professional Software Engineering