Hocuri
f8680724f8
Set subject to Re: <last subject> for better compability with normal MUAs
...
The code in dc_receive_imf.rs looks a bit funny, an alternative would be a function:
fn upcate_chat_last_subject(context: &Context, chat_id: &ChatId, mime_parser: &mut MimeMessage) -> Result<()> {
let mut chat = Chat::load_from_db(context, *chat_id)?;
chat.param.set(Param::LastSubject, mime_parser.get_subject().ok_or_else(||Error::Message("No subject in email".to_string()))?);
chat.update_param(context)?;
Ok(())
}
2020-06-07 12:11:52 +02:00
..
2020-06-05 16:27:22 +02:00
2020-06-05 16:27:22 +02:00
2020-06-06 18:42:54 +03:00
2020-05-22 21:03:01 +02:00
2020-04-13 23:02:57 +03:00
2020-05-22 21:03:01 +02:00
2020-06-06 19:49:57 +03:00
2020-05-13 18:29:22 +02:00
2020-06-05 16:27:22 +02:00
2020-05-03 13:38:39 +02:00
2020-05-31 17:04:25 +02:00
2020-06-05 16:27:22 +02:00
2020-06-07 12:11:52 +02:00
2020-05-29 18:14:21 +02:00
2020-04-13 23:02:57 +03:00
2020-06-04 22:46:59 +02:00
2020-05-13 18:29:22 +02:00
2020-05-23 00:17:50 +02:00
2020-05-07 13:55:09 +02:00
2020-05-29 11:25:52 +02:00
2020-06-05 16:27:22 +02:00
2020-06-04 22:46:59 +02:00
2020-05-29 11:25:52 +02:00
2020-05-13 18:29:22 +02:00
2020-05-23 18:56:45 +02:00
2020-05-22 21:03:01 +02:00
2020-06-06 18:42:54 +03:00
2020-06-04 22:46:59 +02:00
2020-05-23 18:56:45 +02:00
2020-06-07 12:11:52 +02:00
2020-06-04 22:46:59 +02:00
2020-05-22 11:10:26 +02:00
2020-06-07 12:11:52 +02:00
2020-06-04 22:46:59 +02:00
2020-06-04 22:46:59 +02:00
2020-06-04 22:46:59 +02:00
2020-06-05 16:27:22 +02:00
2020-06-04 22:46:59 +02:00
2020-04-27 16:47:16 +02:00
2020-05-22 11:37:03 +02:00
2020-05-13 18:29:22 +02:00
2020-04-23 06:48:18 +02:00
2020-03-14 15:17:47 +01:00