procmail
[Top] [All Lists]

Re: improvements on recipe solicted

1998-06-08 11:31:44
Mark McCready asked (the problem is that more than one word gets into
$MATCH),

| I would like to improve the following recipe
| 
| :0 hw

For one thing, `h' is meaningless when the action line is "{", and `w'
is meaningful with "{" only if you're launching a clone, so both of those
flags are unnecessary.

| * ^Subject:.*unsubscribe \/.*
| {
|    LOCAL=$MATCH
|    :0
|    * LOCAL ?? (_dot_)*(_at_)\/.*

Not sure why you have another extraction operator there, and the leading .*
isn't needed.

|    {
|       SENDER=$LOCAL
|    }
| }

Anyhow,

  * ^Subject:.*unsubscribe +\/[^ ]+
 
If tabs are a problem too, change " +" to "[    ]+" and add a tab between
the other set of brackets (before or after the space, as long as the caret
is still first) as well.

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