mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
Save subject for messages 2: Outgoing messages (#2283)
* Save subject for sent-out messages * Test that subject is saved (outgoing) * Correctly set subject when forwarding messages, add test for this
This commit is contained in:
@@ -1019,6 +1019,9 @@ pub async fn send_msg_job(context: &Context, msg_id: MsgId) -> Result<Option<Job
|
||||
param.set(Param::File, blob.as_name());
|
||||
param.set(Param::Recipients, &recipients);
|
||||
|
||||
msg.subject = rendered_msg.subject.clone();
|
||||
msg.update_subject(context).await;
|
||||
|
||||
let job = create(Action::SendMsgToSmtp, msg_id.to_u32() as i32, param, 0)?;
|
||||
|
||||
Ok(Some(job))
|
||||
|
||||
Reference in New Issue
Block a user