1 17 18 package org.apache.james.services; 19 20 import org.apache.mailet.Mail; 21 import org.apache.mailet.MailAddress; 22 23 import javax.mail.MessagingException ; 24 import javax.mail.internet.MimeMessage ; 25 import java.io.InputStream ; 26 import java.util.Collection ; 27 28 34 public interface MailServer 35 { 36 39 String ROLE = "org.apache.james.services.MailServer"; 40 41 44 String MDA = "JamesMDA"; 45 46 49 String ALL = "AllMailUsers"; 50 51 60 void sendMail(MailAddress sender, Collection recipients, MimeMessage msg) 61 throws MessagingException ; 62 63 72 void sendMail(MailAddress sender, Collection recipients, InputStream msg) 73 throws MessagingException ; 74 75 80 void sendMail(Mail mail) 81 throws MessagingException ; 82 83 88 void sendMail(MimeMessage message) 89 throws MessagingException ; 90 91 98 MailRepository getUserInbox(String userName); 99 100 105 String getId(); 106 107 114 boolean addUser(String userName, String password); 115 116 122 boolean isLocalServer(String serverName); 123 } 124 | Popular Tags |