Skip to main content

fetch_batch

Function fetch_batch 

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

One batch: its records, and the UIDs of All Mail’s messages left out (AllMail).