summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--courier2
1 files changed, 1 insertions, 1 deletions
diff --git a/courier b/courier
index 82b8138..ba0a21b 100644
--- a/courier
+++ b/courier
@@ -627,7 +627,7 @@ while (defined($ThisLine = <STDIN>)) {
$Logout2{$proto}{$User}++;
$LogoutSize{$proto}{$User}{$Host} += $Size;
$LogoutSize2{$proto}{$User} += $Size;
- } elsif ( ($Host) = ( $ThisLine =~ /^LOGIN FAILED, ip=\[(.*?)\]/ ) ) { ## pop3login, imaplogin, courierpop3login, pop3d, imapd
+ } elsif ( (undef, $Host) = ( $ThisLine =~ /^LOGIN FAILED, (method=\S+, )?ip=\[(.*?)\]/ ) ) { ## pop3login, imaplogin, courierpop3login, pop3d, imapd
#example line
#LOGIN FAILED, ip=[::ffff:192.168.200.199]