mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-01-22 18:04:44 +00:00
Improve authentication failure detection with word boundaries in regex
Co-authored-by: DerLinkman <62480600+DerLinkman@users.noreply.github.com>
This commit is contained in:
parent
4e12ba99a0
commit
d5524689b4
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ while ($row = $sth->fetchrow_arrayref()) {
|
|||
my $stdout = $run_imapsync->('utf8');
|
||||
|
||||
# Check if authentication failed
|
||||
my $auth_failed = ($stdout =~ /LOGIN failed|authentication failed|AUTHENTICATIONFAILED/i);
|
||||
my $auth_failed = ($stdout =~ /\b(LOGIN failed|authentication failed|AUTHENTICATIONFAILED)\b/i);
|
||||
|
||||
# If authentication failed with UTF-8, retry with Latin-1 encoding for legacy passwords
|
||||
if ($auth_failed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue