Skip to main content

fetch_records

Function fetch_records 

Source
async fn fetch_records(
    session: &mut Imap,
    account: &Account,
    folder: &Folder,
    validity: u32,
    uids: &[u32],
    all: Option<&AllMail<'_>>,
) -> Result<(Vec<Record>, Vec<u32>), SyncError>
Expand description

One batch’s records, and the UIDs not kept: left out (All Mail), or given nothing for alone, so that they are not asked for again and again. A batch the server refuses whole is asked again one message at a time.