Repair getting x-failed-recipients header, all tests passing now

This commit is contained in:
Hocuri
2020-06-10 15:27:20 +02:00
parent 777df24c75
commit bde97b20e9
3 changed files with 12 additions and 36 deletions

View File

@@ -876,7 +876,7 @@ impl MimeMessage {
.and_then(|v| parse_message_id(&v).ok())
{
let mut to_list = get_all_addresses_from_header(&report.headers, |header_key| {
header_key == "X-Failed-Recipients"
header_key == "x-failed-recipients"
});
let to = if to_list.len() == 1 {
Some(to_list.pop().unwrap())