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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to