Fix wrongly formatted CIDs

pull/156/head
M66B 6 years ago
parent 320a196fba
commit b85f41fbc7

@ -1064,6 +1064,14 @@ public class MessageHelper {
if (apart.attachment.size < 0) if (apart.attachment.size < 0)
apart.attachment.size = null; 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); parts.attachments.add(apart);
} }
} }

Loading…
Cancel
Save