Function deltachat::chat::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 smtp
table.
Returns row ids if jobs were created or an empty Vec
otherwise, e.g. when sending to a
group with only self and no BCC-to-self configured.
The caller has to interrupt SMTP loop or otherwise process new rows.