IMAP: test custom header search

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1698 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-06-07 20:42:25 +00:00
parent 448c2f5f7a
commit 48761a6619
1 changed files with 8 additions and 0 deletions

View File

@ -308,6 +308,14 @@ public class TestImap extends AbstractImapTestCase {
assertEquals(". OK UID FETCH completed", readFullAnswer("."));
}
public void testSearchHeader() throws IOException {
testSelectInbox();
writeLine(". UID SEARCH HEADER X-TUID testvalue");
assertEquals(". OK SEARCH completed", readFullAnswer("."));
writeLine(". UID SEARCH HEADER X-OfflineIMAP \"testvalue\"");
assertEquals(". OK SEARCH completed", readFullAnswer("."));
}
public void testBrokenPipe() throws IOException, InterruptedException {
testSelectInbox();
writeLine(". UID FETCH 1:* (RFC822.SIZE BODY.TEXT)");