aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-09-11 07:03:42 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-09-11 07:03:42 +0000
commitb03a054ef60f339f79c6773471c7baa9bc9c36f7 (patch)
tree020d2c85c641c5a617aa776f13ce21cb4b62ff02 /libsylph
parent08eb5bedaee6baa18cd9071f99a7be4ae9bef5a1 (diff)
added 'Last 30 days' to the quick search menu.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3279 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/folder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libsylph/folder.c b/libsylph/folder.c
index 5f84990b..d67d61b1 100644
--- a/libsylph/folder.c
+++ b/libsylph/folder.c
@@ -1700,6 +1700,8 @@ static gboolean folder_build_tree(GNode *node, gpointer data)
qsearch_cond_type = 7;
else if (!strcmp(attr->value, "in-addressbook"))
qsearch_cond_type = 8;
+ else if (!strcmp(attr->value, "last30"))
+ qsearch_cond_type = 9;
} 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",
@@ -1878,7 +1880,7 @@ static void folder_write_list_recursive(GNode *node, gpointer data)
"mark", "unread", "mime", "to"};
static gchar *qsearch_cond_str[] = {"all", "unread", "mark", "clabel",
"mime", "w1day", "last5", "last7",
- "in-addressbook"};
+ "in-addressbook", "last30"};
g_return_if_fail(node != NULL);
g_return_if_fail(fp != NULL);
@@ -1937,7 +1939,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 < 9) {
+ item->qsearch_cond_type < 10) {
fprintf(fp, " qsearch_cond=\"%s\"",
qsearch_cond_str[item->qsearch_cond_type]);
}