deltachat::chat

Function create_send_msg_jobs

source
pub(crate) async fn create_send_msg_jobs(
    context: &Context,
    msg: &mut Message,
) -> Result<Vec<i64>>
Expand description

Constructs jobs for sending a message and inserts them into the appropriate table.

Returns row ids if smtp table jobs were created or an empty Vec otherwise.

The caller has to interrupt SMTP loop or otherwise process new rows.