Thanks Claus! I have create JIRA item  -
https://issues.apache.org/activemq/browse/CAMEL-2054

I fixed it temporarily by extending MailComponent and MailBinding.

Cheers!


Claus Ibsen-2 wrote:
> 
> Hi
> 
> Can you create a ticket in JIRA with your findings?
> 
> 
> On Tue, Oct 6, 2009 at 8:36 PM, tide08 <sachin2...@yahoo.com> wrote:
>>
>>>>Also, RFC standard mention that Content-ID should be globally unique but
>> Camel Mail just sets it to filename instead.
>>
>> I understand setting unique name may need lot of work as camel than has
>> to
>> parse through each message part to find reference to that cid and replace
>> value with generated unique cid.
>>
>>
>>
>> tide08 wrote:
>>>
>>> I am using Camel 1.6.1, but this holds true for 1.6.2-SNAPSHOT and
>>> 2.0.0..
>>>
>>> It looks like Camel Mail Component does not set Content-ID mime header
>>> correctly or probably assumption is that BodyPart will take care of it.
>>> As
>>> a result embedded images in html body do not work ( img
>>> src="cid:somename.img").
>>>
>>> Currently Content-ID is set as -
>>>
>>> //MailBinding.java
>>> // add a Content-ID header to the attachment
>>> messageBodyPart.addHeader("Content-ID",
>>> attachmentFilename.substring(4));
>>>
>>> But according to RFC standards [http://www.ietf.org/rfc/rfc2392.txt],
>>> Content-ID value should be enclosed with in angle brackets, so it should
>>> be modified to-
>>>
>>> //MailBinding.java
>>> // add a Content-ID header to the attachment
>>> messageBodyPart.addHeader("Content-ID", "<" +
>>> attachmentFilename.substring(4) + ">");
>>>
>>> Also, RFC standard mention that Content-ID should be globally unique but
>>> Camel Mail just sets it to filename instead.
>>>
>>> Also, below should be modified which incorrectly sets fileName inclusive
>>> of "cid:", but expectation would be strip off "cid" off it, similar to
>>> Content-ID
>>>
>>> // Set the filename
>>> messageBodyPart.setFileName(attachmentFilename);
>>>
>>> Should be -
>>>
>>> // Set the filename
>>> messageBodyPart.setFileName(attachmentFilename.substring(4));
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Camel-Mail-Component%3A-Content-ID-incorrect--tp25760500p25774339.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Camel-Mail-Component%3A-Content-ID-incorrect--tp25760500p25796682.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to