Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 66378 invoked from network); 17 Nov 2010 23:37:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 23:37:02 -0000 Received: (qmail 64501 invoked by uid 500); 17 Nov 2010 23:37:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64442 invoked by uid 500); 17 Nov 2010 23:37:34 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 64431 invoked by uid 99); 17 Nov 2010 23:37:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 23:37:34 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 23:37:33 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAHNbDhT010027 for ; Wed, 17 Nov 2010 23:37:13 GMT Message-ID: <622431.164851290037033469.JavaMail.jira@thor> Date: Wed, 17 Nov 2010 18:37:13 -0500 (EST) From: "Andrew Starodub (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (EMAIL-101) Specified Content-ID is not used when embedding a File object in an HtmlEmail In-Reply-To: <12485747.164431290035833330.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EMAIL-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Starodub updated EMAIL-101: ---------------------------------- Attachment: HtmlEmailTest.patch Attaching a patch that includes a regression test for making sure the returned CID is the same as the user-specified CID. > Specified Content-ID is not used when embedding a File object in an HtmlEmail > ----------------------------------------------------------------------------- > > Key: EMAIL-101 > URL: https://issues.apache.org/jira/browse/EMAIL-101 > Project: Commons Email > Issue Type: Bug > Affects Versions: 1.0, 1.1, 1.2 > Reporter: Andrew Starodub > Fix For: 1.3 > > Attachments: HtmlEmail.patch, HtmlEmailTest.patch > > > When calling the .embed(File file, String cid) method on HtmlEmail, the cid argument is never used within the method. > Consequently, even when the user specifies a Content-ID for the embedded File, a new randomly generated Content-ID is generated every time. > I believe this is as simple as changing the last line of .embed(File file, String cid) from: > return embed(new FileDataSource(file), file.getName()); > To: > return embed(new FileDataSource(file), file.getName(), cid); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.