https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6460

--- Comment #4 from Karsten Bräckelmann <[email protected]> 2010-07-23 
10:06:45 EDT ---
(In reply to comment #1)
> I'd suggest that the regex needs to ensure that it is hitting on an IP address
> rather than a host name that happens to start with a number and a dot.

Inserting a positive look-ahead after the equal in the RE would do, only
accepting an IP by ensuring a space as delimiter.
  /(?=\d+\.\d+\.\d+\.\d+ )/

Another approach would be, to append a trailing part to the RE, enforcing only
IP style, non-hostname chars until the delimiting space.
  /[0-9.]+ /

Devs, comments, thoughts?

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to