nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Picking Recent Emails.

2015-04-08 19:53:44
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, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 29.5 degrees)

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>