james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18471] New: - Attributes on Mail needed
Date Fri, 28 Mar 2003 14:50:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18471>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18471

Attributes on Mail needed

           Summary: Attributes on Mail needed
           Product: James
           Version: 2.1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Mailet API
        AssignedTo: james-dev@jakarta.apache.org
        ReportedBy: sh@itplus.dk


Hi,  
  
What I propose is to extend the Mail interface in the Mailet SDK with the  
following methods:  
 
Object getAttribute(String name);  
Iterator getAttributeNames();  
void removeAttribute(String name);  
void setAttribute(String name, Object object);  
 
The reason is that it will allow Mailet developers to pass, Mail processing 
information between different Mailets which are related to the particular Mail 
in question and not the common context for the Mailets. If you now register 
such mail related attributes in the MailetContext, you will get yourself into 
trouble when several Mails are processed in different threads by different 
Mailets. 
 
The Mail object actually acts as a sort of Session object, but a developer 
cannot register anything on this Session. 
 
This change will also put the Mailet api more in line with the Servlet api, 
which allows setting of attributes on bothe the ServletContext and the 
HttpSession. 
 
Regards 
  Søren 
 
P.S. I will be implementing this, so I will be happy to contribute, if this 
proposal gets approved.

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message