pub(crate) async fn rfc724_mid_exists_ex(
context: &Context,
rfc724_mid: &str,
expr: &str,
) -> Result<Option<(MsgId, i64, bool)>>
Expand description
Returns MsgId and “sent” timestamp of the most recent message with given rfc724_mid
(Message-ID header) and bool expr
result if such messages exists in the db.
expr
: SQL expression additionally passed intoSELECT
. Evaluated totrue
iff it is true for all messages with the givenrfc724_mid
.