Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9059:d42a8623a008 HEAD
Moved mail_thread_type_parse() to lib-storage.a to avoid some linking problems.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 18 May 2009 13:15:24 -0400 |
parents | 44548a7fb10d |
children | 46c9e3364d81 |
files | src/lib-storage/Makefile.am src/lib-storage/index/index-thread.c src/lib-storage/mail-thread.c |
diffstat | 3 files changed, 16 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ mail-search.c \ mail-search-build.c \ mail-storage.c \ + mail-thread.c \ mail-user.c \ mailbox-list.c \ mailbox-search-result.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 @@ -53,17 +53,6 @@ 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,
--- /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; +}