What if user isn't set at all

This commit is contained in:
Jamie Cameron
2025-08-20 16:17:37 -07:00
parent 3925dd829b
commit 06744537d6

View File

@@ -2073,7 +2073,8 @@ if (!$h && $folder->{'server'} eq '*') {
}
}
$imapcmd || return (0, "Dovecot imap command not found");
$imapcmd .= " -u ".($folder->{'user'} eq "*" ? $remote_user : $folder->{'user'});
$imapcmd .= " -u ".($folder->{'user'} eq "*" ||
!$folder->{'user'} ? $remote_user : $folder->{'user'});
print DEBUG "Running IMAP server $imapcmd\n";
eval "use IPC::Open3";
if ($@) {