Update of /cvsroot/simplemail/simplemail/tests
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv874/tests
Modified Files:
imap2_unittest.c
Log Message:
Add a mail to the imap folder (locally only for now)
Index: imap2_unittest.c
===================================================================
RCS file: /cvsroot/simplemail/simplemail/tests/imap2_unittest.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- imap2_unittest.c 24 Dec 2013 09:29:44 -0000 1.17
+++ imap2_unittest.c 24 Dec 2013 09:29:59 -0000 1.18
@@ -110,6 +110,7 @@
static enum
{
SWITCH_TO_INBOX,
+ ADD_NEW_MAIL,
QUIT
} state;
@@ -125,6 +126,18 @@
imap_thread_connect(f);
}
+ state = ADD_NEW_MAIL;
+ break;
+
+ case ADD_NEW_MAIL:
+ {
+ char *name = realpath("test.eml", NULL);
+ struct folder *f;
+ f = folder_find_by_imap("test","localhost","INBOX");
+ CU_ASSERT(f != NULL);
+ callback_new_mail_to_folder(name, f);
+ free(name);
+ }
state = QUIT;
break;
|