Add dc_msg_set_subject() C FFI (#4057)

This commit is contained in:
Hocuri
2023-02-19 14:42:39 +01:00
committed by GitHub
parent f65e1c1587
commit 641d102aba
5 changed files with 45 additions and 0 deletions

View File

@@ -797,6 +797,12 @@ impl Message {
self.text = text;
}
/// Sets the email's subject. If it's empty, a default subject
/// will be used (e.g. `Message from Alice` or `Re: <last subject>`).
pub fn set_subject(&mut self, subject: String) {
self.subject = subject;
}
/// Sets the file associated with a message.
///
/// This function does not use the file or check if it exists,