From 22532a2bc4e95e3335efb0d039d0d93bcc1a225f Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 22 Nov 2010 09:46:19 +0000 Subject: [PATCH] IMAP: new test case to show Thunderbird perf issue git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1551 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/test/davmail/imap/TestImap.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/davmail/imap/TestImap.java b/src/test/davmail/imap/TestImap.java index c6364832..922bb727 100644 --- a/src/test/davmail/imap/TestImap.java +++ b/src/test/davmail/imap/TestImap.java @@ -349,4 +349,16 @@ public class TestImap extends AbstractDavMailTestCase { clientSocket.close(); Thread.sleep(5000); } + + public void testFetchRfc822Header() throws IOException { + testSelectInbox(); + writeLine(". UID FETCH 1:* (UID RFC822.HEADER RFC822.SIZE FLAGS)"); + assertEquals(". OK UID FETCH completed", readFullAnswer(".")); + } + + public void testThunderbirdHeaderFetch() throws IOException { + testSelectInbox(); + writeLine(". UID FETCH 1:* (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (From To Cc Bcc Subject Date Message-ID Priority X-Priority References Newsgroups In-Reply-To Content-Type)])"); + assertEquals(". OK UID FETCH completed", readFullAnswer(".")); + } }