summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-02-26 06:04:58 +0100
committerErich Eckner <git@eckner.net>2021-02-26 06:04:58 +0100
commita72763126c1760e5d9a0db8c805acb24fb93f1f9 (patch)
treec96e682f2a0f7583473ff31cc65cd65cefd40c68
parent94561a0484708fb0d76d4df7d5227b3cc588f020 (diff)
downloadlogwatch-overrides-a72763126c1760e5d9a0db8c805acb24fb93f1f9.tar.xz
imapd: recognize more login error formats
-rw-r--r--imapd2
1 files changed, 1 insertions, 1 deletions
diff --git a/imapd b/imapd
index 0d30064..b658181 100644
--- a/imapd
+++ b/imapd
@@ -74,7 +74,7 @@ while (defined($ThisLine = <STDIN>)) {
# $MboxSize{$User} = $LeftSize;
# } elsif ( ($User,$Host) = ( $ThisLine =~ /^authentication failed for user (.*?) - (.*)/ ) ) {
# $LoginFailed{"$Host ($User)"}++;
- } elsif ( ($dummy,$Host) = ( $ThisLine =~ /^LOGIN FAILED, method=\S+, ip=\[(::ffff:)?([^\[\]]+)\]$/) ) {
+ } elsif ( (undef,$Host,undef) = ( $ThisLine =~ /^LOGIN FAILED, method=\S+, ip=\[(::ffff:)?([^\[\]]+)\](, .*)?$/) ) {
$LoginFailed{"$Host"}++;
} elsif ( ($User, $Host) = ( $ThisLine =~ /^Logout user=(.*?) host=(.*\[.*\])$/) ) {
$Logout{$User}{$Host}++;