| java.lang.Object org.apache.mailet.GenericMailet org.apache.james.transport.mailets.ToMultiRepository
ToMultiRepository | public class ToMultiRepository extends GenericMailet (Code) | | Receives a Mail from JamesSpoolManager and takes care of delivery of the
message to local inboxes or a specific repository.
Differently from LocalDelivery this does not lookup the UserRepository This
simply store the message in a repository named like the local part of the
recipient address.
If no repository is specified then this fallback to MailServer.getUserInbox.
Otherwise you can add your own configuration for the repository
e.g: file://var/spool/userspools/
SPOOL
file://var/mail/inboxes/ MAIL
Header "Delivered-To" can be added to every message adding the
Delivered-To
|
getId | public String getId()(Code) | | Return a new mail id.
a new mail id |
getMailetInfo | public String getMailetInfo()(Code) | | Return a string describing this mailet.
a string describing this mailet |
service | public void service(Mail mail) throws MessagingException(Code) | | Delivers a mail to a local mailbox.
Parameters: mail - the mail being processed throws: MessagingException - if an error occurs while storing the mail |
storeMail | public void storeMail(MailAddress sender, MailAddress recipient, MimeMessage message) throws MessagingException(Code) | | Parameters: sender - Parameters: recipient - Parameters: message - throws: MessagingException - |
|
|