mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
introduce a select_with_uidvalidity function that helps us during configuration to know about last_seen_uid
This commit is contained in:
committed by
Floris Bruynooghe
parent
d14c6ea202
commit
9d18db9cae
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user