Added the "semester" time criterion.
authorFrancois Fleuret <francois.fleuret@idiap.ch>
Mon, 24 Aug 2015 04:53:52 +0000 (06:53 +0200)
committerFrancois Fleuret <francois.fleuret@idiap.ch>
Mon, 24 Aug 2015 04:53:52 +0000 (06:53 +0200)
mymail.1
mymail.c

index d538fb4..211f921 100644 (file)
--- 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
 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.
 .TP
 \fBtoday\fR
 selects mails received since midnight.
index d84d387..90e8df3 100644 (file)
--- 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 },
   { "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 },
 
   { "trimester", 0, 24 *  92, -1, -1 },
   { "year",      0, 24 * 365, -1, -1 },