Re: Need a regex. How to trap messages with no Subject.
Jason L Tibbitts III <[email protected]> 25 Dec 2006 12:33:24 -0600
| Newsgroups | gmane.mail.majordomo.majordomo2.devel |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "SWO" == Steven W Orr <[email protected]> writes: SWO> but it seems like this won't work for subjects that are not SWO> filled out. In what way does it not work? There's no subject header that matches your pattern in a message with no subject header. Don't forget that you can stick an exclamation mark in front of a pattern to trigger if the pattern doesn't match. So "!/^subject:\s*\S+/" matches if there's nothing that looks like "subject:", perhaps followed by blank space, followed by at least one non-space character. Do 'help admin_body' for a full explanation of the patterns. But I'm not completely sure just what you mean by "filled out". Just using "Subject: -" is enough for the above pattern to match. - J<