mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
Fix wrongly formatted CIDs
This commit is contained in:
@@ -1064,6 +1064,14 @@ public class MessageHelper {
|
||||
if (apart.attachment.size < 0)
|
||||
apart.attachment.size = null;
|
||||
|
||||
// https://tools.ietf.org/html/rfc2392
|
||||
if (apart.attachment.cid != null) {
|
||||
if (!apart.attachment.cid.startsWith("<"))
|
||||
apart.attachment.cid = "<" + apart.attachment.cid;
|
||||
if (!apart.attachment.cid.endsWith(">"))
|
||||
apart.attachment.cid += ">";
|
||||
}
|
||||
|
||||
parts.attachments.add(apart);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user