mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
it compiles with async-imap, remove local dependency
This commit is contained in:
committed by
holger krekel
parent
4b8252e001
commit
1687e8d26f
@@ -569,7 +569,7 @@ fn try_smtp_one_param(context: &Context, param: &LoginParam) -> Option<bool> {
|
||||
pub fn dc_connect_to_configured_imap(context: &Context, imap: &Imap) -> libc::c_int {
|
||||
let mut ret_connected = 0;
|
||||
|
||||
if imap.is_connected() {
|
||||
if async_std::task::block_on(async move { imap.is_connected().await }) {
|
||||
ret_connected = 1
|
||||
} else if !context.sql.get_raw_config_bool(context, "configured") {
|
||||
warn!(context, "Not configured, cannot connect.",);
|
||||
|
||||
Reference in New Issue
Block a user