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

View file

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