aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-12-08 06:54:05 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-12-08 06:54:05 +0000
commitf2b626d730194d20ad500ee4957830ddef550d4a (patch)
tree590002e14e04aa6e911ba954eedcd47a812cf2bb /libsylph
parent008b58d1e888f478801805202aef128d5a020071 (diff)
added 'Last 7 days' to the quick search.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2372 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 66d7702e..9aaa50db 100644
--- a/libsylph/folder.c
+++ b/libsylph/folder.c
@@ -1459,6 +1459,8 @@ static gboolean folder_build_tree(GNode *node, gpointer data)
qsearch_cond_type = 5;
else if (!strcmp(attr->value, "last5"))
qsearch_cond_type = 6;
+ else if (!strcmp(attr->value, "last7"))
+ qsearch_cond_type = 7;
} 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",
@@ -1636,7 +1638,7 @@ 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"};
+ "mime", "w1day", "last5", "last7"};
g_return_if_fail(node != NULL);
g_return_if_fail(fp != NULL);
@@ -1695,7 +1697,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 < 7) {
+ item->qsearch_cond_type < 8) {
fprintf(fp, " qsearch_cond=\"%s\"",
qsearch_cond_str[item->qsearch_cond_type]);
}