Added the "trimester" request.
authorFrancois Fleuret <francois@fleuret.org>
Thu, 11 Apr 2013 19:33:24 +0000 (21:33 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Thu, 11 Apr 2013 19:33:24 +0000 (21:33 +0200)
mymail.1
mymail.c

index 82ce908..03382d9 100644 (file)
--- 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
 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.
 .TP
 \fBtoday\fR
 selects mails received since midnight.
index e802be1..88c01f5 100644 (file)
--- 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 },
   { "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 },
   { "year",      0, 24 * 365, -1, -1 },
 
   { "yesterday", 1, -1,       -1, -1 },