| org.apache.james.services.MailServer
All known Subclasses: org.apache.james.James, org.apache.james.test.mock.james.MockMailServer,
MailServer | public interface MailServer (Code) | | The interface for Phoenix blocks to the James MailServer
version: This is $Revision: 494012 $ |
ALL | String ALL(Code) | | Reserved user name meaning all users for multi-user mailboxes
|
MDA | String MDA(Code) | | Reserved user name for the mail delivery agent for multi-user mailboxes
|
ROLE | String ROLE(Code) | | The component role used by components implementing this service
|
addUser | boolean addUser(String userName, String password)(Code) | | Adds a new user to the mail system with userName. For POP3 style stores
this may only involve adding the user to the UsersStore.
Parameters: sender - - the name of the user a reference to an initialised mailbox |
getId | String getId()(Code) | | Generate a new identifier/name for a mail being processed by this server.
the new identifier |
getUserInbox | MailRepository getUserInbox(String userName)(Code) | | Retrieve the primary mailbox for userName. For POP3 style stores this
is their (sole) mailbox.
Parameters: sender - - the name of the user a reference to an initialised mailbox |
isLocalServer | boolean isLocalServer(String serverName)(Code) | | Checks if a server is serviced by mail context
Parameters: serverName - - name of server. true if server is local, i.e. serviced by this mail context |
sendMail | void sendMail(MailAddress sender, Collection recipients, MimeMessage msg) throws MessagingException(Code) | | Pass a MimeMessage to this MailServer for processing
Parameters: sender - - the sender of the message Parameters: recipients - - a Collection of String objects of recipients Parameters: msg - - the MimeMessage of the headers and body content ofthe outgoing message throws: MessagingException - - if the message fails to parse |
sendMail | void sendMail(MailAddress sender, Collection recipients, InputStream msg) throws MessagingException(Code) | | Pass a MimeMessage to this MailServer for processing
Parameters: sender - - the sender of the message Parameters: recipients - - a Collection of String objects of recipients Parameters: msg - - an InputStream containing the headers and body content ofthe outgoing message throws: MessagingException - - if the message fails to parse |
sendMail | void sendMail(Mail mail) throws MessagingException(Code) | | Pass a Mail to this MailServer for processing
Parameters: mail - the Mail to be processed throws: MessagingException - |
sendMail | void sendMail(MimeMessage message) throws MessagingException(Code) | | Pass a MimeMessage to this MailServer for processing
Parameters: message - the message throws: MessagingException - |
|
|