Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 59490 invoked from network); 17 Nov 2010 23:17:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 23:17:02 -0000 Received: (qmail 41487 invoked by uid 500); 17 Nov 2010 23:17:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 41420 invoked by uid 500); 17 Nov 2010 23:17: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 41412 invoked by uid 99); 17 Nov 2010 23:17: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:17: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:17:33 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAHNHDqA009794 for ; Wed, 17 Nov 2010 23:17:13 GMT Message-ID: <12485747.164431290035833330.JavaMail.jira@thor> Date: Wed, 17 Nov 2010 18:17:13 -0500 (EST) From: "Andrew Starodub (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (EMAIL-101) Specified Content-ID is not used when embedding a File object in an HtmlEmail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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.2, 1.1, 1.0 Reporter: Andrew Starodub Fix For: 1.3 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.