From: Francois Fleuret Date: Thu, 11 Apr 2013 19:33:24 +0000 (+0200) Subject: Added the "trimester" request. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=00434484dd0b89eb91cb6ea9be03eeaee1f97751;p=mymail.git Added the "trimester" request. --- diff --git a/mymail.1 b/mymail.1 index 82ce908..03382d9 100644 --- a/mymail.1 +++ b/mymail.1 @@ -112,10 +112,9 @@ condition requires to read the original mboxes completely, which can be slow. However, header conditions are checked first to read the bodies only for mails which fulfill them entirely. .TP -\fB8h\fR, \fB24h\fR, \fB48h\fR, \fBweek\fR, \fBmonth\fR, and -\fByear\fR -selects mails received during the last 8, 24, 24, 48, 7 * 24 hours, 31 * -24 hours, and 365 * 24 hours respectively. +\fB8h\fR, \fB24h\fR, \fB48h\fR, \fBweek\fR, \fBmonth\fR, \fBtrimester\fR, +and \fByear\fR selects mails received during the last 8, 24, 24, 48, 7 +* 24 hours, 31 * 24 hours, 92 * 24 hours, and 365 * 24 hours respectively. .TP \fBtoday\fR selects mails received since midnight. diff --git a/mymail.c b/mymail.c index e802be1..88c01f5 100644 --- a/mymail.c +++ b/mymail.c @@ -767,6 +767,7 @@ static struct time_criterion time_criteria[] = { { "48h", 0, 48, -1, -1 }, { "week", 0, 24 * 7, -1, -1 }, { "month", 0, 24 * 31, -1, -1 }, + { "trimester", 0, 24 * 92, -1, -1 }, { "year", 0, 24 * 365, -1, -1 }, { "yesterday", 1, -1, -1, -1 },