]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Moved mail_thread_type_parse() to lib-storage.a to avoid some linking problems.
authorTimo Sirainen <tss@iki.fi>
Mon, 18 May 2009 17:16:55 +0000 (13:16 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 18 May 2009 17:16:55 +0000 (13:16 -0400)
--HG--
branch : HEAD

src/lib-storage/Makefile.am
src/lib-storage/index/index-thread.c
src/lib-storage/mail-thread.c [new file with mode: 0644]

index 2134eba7f29320a1e9d524a83ce825d60d283602..431db57626ce21b17a39a7f457041ea09d529ef2 100644 (file)
@@ -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 \
index 4f4ee0cd8ea978395ece8c78475042b1984e169e..cd4b3baebe7a69fb47ea28b5d0039d6998897c9b 100644 (file)
@@ -53,17 +53,6 @@ static MODULE_CONTEXT_DEFINE_INIT(mail_thread_storage_module,
 
 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,
                          const struct mail_index_strmap_rec *rec,
diff --git a/src/lib-storage/mail-thread.c b/src/lib-storage/mail-thread.c
new file mode 100644 (file)
index 0000000..f5ea7a8
--- /dev/null
@@ -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;
+}