Refactoring

pull/194/head
M66B 4 years ago
parent d60e1f26f2
commit f571d270bd

@ -2421,7 +2421,7 @@ public class FragmentCompose extends FragmentBase {
ContentType ct = new ContentType(type); ContentType ct = new ContentType(type);
ct.setParameter("protected-headers", "v1"); ct.setParameter("protected-headers", "v1");
setHeader("Content-Type", ct.toString()); setHeader("Content-Type", ct.toString());
String subject = draft.subject == null ? "" : draft.subject; String subject = (draft.subject == null ? "" : draft.subject);
try { try {
setHeader("Subject", MimeUtility.encodeWord(subject)); setHeader("Subject", MimeUtility.encodeWord(subject));
} catch (UnsupportedEncodingException ex) { } catch (UnsupportedEncodingException ex) {

Loading…
Cancel
Save