Do not schedule delayed DeleteMsgOnImap jobs

All IMAP deletion jobs are scheduled either immediately, or later by
job::add_imap_deletion_jobs().
This commit is contained in:
Alexander Krotov
2020-03-08 01:24:17 +03:00
parent bdb2a47743
commit efb7280e99
3 changed files with 8 additions and 75 deletions

View File

@@ -1410,28 +1410,6 @@ pub(crate) fn rfc724_mid_exists(
.map_err(Into::into)
}
/// Returns all MsgIds corresponding to Message-ID
pub(crate) fn get_all_by_rfc724_mid(
context: &Context,
rfc724_mid: &str,
) -> Result<Vec<MsgId>, Error> {
ensure!(!rfc724_mid.is_empty(), "empty rfc724_mid");
let msg_ids = context.sql.query_map(
"SELECT id FROM msgs WHERE rfc724_mid=?",
params![rfc724_mid],
|row| row.get::<_, MsgId>("id"),
|ids| {
let mut ret: Vec<MsgId> = Vec::new();
for id in ids {
ret.push(id?);
}
Ok(ret)
},
)?;
Ok(msg_ids)
}
pub fn update_server_uid(
context: &Context,
rfc724_mid: &str,