dovecot-2.0: Moved mail_thread_type_parse() to lib-storage.a to ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon May 18 20:17:11 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/ca39cedd796e
changeset: 9323:ca39cedd796e
user: Timo Sirainen <tss at iki.fi>
date: Mon May 18 13:16:55 2009 -0400
description:
Moved mail_thread_type_parse() to lib-storage.a to avoid some linking problems.
diffstat:
3 files changed, 16 insertions(+), 11 deletions(-)
src/lib-storage/Makefile.am | 1 +
src/lib-storage/index/index-thread.c | 11 -----------
src/lib-storage/mail-thread.c | 15 +++++++++++++++
diffs (51 lines):
diff -r ce612bdafc84 -r ca39cedd796e src/lib-storage/Makefile.am
--- a/src/lib-storage/Makefile.am Mon May 18 13:09:25 2009 -0400
+++ b/src/lib-storage/Makefile.am Mon May 18 13:16:55 2009 -0400
@@ -23,6 +23,7 @@ libstorage_la_SOURCES = \
mail-search-build.c \
mail-storage.c \
mail-storage-settings.c \
+ mail-thread.c \
mail-user.c \
mailbox-list.c \
mailbox-search-result.c \
diff -r ce612bdafc84 -r ca39cedd796e src/lib-storage/index/index-thread.c
--- a/src/lib-storage/index/index-thread.c Mon May 18 13:09:25 2009 -0400
+++ b/src/lib-storage/index/index-thread.c Mon May 18 13:16:55 2009 -0400
@@ -52,17 +52,6 @@ static MODULE_CONTEXT_DEFINE_INIT(mail_t
&mail_storage_module_register);
static void mail_thread_clear(struct mail_thread_context *ctx);
-
-bool mail_thread_type_parse(const char *str, enum mail_thread_type *type_r)
-{
- if (strcasecmp(str, "REFERENCES") == 0)
- *type_r = MAIL_THREAD_REFERENCES;
- else if (strcasecmp(str, "REFS") == 0)
- *type_r = MAIL_THREAD_REFS;
- else
- return FALSE;
- return TRUE;
-}
static int
mail_strmap_rec_get_msgid(struct mail_thread_context *ctx,
diff -r ce612bdafc84 -r ca39cedd796e src/lib-storage/mail-thread.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/lib-storage/mail-thread.c Mon May 18 13:16:55 2009 -0400
@@ -0,0 +1,15 @@
+/* Copyright (c) 2009 Dovecot authors, see the included COPYING file */
+
+#include "lib.h"
+#include "mail-thread.h"
+
+bool mail_thread_type_parse(const char *str, enum mail_thread_type *type_r)
+{
+ if (strcasecmp(str, "REFERENCES") == 0)
+ *type_r = MAIL_THREAD_REFERENCES;
+ else if (strcasecmp(str, "REFS") == 0)
+ *type_r = MAIL_THREAD_REFS;
+ else
+ return FALSE;
+ return TRUE;
+}
More information about the dovecot-cvs
mailing list