Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 24900 invoked from network); 31 Oct 2010 17:18:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Oct 2010 17:18:27 -0000 Received: (qmail 75433 invoked by uid 500); 31 Oct 2010 16:18:57 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 75385 invoked by uid 500); 31 Oct 2010 16:18:57 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 75378 invoked by uid 99); 31 Oct 2010 16:18:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Oct 2010 16:18:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Oct 2010 16:18:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 97E1A238897A; Sun, 31 Oct 2010 16:18:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1029395 - /commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java Date: Sun, 31 Oct 2010 16:18:00 -0000 To: commits@commons.apache.org From: sgoeschl@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101031161800.97E1A238897A@eris.apache.org> Author: sgoeschl Date: Sun Oct 31 16:18:00 2010 New Revision: 1029395 URL: http://svn.apache.org/viewvc?rev=1029395&view=rev Log: Use EmailAttachment.INLINE instead of literal "inline" (the constant was previously unused). Modified: commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java Modified: commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java?rev=1029395&r1=1029394&r2=1029395&view=diff ============================================================================== --- commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java (original) +++ commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java Sun Oct 31 16:18:00 2010 @@ -480,7 +480,7 @@ public class HtmlEmail extends MultiPart { mbp.setDataHandler(new DataHandler(dataSource)); mbp.setFileName(name); - mbp.setDisposition("inline"); + mbp.setDisposition(EmailAttachment.INLINE); mbp.setContentID("<" + cid + ">"); InlineImage ii = new InlineImage(cid, dataSource, mbp);