fix(GODT-1010): strip angle brackets from ExternalID

This commit is contained in:
James Houlahan
2021-01-29 12:04:02 +01:00
parent 619d5eaec9
commit 0159f24f17
2 changed files with 8 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import (
"mime"
"net/mail"
"net/textproto"
"regexp"
"strings"
"github.com/ProtonMail/go-rfc5322"
@ -486,7 +487,7 @@ func parseMessageHeader(m *pmapi.Message, h message.Header) error { // nolint[fu
m.Time = date.Unix()
case "message-id":
m.ExternalID = fields.Value()
m.ExternalID = regexp.MustCompile("<(.*)>").ReplaceAllString(fields.Value(), "$1")
}
}

View File

@ -11,3 +11,9 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
### Changed
### Fixed
* GODT-787 GODT-978 Fix IE and Bridge importing to sent not showing up in inbox (setting up flags properly).
* GODT-1006 Use correct macOS keychain name.
* GODT-1009 Set ContentID if present and not explicitly attachment.
* GODT-1006 Use correct macOS keychain name.
* GODT-1009 Set ContentID if present and not explicitly attachment.
* GODT-1010 Strip angle brackets from external ID.