Returns an arbitrarily selected mail deposited in this Repository that
is either ready immediately for delivery, or is younger than it's last_updated plus
the number of failed attempts times the delay time.
Test encoding issues
This test should also be run with the following JVM options to be sure it tests:
"-Dfile.encoding=ASCII -Dmail.mime.charset=ANSI_X3.4-1968"
while addUser() is part of MailServer interface, a user cannot be tested for afterwards
at the same time, James allows to do exactly this via isLocalUser(), other implementations
might vary.
Tests the org.apache.james.remotemanager.RemoteManager
TODO: impl missing command tests for:
USER
SHUTDOWN (hard to test, because it does shutdown the whole (testing) JVM
this is commented out due optimisation reverts (JAMES-559)
public void testDeferredMessageLoadingWhileWriting() throws MessagingException, IOException {
mw.setMessageLoadable(false);
assertEquals("foo",mw.getSubject());
assertFalse(mw.isModified());
mw.setSubject("newSubject");
assertEquals("newSubject",mw.getSubject());
assertFalse(mw.messageParsed());
assertTrue(mw.isModified());
mw.setMessageLoadable(true);
}
If I create a new MimeMessageCopyOnWriteProxy from another MimeMessageCopyOnWriteProxy,
I remove references to the first and I change the second, then it should not clone
If I create a new MimeMessageCopyOnWriteProxy from a MimeMessage and I change the new
message, the original should be unaltered and the proxy should clone the message.