[jira] [Created] (EMAIL-104) The system property "mail.mime.charset" is not applied to contents.

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

[jira] [Created] (EMAIL-104) The system property "mail.mime.charset" is not applied to contents.

Gilles (Jira)
The system property "mail.mime.charset" is not applied to contents.
-------------------------------------------------------------------

                 Key: EMAIL-104
                 URL: https://issues.apache.org/jira/browse/EMAIL-104
             Project: Commons Email
          Issue Type: Bug
    Affects Versions: 1.2
            Reporter: Hiroshi Ikeda
            Priority: Minor


Both of JavaMail and Commons Email encode subjects and personal names with the system property "mail.mime.charset" when no charsets are specified via methods. Also they encode attached filenames with the property when the other system property "mail.mime.encodefilename" is set (regardless of RFC). On the other hand, JavaMail encodes text contents with the property via setText methods when no charsets specified, but Commons Email doesn't encode the contents via setMsg/setTextMsg/setHtmlMsg methods. The partial difference of the behaviors makes confusion.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (EMAIL-104) The system property "mail.mime.charset" is not applied to contents.

Gilles (Jira)

    [ https://issues.apache.org/jira/browse/EMAIL-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098383#comment-13098383 ]

Siegfried Goeschl commented on EMAIL-104:
-----------------------------------------

I'm not sure if I understand the problem correctly

+) setTextMsg() and setHtmlMsg() take the plain string
+) that plain strings are afterwards encoded when the MimeMessage is built (HTMLEmail.build())

Can you please clarify?

> The system property "mail.mime.charset" is not applied to contents.
> -------------------------------------------------------------------
>
>                 Key: EMAIL-104
>                 URL: https://issues.apache.org/jira/browse/EMAIL-104
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Hiroshi Ikeda
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>              Labels: charset
>
> Both of JavaMail and Commons Email encode subjects and personal names with the system property "mail.mime.charset" when no charsets are specified via methods. Also they encode attached filenames with the property when the other system property "mail.mime.encodefilename" is set (regardless of RFC). On the other hand, JavaMail encodes text contents with the property via setText methods when no charsets specified, but Commons Email doesn't encode the contents via setMsg/setTextMsg/setHtmlMsg methods. The partial difference of the behaviors makes confusion.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (EMAIL-104) The system property "mail.mime.charset" is not applied to contents.

Gilles (Jira)
In reply to this post by Gilles (Jira)

    [ https://issues.apache.org/jira/browse/EMAIL-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098387#comment-13098387 ]

Siegfried Goeschl commented on EMAIL-104:
-----------------------------------------

Well - I need to read up on the Mail API ... :-)

> The system property "mail.mime.charset" is not applied to contents.
> -------------------------------------------------------------------
>
>                 Key: EMAIL-104
>                 URL: https://issues.apache.org/jira/browse/EMAIL-104
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Hiroshi Ikeda
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>              Labels: charset
>
> Both of JavaMail and Commons Email encode subjects and personal names with the system property "mail.mime.charset" when no charsets are specified via methods. Also they encode attached filenames with the property when the other system property "mail.mime.encodefilename" is set (regardless of RFC). On the other hand, JavaMail encodes text contents with the property via setText methods when no charsets specified, but Commons Email doesn't encode the contents via setMsg/setTextMsg/setHtmlMsg methods. The partial difference of the behaviors makes confusion.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (EMAIL-104) The system property "mail.mime.charset" is not applied to contents.

Gilles (Jira)
In reply to this post by Gilles (Jira)

    [ https://issues.apache.org/jira/browse/EMAIL-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098546#comment-13098546 ]

Hiroshi Ikeda commented on EMAIL-104:
-------------------------------------

I forget many things about several months ago, and I find my memo which says:
If you call MimeMessage/MimeBody.setContent directly, instead of setText, then the system property "mail.mime.charset" is not used. HtmlEmail and SimpleEmail in Commons Email call the setContent methods.

> The system property "mail.mime.charset" is not applied to contents.
> -------------------------------------------------------------------
>
>                 Key: EMAIL-104
>                 URL: https://issues.apache.org/jira/browse/EMAIL-104
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Hiroshi Ikeda
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>              Labels: charset
>
> Both of JavaMail and Commons Email encode subjects and personal names with the system property "mail.mime.charset" when no charsets are specified via methods. Also they encode attached filenames with the property when the other system property "mail.mime.encodefilename" is set (regardless of RFC). On the other hand, JavaMail encodes text contents with the property via setText methods when no charsets specified, but Commons Email doesn't encode the contents via setMsg/setTextMsg/setHtmlMsg methods. The partial difference of the behaviors makes confusion.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira