Diego Castillo wrote: > > > > The mail object you receive in your mailet implements the interface > > org.apache.mailets.Mail. This supports a variety of MailAttribute > > operations. MailImpl also implements org.apache.mailets.Mail. You > > certainly can create new instances of MailImpl within a mailet - see > > AbstractRedirect for example. > > AbstractRedirect imports org.apache.james.core.MailImpl, which is not > part of the Mailet API. Sure I can send a new Mail with some > attributes, > but not via the org.apache.mailet.* classes (correct me if I > am wrong).
To create a new Mail you currently need to create an instance of an implementation of org.apache.mailets.Mail, such as org.apache.james.core.MailImpl. You might argue that org.apache.mailets.Mail should include a createMail() method. As this would answer a Mail, it would be independent of implementation, and indeed, rather useful! -- Steve --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
