Bowie Bailey wrote:
From: Arvinn Løkkebakken [mailto:[EMAIL PROTECTED]

Bowie Bailey wrote:

From: Arvinn Løkkebakken [mailto:[EMAIL PROTECTED]


Bowie Bailey wrote:


From: Bowie Bailey


/^Received: from .*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\)[\n\t
]+by frontendhost.example.com /:w

I allready used an if around it. I just didn't paste it in.  But I
guess you are right that regexp doesn't match. However.. it still
doesn't with your corrections. I been tweaking it for hours so I
guess I just should give up:) Thanks for the help anyway!

Post an example header that you expect it to match and I'll see if I
can figure out what's wrong.

Received: from camomile.cloud9.net (camomile.cloud9.net [168.100.1.3])
        by evercom.sandakeronline.com (Postfix) with ESMTP id D211B27
        
Hopefully this line won't break on the way. The values I want to
pull out there is the hostname camomile.cloud9.net (not the helo
string) and the ip.


I did a bit of testing, and this pattern works for me:

/^Received: from.*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\)
[\n\t ]+by evercom\.sandakeronline\.com/

(I manually split it this time to avoid any confusion)

The ":w" may have been what was messing you up.  This caused the
pattern to be matched against the body rather than the header (":wh"
may have been what you were looking for).  Also, the ":w" causes the
^ and $ characters to be interpreted differently so that they match
the beginning of the section rather than each line.

You should be able to use the pattern without any modifiers.  This
will give you a line-by-line match on the headers.  Multiline headers
will automatically be concatenated so that they can be searched as a
single line.

Bowie



Great. Thank you very much.

Arvinn


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to