Add "Auto-Submitted: auto-replied" header to MDNs

This header is specified in RFC 3834.
This commit is contained in:
Alexander Krotov
2020-01-17 01:49:30 +03:00
parent 0043e95ba7
commit 0f52f63863

View File

@@ -401,6 +401,13 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
));
unprotected_headers.push(Header::new("Chat-Version".to_string(), "1.0".to_string()));
if let Loaded::MDN = self.loaded {
unprotected_headers.push(Header::new(
"Auto-Submitted".to_string(),
"auto-replied".to_string(),
));
}
if self.req_mdn {
// we use "Chat-Disposition-Notification-To"
// because replies to "Disposition-Notification-To" are weird in many cases