mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
mimefactory: use format=flowed for read receipt text
This avoids too long lines which are rejected by some spam filters.
This commit is contained in:
@@ -1143,10 +1143,13 @@ impl<'a> MimeFactory<'a> {
|
|||||||
self.msg.get_summarytext(context, 32).await
|
self.msg.get_summarytext(context, 32).await
|
||||||
};
|
};
|
||||||
let p2 = stock_str::read_rcpt_mail_body(context, p1).await;
|
let p2 = stock_str::read_rcpt_mail_body(context, p1).await;
|
||||||
let message_text = format!("{}\r\n", p2);
|
let message_text = format!("{}\r\n", format_flowed(&p2));
|
||||||
message = message.child(
|
message = message.child(
|
||||||
PartBuilder::new()
|
PartBuilder::new()
|
||||||
.content_type(&mime::TEXT_PLAIN_UTF_8)
|
.header((
|
||||||
|
"Content-Type".to_string(),
|
||||||
|
"text/plain; charset=utf-8; format=flowed; delsp=no".to_string(),
|
||||||
|
))
|
||||||
.body(message_text)
|
.body(message_text)
|
||||||
.build(),
|
.build(),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user