remove Original* check

This commit is contained in:
Leszek Cimała 2020-01-08 21:44:15 +01:00 committed by Drew DeVault
parent bf28e23933
commit 5255585b3b
1 changed files with 1 additions and 2 deletions

View File

@ -488,8 +488,7 @@ func (c *Composer) PrepareHeader() (*mail.Header, []string, error) {
// Merge in additional headers
txthdr := mhdr.Header
for key, value := range c.defaults {
// skip all Original* defaults, they contain info about original message
if !txthdr.Has(key) && value != "" && !strings.HasPrefix(key, "Original") {
if !txthdr.Has(key) && value != "" {
mhdr.SetText(key, value)
}
}