diff --git a/pom.xml b/pom.xml
index 0261e3ab86..dd1f3248ee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,9 +35,9 @@
${project.version}
- javax.mail
- mail
- 1.4
+ com.sun.mail
+ javax.mail
+ 1.5.2
com.icegreen
diff --git a/source/test-java/org/alfresco/repo/imap/ImapMessageTest.java b/source/test-java/org/alfresco/repo/imap/ImapMessageTest.java
index 47877e0a75..f1d4ecd734 100644
--- a/source/test-java/org/alfresco/repo/imap/ImapMessageTest.java
+++ b/source/test-java/org/alfresco/repo/imap/ImapMessageTest.java
@@ -284,7 +284,7 @@ public class ImapMessageTest extends TestCase
BODY bodyNew = getMessageBody(folder, uid);
// The body should be updated
- assertFalse(Arrays.equals(bodyNew.data.getBytes(), body.data.getBytes()));
+ assertFalse(Arrays.equals(bodyNew.getByteArray().getBytes(), body.getByteArray().getBytes()));
// Parse the multipart MIME message
message = new MimeMessage(Session.getDefaultInstance(new Properties()), new BufferedInputStream(bodyNew.getByteArrayInputStream()));
@@ -651,7 +651,7 @@ public class ImapMessageTest extends TestCase
{
FetchResponse fetchResponse = (FetchResponse) r[0];
UID uid = (UID) fetchResponse.getItem(UID.class);
- logger.debug("MSGNO=" + uid.msgno + ", UID="+uid.uid);
+ logger.debug("SECNUM=" + uid.seqnum + ", UID="+uid.uid);
return uid.uid;
}
}
@@ -691,7 +691,7 @@ public class ImapMessageTest extends TestCase
*/
private static Integer getMessageSize(IMAPFolder folder, final Long uid) throws MessagingException
{
- return getMessageBody(folder, uid).data.getCount();
+ return getMessageBody(folder, uid).getByteArray().getCount();
}
/**