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 "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2005/12/30 11:34:02 UTC
[jira] Resolved: (JAMES-411) update Mailet's Mail to support most of the current james mailets
[ http://issues.apache.org/jira/browse/JAMES-411?page=all ]
Stefano Bagnara resolved JAMES-411:
-----------------------------------
Fix Version: 2.3.0
Resolution: Fixed
interface Mail:
added
String getName()
void setName(String name)
long getMessageSize()
Date getLastUpdated()
void setLastUpdated(Date lastUpdated)
moved 2 methods from MailImpl to the calling object (to handle Mail instances too).
Refactored all the code to remove (MailImpl) casts and leave only a few optimizations based on "instanceof MailImpl".
Now James should be able to work on "third-party" Mail implementations.
> update Mailet's Mail to support most of the current james mailets
> -----------------------------------------------------------------
>
> Key: JAMES-411
> URL: http://issues.apache.org/jira/browse/JAMES-411
> Project: James
> Type: Improvement
> Components: Mailet API
> Versions: 2.3.0
> Reporter: Stefano Bagnara
> Assignee: Stefano Bagnara
> Fix For: 2.3.0
>
> I will add subtasks for each change to keep history.
> I would like to add the getName() method to the Mailet's Mail interface.
> This would allow us to make most of James "Mail" compliant.
> Currently if you send a Mail that is not a MailImpl you will get a lot of ClassCast around (so James is not fully Mailet compliant now).
> I would also like to add "@deprecate" to the unused "bounce" (we got 2 bounce method, 1 is not used) method in the MailetContext interface.
> storeMail is marked as deprecate but now alternative has been given: I think we should undeprecate it or provide an hint on how to store a Mail (I don't know how, currently).
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org