Added the 1h condition.
authorFrancois Fleuret <francois@fleuret.org>
Mon, 10 Feb 2014 10:38:55 +0000 (11:38 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 10 Feb 2014 10:38:55 +0000 (11:38 +0100)
mymail.1
mymail.c

index f5bc868..a9ce49e 100644 (file)
--- a/mymail.1
+++ b/mymail.1
@@ -123,9 +123,10 @@ 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
-\fB8h\fR, \fB24h\fR, \fB48h\fR, \fBweek\fR, \fB2weeks\fR, \fBmonth\fR, \fBtrimester\fR, and \fByear\fR
-select mails received during the last 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, 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.
 .TP
 \fBtoday\fR
 selects mails received since midnight.
 .TP
 \fBtoday\fR
 selects mails received since midnight.
index 8a5fa24..b3e7ede 100644 (file)
--- a/mymail.c
+++ b/mymail.c
@@ -833,6 +833,7 @@ struct time_criterion {
 
 static struct time_criterion time_criteria[] = {
 
 
 static struct time_criterion time_criteria[] = {
 
+  { "1h",        0,  1,       -1, -1 },
   { "8h",        0,  8,       -1, -1 },
   { "24h",       0, 24,       -1, -1 },
   { "48h",       0, 48,       -1, -1 },
   { "8h",        0,  8,       -1, -1 },
   { "24h",       0, 24,       -1, -1 },
   { "48h",       0, 48,       -1, -1 },