From 1f7bdbf9c16ab5948ea2c8143216ea66c286d715 Mon Sep 17 00:00:00 2001 From: NotZed Date: Tue, 2 May 2000 23:06:52 +0000 Subject: And here too. 2000-05-02 NotZed * tests/test13.c: And here too. * tests/test2.c (main): REmoved gmime-utils.h * tests/Makefile.am (LDADD): Add libeutil to default link line. (test_movemail_LDADD): Fixed order for libutil linking. svn path=/trunk/; revision=2761 --- tests/Makefile.am | 3 ++- tests/test11.c | 8 ++++++-- tests/test13.c | 1 - tests/test2.c | 1 - 4 files changed, 8 insertions(+), 5 deletions(-) (limited to 'tests') 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" -- cgit v1.2.3