mirror of
https://github.com/moparisthebest/davmail
synced 2024-08-13 16:53:51 -04:00
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:
parent
448c2f5f7a
commit
48761a6619
@ -308,6 +308,14 @@ public class TestImap extends AbstractImapTestCase {
|
|||||||
assertEquals(". OK UID FETCH completed", readFullAnswer("."));
|
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 {
|
public void testBrokenPipe() throws IOException, InterruptedException {
|
||||||
testSelectInbox();
|
testSelectInbox();
|
||||||
writeLine(". UID FETCH 1:* (RFC822.SIZE BODY.TEXT)");
|
writeLine(". UID FETCH 1:* (RFC822.SIZE BODY.TEXT)");
|
||||||
|
Loading…
Reference in New Issue
Block a user