introduce a select_with_uidvalidity function that helps us during configuration to know about last_seen_uid

This commit is contained in:
holger krekel
2019-11-30 12:58:58 +01:00
committed by Floris Bruynooghe
parent d14c6ea202
commit 9d18db9cae
2 changed files with 77 additions and 58 deletions

View File

@@ -360,8 +360,13 @@ pub fn JobConfigureImap(context: &Context) {
error!(context, "configuring folders failed: {:?}", err);
false
} else {
// XXX call fetch_from_single_folder to set last_seen_uid
true
let res = imap.select_with_uidvalidity(context, "INBOX");
if let Err(err) = res {
error!(context, "could not read INBOX status: {:?}", err);
false
} else {
true
}
}
}
17 => {