You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "David Rees (JIRA)" <ji...@apache.org> on 2011/03/30 02:30:05 UTC

[jira] [Created] (EMAIL-103) Plain email addresses always have a name set

Plain email addresses always have a name set
--------------------------------------------

                 Key: EMAIL-103
                 URL: https://issues.apache.org/jira/browse/EMAIL-103
             Project: Commons Email
          Issue Type: Improvement
    Affects Versions: 1.2
            Reporter: David Rees
            Priority: Minor
         Attachments: Email.patch

With commons email, it always sets the "name" of the email address to the email address when it is not passed in or is blank.  This results in address fields looking like this (using From as an example):

From: "example@example.com" <ex...@example.com>

When I would expect them to look like this:

From: example@example.com

It seems that there is no real reason to do this.  At the very least, it would be nice to have the option to not have this set.

The affected file is org/apache/commons/mail/Email.java in function createInternetAddress.  I will attach one possible solution.

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

[jira] [Updated] (EMAIL-103) Plain email addresses always have a name set

Posted by "David Rees (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/EMAIL-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Rees updated EMAIL-103:
-----------------------------

    Attachment: Email.patch

> Plain email addresses always have a name set
> --------------------------------------------
>
>                 Key: EMAIL-103
>                 URL: https://issues.apache.org/jira/browse/EMAIL-103
>             Project: Commons Email
>          Issue Type: Improvement
>    Affects Versions: 1.2
>            Reporter: David Rees
>            Priority: Minor
>         Attachments: Email.patch
>
>
> With commons email, it always sets the "name" of the email address to the email address when it is not passed in or is blank.  This results in address fields looking like this (using From as an example):
> From: "example@example.com" <ex...@example.com>
> When I would expect them to look like this:
> From: example@example.com
> It seems that there is no real reason to do this.  At the very least, it would be nice to have the option to not have this set.
> The affected file is org/apache/commons/mail/Email.java in function createInternetAddress.  I will attach one possible solution.

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

[jira] [Commented] (EMAIL-103) Plain email addresses always have a name set

Posted by "Siegfried Goeschl (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/EMAIL-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162494#comment-13162494 ] 

Siegfried Goeschl commented on EMAIL-103:
-----------------------------------------

When not setting the personal name we got 12 errors for the JUnit test - I propose to get a the next release out before applying the patch and fixing the regression tests
                
> Plain email addresses always have a name set
> --------------------------------------------
>
>                 Key: EMAIL-103
>                 URL: https://issues.apache.org/jira/browse/EMAIL-103
>             Project: Commons Email
>          Issue Type: Improvement
>    Affects Versions: 1.2
>            Reporter: David Rees
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>         Attachments: Email.patch
>
>
> With commons email, it always sets the "name" of the email address to the email address when it is not passed in or is blank.  This results in address fields looking like this (using From as an example):
> From: "example@example.com" <ex...@example.com>
> When I would expect them to look like this:
> From: example@example.com
> It seems that there is no real reason to do this.  At the very least, it would be nice to have the option to not have this set.
> The affected file is org/apache/commons/mail/Email.java in function createInternetAddress.  I will attach one possible solution.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira