aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/test11.c8
-rw-r--r--tests/test13.c1
-rw-r--r--tests/test2.c1
4 files changed, 8 insertions, 5 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fa19264d26..4f8214829b 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -7,6 +7,7 @@ INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir) -I$(top_srcdir)/camel \
LDADD = \
$(top_builddir)/camel/libcamel.la \
+ $(top_builddir)/e-util/libeutil.la \
$(top_builddir)/libibex/libibex.la \
$(GNOME_LIBDIR) \
$(GNOMEUI_LIBS) $(INTLLIBS) $(EXTRA_GNOME_LIBS)
@@ -41,8 +42,8 @@ LDADD = \
# $(GNOMEUI_LIBS) $(INTLLIBS) $(EXTRA_GNOME_LIBS)
test_movemail_LDADD = \
- $(top_builddir)/e-util/libeutil.la \
$(top_builddir)/camel/libcamel.la \
+ $(top_builddir)/e-util/libeutil.la \
$(top_builddir)/libibex/libibex.la \
$(GNOME_LIBDIR) \
$(GNOMEUI_LIBS) $(INTLLIBS) $(EXTRA_GNOME_LIBS)
diff --git a/tests/test11.c b/tests/test11.c
index beb706dca1..25f7d88928 100644
--- a/tests/test11.c
+++ b/tests/test11.c
@@ -84,7 +84,8 @@ main (int argc, char**argv)
printf("Search for messages\n");
matches = camel_folder_search_by_expression (folder,
- "(match-all (header-contains \"subject\" \"gnome\"))",
+/* "(match-all (header-contains \"subject\" \"gnome\"))",*/
+ "(body-contains \"gnome\")",
ex);
printf("search found matches:\n");
@@ -93,8 +94,9 @@ main (int argc, char**argv)
CamelMimeMessage *m;
printf("uid: %s\n", (char *) n->data);
+#if 0
m = camel_folder_get_message_by_uid(folder, n->data, ex);
-
+
if (camel_exception_get_id (ex)) {
printf ("Cannot get message\n"
"Full description : %s\n", camel_exception_get_description (ex));
@@ -111,6 +113,8 @@ main (int argc, char**argv)
camel_mime_message_set_flags(m, CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED);
/* camel_mime_message_set_flags(m, CAMEL_MESSAGE_ANSWERED, CAMEL_MESSAGE_ANSWERED);*/
}
+ camel_mime_message_unref(m);
+#endif
n = g_list_next(n);
}
diff --git a/tests/test13.c b/tests/test13.c
index 371b09c6fd..f9fde1720f 100644
--- a/tests/test13.c
+++ b/tests/test13.c
@@ -1,6 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* tests mime message file parsing */
-#include "gmime-utils.h"
#include "stdio.h"
#include "camel-mime-message.h"
#include "camel-mime-part.h"
diff --git a/tests/test2.c b/tests/test2.c
index fb7f1d4eb9..2aa0ae93de 100644
--- a/tests/test2.c
+++ b/tests/test2.c
@@ -1,6 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* tests mime message file parsing */
-#include "gmime-utils.h"
#include "stdio.h"
#include "camel-mime-message.h"
#include "camel-mime-part.h"