From: Francois Fleuret Date: Mon, 24 Aug 2015 04:53:52 +0000 (+0200) Subject: Added the "semester" time criterion. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9a4a1e8e77dc66899b49f807ce06beb855faab4;p=mymail.git Added the "semester" time criterion. --- diff --git a/mymail.1 b/mymail.1 index d538fb4..211f921 100644 --- a/mymail.1 +++ b/mymail.1 @@ -123,10 +123,11 @@ condition requires to read the full mail from the original mboxes, which can be slow. To speed things up, all the header conditions are checked first. .TP -\fB1h\fR, \fB8h\fR, \fB24h\fR, \fB48h\fR, \fBweek\fR, \fB2weeks\fR, \fBmonth\fR, \fBtrimester\fR, and \fByear\fR -select mails received during the last 1, 8, 24, 48, 7 * 24 hours, 14 * -24 hours, 31 * 24 hours, 92 * 24 hours, and 365 * 24 hours -respectively. +\fB1h\fR, \fB8h\fR, \fB24h\fR, \fB48h\fR, \fBweek\fR, \fB2weeks\fR, +\fBmonth\fR, \fBtrimester\fR, \fBsemester\fR, and \fByear\fR select +mails received during the last 1, 8, 24, 48, 7 * 24 hours, 14 * 24 +hours, 31 * 24 hours, 92 * 24 hours, 185 * 24 hours, and 365 * 24 +hours respectively. .TP \fBtoday\fR selects mails received since midnight. diff --git a/mymail.c b/mymail.c index d84d387..90e8df3 100644 --- a/mymail.c +++ b/mymail.c @@ -842,6 +842,7 @@ static struct time_criterion time_criteria[] = { { "week", 0, 24 * 7, -1, -1 }, { "2weeks", 0, 24 * 14, -1, -1 }, { "month", 0, 24 * 31, -1, -1 }, + { "semester", 0, 24 * 185, -1, -1 }, { "trimester", 0, 24 * 92, -1, -1 }, { "year", 0, 24 * 365, -1, -1 },