mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
fix(GODT-2380): Only set external ID in header if non-empty
This commit is contained in:
@ -479,7 +479,9 @@ func getMessageHeader(msg proton.Message, opts JobOptions) message.Header {
|
|||||||
// Set our external ID if requested.
|
// Set our external ID if requested.
|
||||||
// This was useful during debugging of applemail recovered messages; doesn't help with any behaviour.
|
// This was useful during debugging of applemail recovered messages; doesn't help with any behaviour.
|
||||||
if opts.AddExternalID {
|
if opts.AddExternalID {
|
||||||
hdr.Set("X-Pm-External-Id", "<"+msg.ExternalID+">")
|
if msg.ExternalID != "" {
|
||||||
|
hdr.Set("X-Pm-External-Id", "<"+msg.ExternalID+">")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set our server date if requested.
|
// Set our server date if requested.
|
||||||
|
|||||||
Reference in New Issue
Block a user