procmail
[Top] [All Lists]

Re: MATCH problem

2003-01-19 11:43:52
fleet(_at_)teachout(_dot_)org skribis:

 :0
 * From:[ ].*\/\(_at_)(_dot_)*[^\>]
 * $MATCH ?? Message-Id:[ ].*\/\(_at_)(_dot_)*[^\>]
 foundit

 The log shows:
 procmail: Assigning "MATCH="
 procmail: Matched "@m1s73r.gsjs.com"
 procmail: Match on "From:[      ].*\/\(_at_)(_dot_)*[^\>]"
 procmail: No match on "Message-Id:[     ].*\/\(_at_)(_dot_)*[^\>]"

 So what am I doing wrong?

I assume you want to compare the host.domain.tld parts
of the From against that of the Message-id.

  From: some(_dot_)person(_at_)domain(_dot_)tld
  Message-Id:
<012345$6789.abcd-efgh(ijklm)nopqrstuvwxyz$hihi(_at_)some-host(_dot_)domain(_dot_)tld>

The 'domain.tld' (of the From) is at the end of the 'some-host.domain.tld'
(of the Message-Id). Is that what you want to test?

One way to Rome:

  :0:
  * ^From:[  ](_dot_)+(_at_)\/.+($|[^-a-z0-9.])
  * MATCH ?? ^^\/[-a-z0-9.]+
  * ^Message-Id:[  ](_dot_)*(_at_)(_dot_)*${MATCH}($|[^-a-z0-9.])
  foundit


I also changed the :0 into :0: (for lock-protecting 'foundit').

-- 
Affijn, Ruud

Easy people don't care too much.

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

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