[jira] Created: (CAMEL-1096) camel-mail - setting additional java mail properties should be easier for URI and spring DSL

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-1096) camel-mail - setting additional java mail properties should be easier for URI and spring DSL

JIRA jira@apache.org
camel-mail - setting additional java mail properties should be easier for URI and spring DSL
--------------------------------------------------------------------------------------------

                 Key: CAMEL-1096
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1096
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-mail
    Affects Versions: 1.5.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.0.0


SUN JavaMail has many properties for configuring Java Mail.
http://java.sun.com/products/javamail/javadocs/index.html

Currently you can set either all java mail properties yourself or set a few of them using the URI. We should support the
javamail.XXX option so you can append whatever you want.

And maybe also a bean ref so you can configure this nicely in Spring DSL.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1096) camel-mail - setting additional java mail properties should be easier for URI and spring DSL

JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47425#action_47425 ]

Claus Ibsen commented on CAMEL-1096:
------------------------------------

For instance to set a POP3 top option to disabled
http://java.sun.com/products/javamail/FAQ.html

Such as this FAQ:
Q: I'm having problems using POP3 with Microsoft Exchange.
A: Some versions of Microsoft Exchange do not implement the POP3 protocol properly. They return different headers from the TOP command than they do from the RETR command. This can cause all sorts of strange failures in JavaMail. One solution is to disable use of the TOP command, as described above. Another approach that works in some cases os to tell JavaMail to forget about the headers it retrieved using the TOP command after retrieving the entire message using the RETR command. To do this, set the property "mail.pop3.forgettopheaders" to "true".

It should be possible to set it as:
mail.pop3.forgettopheaders=true

The option should be: *mail.*xxx

> camel-mail - setting additional java mail properties should be easier for URI and spring DSL
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1096
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1096
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> SUN JavaMail has many properties for configuring Java Mail.
> http://java.sun.com/products/javamail/javadocs/index.html
> Currently you can set either all java mail properties yourself or set a few of them using the URI. We should support the
> javamail.XXX option so you can append whatever you want.
> And maybe also a bean ref so you can configure this nicely in Spring DSL.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-1096) camel-mail - setting additional java mail properties should be easier for URI and spring DSL

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-1096 started by Claus Ibsen.

> camel-mail - setting additional java mail properties should be easier for URI and spring DSL
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1096
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1096
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> SUN JavaMail has many properties for configuring Java Mail.
> http://java.sun.com/products/javamail/javadocs/index.html
> Currently you can set either all java mail properties yourself or set a few of them using the URI. We should support the
> javamail.XXX option so you can append whatever you want.
> And maybe also a bean ref so you can configure this nicely in Spring DSL.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-1096) camel-mail - setting additional java mail properties should be easier for URI and spring DSL

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1096.
--------------------------------

    Resolution: Fixed

Revision #718043 Committed by davsclaus at 16-11-08 15:52:14
CAMEL-1096: camel-mail now supports setting additional java mail properties if URI options starts with mail.

> camel-mail - setting additional java mail properties should be easier for URI and spring DSL
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1096
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1096
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> SUN JavaMail has many properties for configuring Java Mail.
> http://java.sun.com/products/javamail/javadocs/index.html
> Currently you can set either all java mail properties yourself or set a few of them using the URI. We should support the
> javamail.XXX option so you can append whatever you want.
> And maybe also a bean ref so you can configure this nicely in Spring DSL.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1096) camel-mail - setting additional java mail properties should be easier for URI and spring DSL

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47428#action_47428 ]

Claus Ibsen commented on CAMEL-1096:
------------------------------------

As this is probably rare that you set these properties I dont wanna go throught the trouble of creating a ref option to lookup in the registry for a Properties that you can configure as a spring bean with these additional properties. Just set miltiple values on the URI directly.

> camel-mail - setting additional java mail properties should be easier for URI and spring DSL
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1096
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1096
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mail
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> SUN JavaMail has many properties for configuring Java Mail.
> http://java.sun.com/products/javamail/javadocs/index.html
> Currently you can set either all java mail properties yourself or set a few of them using the URI. We should support the
> javamail.XXX option so you can append whatever you want.
> And maybe also a bean ref so you can configure this nicely in Spring DSL.

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