remove garbage headers in reply message
Very important fix. Remove garbage from reply message headers. Till now all Original fields were send in reply, which we do not want and could lead to uncorrect email message.
This commit is contained in:
parent
4f2892695e
commit
2559ebfac5
1 changed files with 2 additions and 1 deletions
|
@ -469,7 +469,8 @@ func (c *Composer) PrepareHeader() (*mail.Header, []string, error) {
|
|||
// Merge in additional headers
|
||||
txthdr := mhdr.Header
|
||||
for key, value := range c.defaults {
|
||||
if !txthdr.Has(key) && value != "" {
|
||||
// skip all Original* defaults, they contain info about original message
|
||||
if !txthdr.Has(key) && value != "" && !strings.HasPrefix(key, "Original") {
|
||||
mhdr.SetText(key, value)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue