[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Picking Recent Emails.
From: |
Paul Fox |
Subject: |
Re: [Nmh-workers] Picking Recent Emails. |
Date: |
Wed, 08 Apr 2015 20:53:32 -0400 |
ken wrote:
> >To pick today's emails, one might try `pick -after yesterday' or the
> >equivalent `pick -after -1', but this seems to mean `within the last 24
> >hours'.
>
> Yeah, those things (and in fact anything where you only specify a date and
> not a time) uses the current time instead of midnight. Which is odd if
> you don't know about it.
>
> >(`pick -not -before today' I investigated only a little.) It
> >seems
> >
> > pick -after '08 Apr 2015 00:00:00 +0100'
> >
> >is what's needed to get today's emails, with a similar incantation for
> >yesterday's. I can script this, but I think the current behaviour isn't
> >the most useful? find(1) has a -daystart option for a similar issue.
>
> My find(1) lacks a -daystart option, so I do not know exactly what it
> does. Considering this is a behavior change, I am interested in what others
> think about this.
from my "man find":
-daystart
Measure times (for -amin, -atime, -cmin, -ctime, -mmin, and
-mtime) from the beginning of today rather than from 24 hours
ago. This option only affects tests which appear later on the
command line.
i assume ralph wasn't suggesting changing current behavior. adding an
option seems reasonable enough (and useful).
paul
=----------------------
paul fox, address@hidden (arlington, ma, where it's 29.5 degrees)
Re: [Nmh-workers] Picking Recent Emails., Ralph Corderoy, 2015/04/09
Re: [Nmh-workers] Picking Recent Emails., norm, 2015/04/09