Skip to content

Commit

Permalink
Use contentID directly if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Apr 3, 2024
1 parent 40d3dce commit c5729f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (msg *message) addFiles(files []*File, inline bool) {
if inline {
header.Set("Content-Disposition", "inline;\n \tfilename=\""+encodedFilename+`"`)
if len(file.ContentID) > 0 {
header.Set("Content-ID", "<"+msg.getCID(file.ContentID)+">")
header.Set("Content-ID", "<"+file.ContentID+">")
} else {
header.Set("Content-ID", "<"+msg.getCID(file.Name)+">")
}
Expand Down

0 comments on commit c5729f7

Please sign in to comment.