Re: procmail recipe
- From: Paul Colquhoun <postmaster@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 06:19:04 GMT
On Thu, 31 Aug 2006 06:02:01 GMT, felmon davis <davisf@xxxxxxxxx> wrote:
| greets!
|
| I want to catch emails that have in the body of the message a line that
| begins with 'from' and does not contain special character, for
| instance doesn't contain '@' or '.' or ';'.
|
| so "from hell" should be caught but not "devil@xxxxxxxx" (for instance).
|
| what I've got (several experiments) is faulty; here's my latest attempt:
|
|:0 B:
| * ^from.*[^\.\@\-].*
|| formail etc etc
|
| so I'm trying to match on strings following 'from ' which don't have
| special chars.
|
| thought I'd ask for advice.
That will match as long as there is one character on the line that is
not in the set '.@;'.
Have you tried:
* ^from[^\.\@\-]*$
That requires every character in the line (after the 'from') to be in
the set "not '.@;'"
--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
.
- Follow-Ups:
- Re: procmail recipe
- From: felmon davis
- Re: procmail recipe
- References:
- procmail recipe
- From: felmon davis
- procmail recipe
- Prev by Date: procmail recipe
- Next by Date: problems connecting to a lan from another subnet
- Previous by thread: procmail recipe
- Next by thread: Re: procmail recipe
- Index(es):
Relevant Pages
|