Remove get_summarytext_by_raw

Use `Summary.truncated_text()` instead.

Co-Authored-By: Floris Bruynooghe <flub@devork.be>
This commit is contained in:
link2xt
2021-10-09 10:39:44 +00:00
parent 49b07c1c6a
commit a3562c5940
5 changed files with 158 additions and 237 deletions

View File

@@ -1157,7 +1157,11 @@ impl<'a> MimeFactory<'a> {
{
stock_str::encrypted_msg(context).await
} else {
self.msg.get_summarytext(context, 32).await
self.msg
.get_summary(context, None)
.await?
.truncated_text(32)
.to_string()
};
let p2 = stock_str::read_rcpt_mail_body(context, p1).await;
let message_text = format!("{}\r\n", format_flowed(&p2));