Skip to content
Permalink
Browse files

Fix JENKINS-16281

  • Loading branch information
slide committed Jan 8, 2013
1 parent 7bdb213 commit d9221ac6cdf91c76927df24fa99daaeb5dd68fb4
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
@@ -454,7 +454,9 @@ private MimeMessage createMail(EmailType type, AbstractBuild<?, ?> build, BuildL
setSubject(type, build, msg, listener, charset);

Multipart multipart = new MimeMultipart();
MimeBodyPart msgBody = getContent(type, build, msg, listener, charset);

multipart.addBodyPart(getContent(type, build, msg, listener, charset));

AttachmentUtils attachments = new AttachmentUtils(attachmentsPattern);
attachments.attach(multipart, this, build, listener);

@@ -469,7 +471,6 @@ private MimeMessage createMail(EmailType type, AbstractBuild<?, ?> build, BuildL
AttachmentUtils.attachBuildLog(multipart, build, listener);
}

multipart.addBodyPart(msgBody);
msg.setContent(multipart);

EnvVars env = null;

0 comments on commit d9221ac

Please sign in to comment.
You can’t perform that action at this time.