deltachat::smtp

Function send_mdn_rfc724_mid

source
async fn send_mdn_rfc724_mid(
    context: &Context,
    rfc724_mid: &str,
    contact_id: ContactId,
    smtp: &mut Smtp,
) -> Result<bool>
Expand description

Tries to send MDN for message identified by rfc724_mdn to contact_id.

Attempts to aggregate additional MDNs for contact_id into sent MDN.

On failure returns an error without removing any smtp_mdns entries, the caller is responsible for removing the corresponding entry to prevent endless loop in case the entry is invalid, e.g. points to non-existent message or contact.

Returns true on success, false on temporary error.