From: Francois Fleuret Date: Wed, 17 Jul 2013 14:10:55 +0000 (+0200) Subject: Added the 'thread' key, which stands for either 'mailid' or 'reference'. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mymail.git;a=commitdiff_plain;h=2067ba7cc3ac7a412c2ba633cb71dc2ecfcb28ce Added the 'thread' key, which stands for either 'mailid' or 'reference'. --- diff --git a/mymail.c b/mymail.c index 6fa1814..7394c71 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)) ) &&