You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Ryan Gardner (JIRA)" <ji...@apache.org> on 2009/04/01 02:51:34 UTC

[jira] Created: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
----------------------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-1507
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-mail
    Affects Versions: 2.0-M1
            Reporter: Ryan Gardner
         Attachments: mulitpartAlternativePatch.patch

To send a multipart/alternative email you have to follow a pretty specific course.

This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50982#action_50982 ] 

Claus Ibsen commented on CAMEL-1507:
------------------------------------

I renamed the constant so its according to the Camel 2.0 syntax: rev 761182 on trunk


> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>         Attachments: camel-mail-test2.zip, mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-1507:
-----------------------------------

    Assignee: Willem Jiang

> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>            Assignee: Willem Jiang
>         Attachments: mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-1507.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.1

Applied the patch in trunk and  camel-1.x branch with thanks to Ryan
trunk
http://svn.apache.org/viewvc?rev=760909&view=rev
camel-1.x
http://svn.apache.org/viewvc?rev=760920&view=rev

> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>            Assignee: Willem Jiang
>             Fix For: 2.0.0, 1.6.1
>
>         Attachments: camel-mail-test2.zip, mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-1507:
-------------------------------

    Fix Version/s: 2.0.0

> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>         Attachments: camel-mail-test2.zip, mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50981#action_50981 ] 

Willem Jiang commented on CAMEL-1507:
-------------------------------------

@Rayan, 
Don't worry about the MailConstants issue, I already did a quick fix for that.


> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>         Attachments: camel-mail-test2.zip, mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Ryan Gardner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Gardner updated CAMEL-1507:
--------------------------------

    Attachment: mulitpartAlternativePatch.patch

might need some cleanup - but I have tested it and it works for me

> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>         Attachments: mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Ryan Gardner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Gardner updated CAMEL-1507:
--------------------------------

    Attachment: camel-mail-test2.zip

This contains a very simple maven project that has a main method that will send out an email. 

It's definitely NOT intended for inclusion as-is (but I'll check the box since you can include anything in it if you really WANT to) 

I just modified the default archetype and built a simple attachment processor that will attach the logo.gif to the message and send out the email. 

If you want to use this, it might save you the 5 minutes it would take you to do something similar to test how this works with sending out actual emails to test it. 

(It will work with gmail accounts that allow SMTP - just modify the YOURNAMEHERE and YOURPASSWORDHERE appropriately... I almost submitted it with my name and password in plaintext - which would have been rather dumb :) )

> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>            Assignee: Willem Jiang
>         Attachments: camel-mail-test2.zip, mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Ryan Gardner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50978#action_50978 ] 

Ryan Gardner commented on CAMEL-1507:
-------------------------------------

Do you want me to tweak the patch to rename the alternate body header tag andif  move it to the MailConstants?  If you have any other things you don't like about it, let me know and I can work on it tomorrow.



> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>         Attachments: camel-mail-test2.zip, mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1507) Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50983#action_50983 ] 

Claus Ibsen commented on CAMEL-1507:
------------------------------------

Ryan/William

We also need to update the mail wiki page with this feature. At least document its possible and give some hints how to do it.
And it would be great with a sample how to do it, and you can use the SNIPPETS in the unit test to put it on the wiki pages.

> Allow sending multipart/alternative MIME messages with both a plain-text and text/html body, and allow sending images inline
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1507
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1507
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 2.0-M1
>            Reporter: Ryan Gardner
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>         Attachments: camel-mail-test2.zip, mulitpartAlternativePatch.patch
>
>
> To send a multipart/alternative email you have to follow a pretty specific course.
> This adds a property (which is poorly named in this patch) to the MailConfiguration that names the header that contains the plaintext version of the email, and adds a property where you can embed images inline. If an attachment has a filename starting with "cid:" then this will add the "Content-ID" header to that multipart body - which will allow the email client to put the image in the appropriate place when it is viewed. (i.e. the html email has something like <image src="cid:0001" /> and the attachment is named 'cid:0001' - when it sees an inline attachment with "Content-ID: 0001" it will put it in the right spot)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.