add missing From header when using xdg-email (#162)

This commit is contained in:
Clément DOUIN 2021-08-04 21:58:35 +02:00
parent 2acd5d71d3
commit 32d8cf0163
No known key found for this signature in database
GPG key ID: 69C9B9CFFDEE2DEF

View file

@ -214,6 +214,7 @@ impl Tpl {
}
}
headers.insert(String::from("From"), ctx.config.address(ctx.account));
headers.insert(String::from("To"), url.path().to_string());
headers.insert(String::from("Subject"), subject.into());
if !cc.is_empty() {