Revision 2468 libsylph/folder.c
| folder.c (revision 2468) | ||
|---|---|---|
| 1461 | 1461 |
qsearch_cond_type = 6; |
| 1462 | 1462 |
else if (!strcmp(attr->value, "last7")) |
| 1463 | 1463 |
qsearch_cond_type = 7; |
| 1464 |
else if (!strcmp(attr->value, "in-addressbook")) |
|
| 1465 |
qsearch_cond_type = 8; |
|
| 1464 | 1466 |
} else if (!strcmp(attr->name, "account_id")) {
|
| 1465 | 1467 |
account = account_find_from_id(atoi(attr->value)); |
| 1466 | 1468 |
if (!account) g_warning("account_id: %s not found\n",
|
| ... | ... | |
| 1638 | 1640 |
"from", "subject", "score", "label", |
| 1639 | 1641 |
"mark", "unread", "mime", "to"}; |
| 1640 | 1642 |
static gchar *qsearch_cond_str[] = {"all", "unread", "mark", "clabel",
|
| 1641 |
"mime", "w1day", "last5", "last7"}; |
|
| 1643 |
"mime", "w1day", "last5", "last7", |
|
| 1644 |
"in-addressbook"}; |
|
| 1642 | 1645 |
|
| 1643 | 1646 |
g_return_if_fail(node != NULL); |
| 1644 | 1647 |
g_return_if_fail(fp != NULL); |
| ... | ... | |
| 1697 | 1700 |
fprintf(fp, " sort_type=\"descending\""); |
| 1698 | 1701 |
} |
| 1699 | 1702 |
if (item->qsearch_cond_type > 0 && |
| 1700 |
item->qsearch_cond_type < 8) {
|
|
| 1703 |
item->qsearch_cond_type < 9) {
|
|
| 1701 | 1704 |
fprintf(fp, " qsearch_cond=\"%s\"", |
| 1702 | 1705 |
qsearch_cond_str[item->qsearch_cond_type]); |
| 1703 | 1706 |
} |
Also available in: Unified diff