From: Francois Fleuret Date: Mon, 10 Feb 2014 10:38:55 +0000 (+0100) Subject: Added the 1h condition. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=30f83da3678a2fd351a43ef0d6944ad746f8b715;p=mymail.git Added the 1h condition. --- diff --git a/mymail.1 b/mymail.1 index f5bc868..a9ce49e 100644 --- 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 -\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. diff --git a/mymail.c b/mymail.c index 8a5fa24..b3e7ede 100644 --- a/mymail.c +++ b/mymail.c @@ -833,6 +833,7 @@ struct time_criterion { 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 },