You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Bruce Snyder (JIRA)" <de...@geronimo.apache.org> on 2006/02/06 20:58:05 UTC

[jira] Closed: (GERONIMO-1558) InternetHeaders not handling setHeader(String name, Address[] addresses) properly.

     [ http://issues.apache.org/jira/browse/GERONIMO-1558?page=all ]
     
Bruce Snyder closed GERONIMO-1558:
----------------------------------

    Fix Version: 1.1
     Resolution: Fixed

> InternetHeaders not handling setHeader(String name, Address[] addresses) properly.
> ----------------------------------------------------------------------------------
>
>          Key: GERONIMO-1558
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1558
>      Project: Geronimo
>         Type: Bug
>   Components: mail
>     Versions: 1.0
>     Reporter: Rick McGuire
>      Fix For: 1.1
>  Attachments: GERONIMO-1558.patch
>
> The method setHeader(String name, Address[] addresses) inserts the new header into the header list without lowercasing the name.  This results in the added header not being retrieveable later.  This manifests as a failure in MimeMessage.getAllRecipients() if the recipients have been added with MimeMessage.setRecipients().  Here's a simple example:
>        InternetAddress[] recipients = InternetAddress.parse(to, false);
>        System.out.println("Adding " + recipients.length + " recipients to message");
>        msg.setRecipients(Message.RecipientType.TO, recipients);
>        Address[] msgRecipients = msg.getAllRecipients();
>        System.out.println("Message reports having " + msgRecipients.length + " recipients");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira