procmail
[Top] [All Lists]

Re: forwarding to a user that is in the body of the message

2006-01-05 10:24:09
G.W. Haywood:
Ruud H.G. van Tol:
Juan A Seuc:

Submitted by: jgomez                E-mail      : <none>

I want to forward to the string that appears after "Submitted by:"

  :0
  * B ?? ^Submitted by: \/[^ ]+
  ! $MATCH

Is this wise?

Not at all. It is just an answer to the question. The [^ ]+ is less
strict than the question, if you take 'user' to mean a local user id.

The code would have forwarded Juans own message to this list, to some
local user 'jgomez'.
I was tempted to even leave out the newline anchor before Submitted.

   :0
   * B ?? ^Submitted by: \/[^ ]+
   {
      :0
      * MATCH ?? ^^[a-z0-9]+^^
      ! $MATCH
      :0E:
      suspect
   }

-- 
Grtz, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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