Revision 3279 libsylph/folder.c

View differences:

folder.c
1700 1700
				qsearch_cond_type = 7;
1701 1701
			else if (!strcmp(attr->value, "in-addressbook"))
1702 1702
				qsearch_cond_type = 8;
1703
			else if (!strcmp(attr->value, "last30"))
1704
				qsearch_cond_type = 9;
1703 1705
		} else if (!strcmp(attr->name, "account_id")) {
1704 1706
			account = account_find_from_id(atoi(attr->value));
1705 1707
			if (!account) g_warning("account_id: %s not found\n",
......
1878 1880
					"mark", "unread", "mime", "to"};
1879 1881
	static gchar *qsearch_cond_str[] = {"all", "unread", "mark", "clabel",
1880 1882
					    "mime", "w1day", "last5", "last7",
1881
					    "in-addressbook"};
1883
					    "in-addressbook", "last30"};
1882 1884

  
1883 1885
	g_return_if_fail(node != NULL);
1884 1886
	g_return_if_fail(fp != NULL);
......
1937 1939
				fprintf(fp, " sort_type=\"descending\"");
1938 1940
		}
1939 1941
		if (item->qsearch_cond_type > 0 &&
1940
		    item->qsearch_cond_type < 9) {
1942
		    item->qsearch_cond_type < 10) {
1941 1943
			fprintf(fp, " qsearch_cond=\"%s\"",
1942 1944
				qsearch_cond_str[item->qsearch_cond_type]);
1943 1945
		}

Also available in: Unified diff