|
|
@ -4255,10 +4255,15 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
// Build content
|
|
|
|
// Build content
|
|
|
|
File sinput = new File(tmp, draft.id + ".smime_sign");
|
|
|
|
File sinput = new File(tmp, draft.id + ".smime_sign");
|
|
|
|
|
|
|
|
if (EntityMessage.SMIME_SIGNONLY.equals(type))
|
|
|
|
try (OutputStream os = new MessageHelper.CanonicalizingStream(
|
|
|
|
try (OutputStream os = new MessageHelper.CanonicalizingStream(
|
|
|
|
new BufferedOutputStream(new FileOutputStream(sinput)), EntityAttachment.SMIME_CONTENT, null)) {
|
|
|
|
new BufferedOutputStream(new FileOutputStream(sinput)), EntityAttachment.SMIME_CONTENT, null)) {
|
|
|
|
bpContent.writeTo(os);
|
|
|
|
bpContent.writeTo(os);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
try (FileOutputStream fos = new FileOutputStream(sinput)) {
|
|
|
|
|
|
|
|
bpContent.writeTo(fos);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (EntityMessage.SMIME_SIGNONLY.equals(type)) {
|
|
|
|
if (EntityMessage.SMIME_SIGNONLY.equals(type)) {
|
|
|
|
EntityAttachment cattachment = new EntityAttachment();
|
|
|
|
EntityAttachment cattachment = new EntityAttachment();
|
|
|
|