You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ji...@apache.org on 2004/06/06 22:51:54 UTC
[jira] Closed: (JAMES-101) Attributes on Mail needed
Message:
The following issue has been closed.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JAMES-101
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JAMES-101
Summary: Attributes on Mail needed
Type: Bug
Status: Closed
Resolution: FIXED
Project: James
Components:
Mailet API
Versions:
2.1
Assignee:
Reporter: Soren Hilmer
Created: Fri, 28 Mar 2003 2:49 PM
Updated: Sun, 6 Jun 2004 1:50 PM
Environment: Operating System: Linux
Platform: All
Description:
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.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org