mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 00:27:06 +00:00
fix(GODT-1010): strip angle brackets from ExternalID
This commit is contained in:
@ -24,6 +24,7 @@ import (
|
|||||||
"mime"
|
"mime"
|
||||||
"net/mail"
|
"net/mail"
|
||||||
"net/textproto"
|
"net/textproto"
|
||||||
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ProtonMail/go-rfc5322"
|
"github.com/ProtonMail/go-rfc5322"
|
||||||
@ -486,7 +487,7 @@ func parseMessageHeader(m *pmapi.Message, h message.Header) error { // nolint[fu
|
|||||||
m.Time = date.Unix()
|
m.Time = date.Unix()
|
||||||
|
|
||||||
case "message-id":
|
case "message-id":
|
||||||
m.ExternalID = fields.Value()
|
m.ExternalID = regexp.MustCompile("<(.*)>").ReplaceAllString(fields.Value(), "$1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,3 +11,9 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Fixed
|
### 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user