aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-05-03 07:06:52 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-03 07:06:52 +0800
commit1f7bdbf9c16ab5948ea2c8143216ea66c286d715 (patch)
tree5c3534faed84b0dc481d6ecc4e8a8897702df5de /tests
parent5f25c0c05cdbc3b5b382140566431a3d15807151 (diff)
downloadgsoc2013-evolution-1f7bdbf9c16ab5948ea2c8143216ea66c286d715.tar
gsoc2013-evolution-1f7bdbf9c16ab5948ea2c8143216ea66c286d715.tar.gz
gsoc2013-evolution-1f7bdbf9c16ab5948ea2c8143216ea66c286d715.tar.bz2
gsoc2013-evolution-1f7bdbf9c16ab5948ea2c8143216ea66c286d715.tar.lz
gsoc2013-evolution-1f7bdbf9c16ab5948ea2c8143216ea66c286d715.tar.xz
gsoc2013-evolution-1f7bdbf9c16ab5948ea2c8143216ea66c286d715.tar.zst
gsoc2013-evolution-1f7bdbf9c16ab5948ea2c8143216ea66c286d715.zip
And here too.
2000-05-02 NotZed <NotZed@HelixCode.com> * 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
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"