procmail
[Top] [All Lists]

Re: Collect IP-nrs

2002-03-17 16:45:18
I simplified the values of IP and REGEXP and MATEXP as following:
  IP=[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+
  REGEXP="^Received:${WSP}from${WSP}"
  MATEXP="^Received:${WSP}from${WSP}.*[^0-9.]\/$IP"
to make the log-file more easily readable.


The log-file now shows:

procmail: Assigning "INCLUDERC=/xxx/XIP.rc"
procmail: Assigning "MATCH="
procmail: Matched "194.109.6.50"
procmail: Match on
ed:[         ]+from[         ]+.*[^0-9.]\/[0-9]+[.][0-9]+[.][0-9]+[.][0-9]
+"
procmail: Assigning "XIP=[194.109.6.50]"
procmail: No match on
^Received:[  ]+from[  ]+(.*$)*\/^Received:[  ]+from[  ]+(.*$)*"


Ruud


_______________________________________________
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>