Skip to main content

claimed

Function claimed 

Source
async fn claimed(
    session: &mut Imap,
    jobs: Vec<(u32, Job)>,
    marks: bool,
    condstore: bool,
    done: &mut Done,
) -> Result<Vec<(u32, Job)>, SyncError>
Expand description

The jobs this device may do: those still unread (or tried before), not marked by another device, still in the inbox, and those another device marked and left (Found::Stuck), their mark taken off first; then marked, each only if nothing changed it since its flags were read (CONDSTORE), else all at once.