mirror of
https://github.com/FliegendeWurst/inboxid.git
synced 2024-11-22 00:45:01 +00:00
sync: download metadata selectively
This commit is contained in:
parent
33bdff42fb
commit
7e7d6b616e
@ -46,6 +46,10 @@ fn sync(
|
|||||||
|
|
||||||
for &name in &names {
|
for &name in &names {
|
||||||
let mailbox = name.name();
|
let mailbox = name.name();
|
||||||
|
// if the user specified some mailboxes, only process those
|
||||||
|
if !mailboxes.is_empty() && !mailboxes.contains(&mailbox) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
println!("indexing {}", mailbox);
|
println!("indexing {}", mailbox);
|
||||||
let resp = imap_session.examine(mailbox)?;
|
let resp = imap_session.examine(mailbox)?;
|
||||||
let uid_validity = resp.uid_validity.unwrap();
|
let uid_validity = resp.uid_validity.unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user