procmail
[Top] [All Lists]

Re: Matching an empty field?

1997-08-18 11:07:52
Ken Hooper asked,

| I need to identify messages that have either the word "subject" or have
| nothing at all in the subject field.

I'm not sure of one thing: by "the word `subject'" did Ken mean *only* the
word "subject" and nothing more, or any string containing the word "subject"?

If the former,

  * ^Subject:[  ]*(subject)?[   ]*$

If the latter,

  * ^Subject:((.*\<)?subject\>|[        ]*$)

Each pair of brackets encloses a space and a tab.

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