X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mymail.c;h=8c211f031415c5501d126367ae1a259c4ac4473a;hb=d3034de5602b5f4a71e700d349d2f3d3cc322978;hp=6fa18140c17872fb422026bbea7a120df621f085;hpb=406c3891838fc77131dbbbd29423b61259cd789d;p=mymail.git diff --git a/mymail.c b/mymail.c index 6fa1814..8c211f0 100644 --- a/mymail.c +++ b/mymail.c @@ -88,6 +88,7 @@ enum { ID_TIME_INTERVAL, ID_MAIL_ID, ID_REFERENCE_ID, + ID_THREAD_ID, MAX_ID }; @@ -102,7 +103,8 @@ static char *field_keys[] = { "body", "interval", "mailid", - "references" + "reference", + "thread" }; /********************************************************************/ @@ -313,6 +315,10 @@ int db_line_match_search(struct search_condition *condition, (condition->db_key == ID_FROM && db_key == ID_LEADING_LINE) + || + + (condition->db_key == ID_THREAD_ID && (db_key == ID_MAIL_ID || + db_key == ID_REFERENCE_ID)) ) && @@ -821,6 +827,7 @@ static struct time_criterion time_criteria[] = { { "24h", 0, 24, -1, -1 }, { "48h", 0, 48, -1, -1 }, { "week", 0, 24 * 7, -1, -1 }, + { "2weeks", 0, 24 * 14, -1, -1 }, { "month", 0, 24 * 31, -1, -1 }, { "trimester", 0, 24 * 92, -1, -1 }, { "year", 0, 24 * 365, -1, -1 },