dovecot-1.2: Moved mail_thread_type_parse() to lib-storage.a to ...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 18 20:15:30 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/d42a8623a008
changeset: 9059:d42a8623a008
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 18 13:15:24 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 44548a7fb10d -r d42a8623a008 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:15:24 2009 -0400
@@ -18,6 +18,7 @@ libstorage_a_SOURCES = \
 	mail-search.c \
 	mail-search-build.c \
 	mail-storage.c \
+	mail-thread.c \
 	mail-user.c \
 	mailbox-list.c \
 	mailbox-search-result.c \
diff -r 44548a7fb10d -r d42a8623a008 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:15:24 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 44548a7fb10d -r d42a8623a008 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:15:24 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