Reverse-merged /alfresco/BRANCHES/DEV/IMAP3:r14500,14521,14560,14563,14632

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14657 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-06-11 14:00:22 +00:00
parent 1a0c0dc758
commit cb7c4e6593
51 changed files with 2797 additions and 4727 deletions

View File

@@ -26,6 +26,7 @@ package org.alfresco.repo.imap;
import javax.mail.internet.MimeMessage;
import com.icegreen.greenmail.imap.ImapHostManager;
import com.icegreen.greenmail.mail.MovingMessage;
import com.icegreen.greenmail.user.GreenMailUser;
import com.icegreen.greenmail.user.UserException;
@@ -41,11 +42,14 @@ public class AlfrescoImapUser implements GreenMailUser
private char[] password;
private String email;
public AlfrescoImapUser(String email, String login, String password)
private ImapHostManager imapHostManager;
public AlfrescoImapUser(String email, String login, String password, ImapHostManager imapHostManager)
{
this.email = email;
this.userName = login;
this.password = password.toCharArray();
this.imapHostManager = imapHostManager;
}
public void authenticate(String password) throws UserException
@@ -67,12 +71,12 @@ public class AlfrescoImapUser implements GreenMailUser
public void deliver(MovingMessage msg) throws UserException
{
throw new UnsupportedOperationException();
}
public void deliver(MimeMessage msg) throws UserException
{
throw new UnsupportedOperationException();
}
public String getEmail()