Re: procmail recipe



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
.



Relevant Pages

  • procmail recipe
    ... I want to catch emails that have in the body of the message a line that ... thought I'd ask for advice. ...
    (comp.os.linux.misc)
  • Re: Linksys home network problems
    ... only two) diceware words joined by a special character, ... So I'll need a new router? ... "L" is presumed to stand for Linux, ...
    (alt.internet.wireless)
  • Re: Linksys home network problems
    ... only two) diceware words joined by a special character, ... So I'll need a new router? ... "L" is presumed to stand for Linux, ...
    (alt.internet.wireless)
  • Finding the ascii of special characters (NOT in charmap); an interesting problem
    ... I had to find that symbol somewhere on a webpage just to copy/paste ... Character Map under the same font the user was using to find the symbol. ... copy/paste the special character in Word's Special Character Replace dialog ...
    (microsoft.public.word.general)
  • Re: The Euler Equation - how to get clickable URLs
    ... URLs mentioned in emails and newsgroups posts become automatically clickable with most reading software. ... Special characters may end the URL prematurely, as the apostroph character does in http://en.wikipedia.org/wiki/Euler 's_formula. ...
    (sci.math)