geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick McGuire (JIRA)" <...@geronimo.apache.org>
Subject [jira] Resolved: (GERONIMO-1402) Recipients set by calling MimeMessage.setRecipients(RecipientType, Adress[]) not remembered by getAllRecipients()
Date Mon, 15 May 2006 22:46:07 GMT
     [ http://issues.apache.org/jira/browse/GERONIMO-1402?page=all ]
     
Rick McGuire resolved GERONIMO-1402:
------------------------------------

    Fix Version: 1.1
     Resolution: Fixed

This has already been fixed in the latest javamail spec code. 

> Recipients set by calling MimeMessage.setRecipients(RecipientType, Adress[]) not remembered
by getAllRecipients()
> -----------------------------------------------------------------------------------------------------------------
>
>          Key: GERONIMO-1402
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1402
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: mail
>     Versions: 1.0
>     Reporter: Jakob Færch
>     Assignee: Jacek Laskowski
>      Fix For: 1.1
>  Attachments: patch-javamail-casesensitive-headers.patch
>
> In the AdventureBuilder blueprint application, the following snippet is used in class
com.sun.j2ee.blueprints.opc.mailerMailHelper to send an email using JavaMail:
> msg.setRecipients(Message.RecipientType.TO,
>                             InternetAddress.parse(emailAddress, false));
>   [...]
> Transport.send(msg);
> Transport in turn calls getAllRecipients() on the message, which returns an empty array.
> As far as I could tell, the error is caused by the method javax.mail.InternetHeaders#getHeaderList(String)
from the geronimo javamail implementation looks up the headers in a map using as key the lowercase
version of the header name supplied, whereas the setHeader method puts the header using as
key the unmodified header name. The addHeader method correctly lowercases the header name
before storing it in the map.

-- 
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


Mime
View raw message