Closed biji closed 5 years ago
Thanks for this PR. I think it can not be applied like that, the fix works for this kind of lines but can break others if there is no ;
. You can fix it using the following regexp that might handle all cases.
$reject =~ /(?:client|helo) .* (blocked using [^;]+)/i
Regards,
$reject =~ /(?:client|helo) .* (blocked using [^;]+)/i
Does not work:
I haven't found better regex yet: link
Sorry I've not taken care that there is two occurrences of blocked using
, in this case this might work:
$reject =~ /(?:client|helo) (?:.*?) (blocked using [^;]+)/i
tested and it works :+1:
Thanks!
fix parsing: Client host [1.1.1.1] blocked using b.barracudacentral.org; Client host blocked using Barracuda Reputation, see http://www.barracudanetworks.com/reputation/?r=1&ip=1.1.1.1