checked first to read the bodies only for mails which fulfill them
entirely.
.TP
-\fB8h\fR, \fBtoday\fR, \fB24h\fR, \fBweek\fR, and \fBmonth\fR selects
-mails received respectively during the last 8, 24, 24, 7 * 24 hours or
-31 * 24 hours.
+\fB8h\fR, \fBtoday\fR, \fB24h\fR, \fBweek\fR, \fBmonth\fR, and
+\fByear\fR selects mails received during the last 8, 24, 24, 7 * 24
+hours, 31 * 24 hours, and 365 * 24 hours respectively.
.TP
\fByesterday\fR selects mails received between 48h and 24h ago.
.TP
condition->interval_stop = 0;
}
+ else if(strcmp(search_field, "24h") == 0 ||
+ strcmp(search_field, "today") == 0) {
+ condition->field_id = ID_INTERVAL;
+ condition->interval_start = time(0) - 3600 * 24;
+ condition->interval_stop = 0;
+ }
+
else if(strcmp(search_field, "week") == 0) {
condition->field_id = ID_INTERVAL;
condition->interval_start = time(0) - 3600 * 24 * 7;
condition->interval_stop = 0;
}
- else if(strcmp(search_field, "24h") == 0 ||
- strcmp(search_field, "today") == 0) {
+ else if(strcmp(search_field, "year") == 0) {
condition->field_id = ID_INTERVAL;
- condition->interval_start = time(0) - 3600 * 24;
+ condition->interval_start = time(0) - 3600 * 24 * 365;
condition->interval_stop = 0;
}