1 5 package org.exoplatform.services.communication.message.impl; 6 7 import javax.mail.URLName ; 8 import org.exoplatform.services.communication.message.MailService; 9 import org.exoplatform.services.communication.message.MessageService; 10 15 public class POP3MessageProtocolPlugin extends BaseMailMessageProtocolPlugin { 16 17 public POP3MessageProtocolPlugin(MessageService mservice, MailService mailService) { 18 super(mservice, mailService) ; 19 } 20 21 public String getProtocol() { return MessageService.POP3_PROTOCOL ; } 22 23 public URLName getInboxFolderURLName(String host, String userName , String password) { 24 return new URLName ("pop3", host, 110, "INBOX" , userName, password); 25 } 26 } | Popular Tags |