Hi all, While implementing DSN support for James I've had a doubt: are attributes supposed to be duplicated when Mail.duplicate() is calles? I think they should be duplicated but currently MailImpl simply does a attributes.clone() that simply clone the HashMap and not the attributes!
Another thing I don't like is the way recipients are handled: currently, via API, I get access to the MailAddress collection and I can do everything, share the collection with other mailimpls and similar bad things. I also need to add recipient attributes working like mail attributes: can we add this feature to the Mailet APIs for 3.0? My current workaround has been to add a Mail attribute containing and Hashmap of recipients pointing to their Attributes: the main problem is that adding this object as a mail attribute will create problems when the mail will be duplicated. I think we should add to MailetAPIs methods to addrecipient, removerecipient, changerecipient, getRecipientAttribute and setRecipientAttribute. Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
