procmail
[Top] [All Lists]

Re: how to strip SA's message markup?

2004-02-21 19:44:14
Toen ik Gary Funck kietelde, kwam er dit uit:

 # Pick up envelope From_
 :0
 *$ ^^\/From[$SPACE][^$]*
 { FROM_ = "$MATCH" }


That [^$] is all characters that are not dollarsigns. Since you won't 
often find dollarsigns in the From_header, that recipe will often 
work as expected.

Regexp-matching already stops at the first EOL, 
unless $ (or ^) is specifically mentioned.

  # Pick up envelope From_
  :0
  *$ ^^\/From[$SPACE].*
  { FROM_ = "$MATCH" }

-- 
Affijn, Ruud

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail