Update to the latest rust-imap

It uses imap-proto 0.8.1 instead of outdated 0.7.0.
This commit is contained in:
Alexander Krotov
2019-09-03 00:59:21 +03:00
parent 6288909481
commit 489f25940f
3 changed files with 12 additions and 14 deletions

View File

@@ -554,13 +554,11 @@ impl Imap {
warn!(context, 0, "IMAP-LOGIN as {} ok but ABORTING", lp.mail_user,);
(true, false, false)
} else {
let can_idle = caps.has("IDLE");
let has_xlist = caps.has("XLIST");
let caps_list = caps.iter().fold(String::new(), |mut s, c| {
s += " ";
s += c;
s
});
let can_idle = caps.has_str("IDLE");
let has_xlist = caps.has_str("XLIST");
let caps_list = caps
.iter()
.fold(String::new(), |s, c| s + &format!(" {:?}", c));
log_event!(
context,
Event::IMAP_CONNECTED,