aboutsummaryrefslogtreecommitdiff
path: root/libsylph/folder.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-12 05:31:59 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-12 05:31:59 +0000
commit739668b38048db73994b27fc63496d42473ff08e (patch)
tree243266999341ad03124c2387899e62d01aebb0a7 /libsylph/folder.c
parent2e693597aa60fb25b8a22b2c5c2fc0db86bad7c9 (diff)
added 'In addressbook' to the quick search menu.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2468 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/folder.c')
-rw-r--r--libsylph/folder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libsylph/folder.c b/libsylph/folder.c
index 9aaa50db..9866417c 100644
--- a/libsylph/folder.c
+++ b/libsylph/folder.c
@@ -1461,6 +1461,8 @@ static gboolean folder_build_tree(GNode *node, gpointer data)
qsearch_cond_type = 6;
else if (!strcmp(attr->value, "last7"))
qsearch_cond_type = 7;
+ else if (!strcmp(attr->value, "in-addressbook"))
+ qsearch_cond_type = 8;
} else if (!strcmp(attr->name, "account_id")) {
account = account_find_from_id(atoi(attr->value));
if (!account) g_warning("account_id: %s not found\n",
@@ -1638,7 +1640,8 @@ static void folder_write_list_recursive(GNode *node, gpointer data)
"from", "subject", "score", "label",
"mark", "unread", "mime", "to"};
static gchar *qsearch_cond_str[] = {"all", "unread", "mark", "clabel",
- "mime", "w1day", "last5", "last7"};
+ "mime", "w1day", "last5", "last7",
+ "in-addressbook"};
g_return_if_fail(node != NULL);
g_return_if_fail(fp != NULL);
@@ -1697,7 +1700,7 @@ static void folder_write_list_recursive(GNode *node, gpointer data)
fprintf(fp, " sort_type=\"descending\"");
}
if (item->qsearch_cond_type > 0 &&
- item->qsearch_cond_type < 8) {
+ item->qsearch_cond_type < 9) {
fprintf(fp, " qsearch_cond=\"%s\"",
qsearch_cond_str[item->qsearch_cond_type]);
}