mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
imap: resultify Imap.connect
This commit is contained in:
committed by
link2xt
parent
0b743c6bc3
commit
dd682e87db
@@ -445,12 +445,12 @@ async fn try_imap_one_param(
|
||||
);
|
||||
info!(context, "Trying: {}", inf);
|
||||
|
||||
if imap.connect(context, param, addr, oauth2).await {
|
||||
if let Err(err) = imap.connect(context, param, addr, oauth2).await {
|
||||
info!(context, "failure: {}", err);
|
||||
false
|
||||
} else {
|
||||
info!(context, "success: {}", inf);
|
||||
true
|
||||
} else {
|
||||
info!(context, "failure: {}", inf);
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user