procmail
[Top] [All Lists]

Re: (^TO|Subject:.) question

1999-08-14 08:21:59
Dr. Daia suggested to S.Toms:

| If you just want to catch messages with either
| 
|       X-Mailinglist: suse-linux-e(_at_)suse(_dot_)com
| or
|       Subject: [SLE] something
| 
| just use two recipes:
| 
|       :0:
|       ^Subject:.*\[SLE\]
|       suse
| 
|       :0:
|       ^X-Mailinglist:.*suse-linux-e@
|       suse

Or combine the two, since they have the same action:

     :0:
     * ^(Subject:.*\[SLE]|X-Mailinglist:.*suse-linux-e@)
     suse

While we're at it, right brackets are literal unless you've opened a left
bracket, so you need to escape only the left bracket if both are literal.

(The suse-linux-e people should be tarred and feathered for using
 X-Mailinglist: instead of X-Mailing-List:.  Make that tarred and gzipped.)

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