Re: What to do about SEARCH?

Charles Cazabon <[email protected]> Thu, 6 Mar 2003 15:15:33 -0600
Newsgroups gmane.mail.bikini.devel
Message-ID <[email protected]>
Frank Tegtmeyer <[email protected]> wrote:
> 
> Regarding time limits: I must admit it's a feature I often miss, but I
> don't really know if it would be so useful that it's worth the effort
> and complexity. Leaving it out is also fine for me.

Except... it's only complex if you're searching based on the date in the
header of the message.  If you simply want to limit based on the "internal
timestamp attribute" of the message, it's simple for any server that stores
messages in anything other than mbox format (maildir, mh, RDBMS) as you can
trivially limit based on the mtime of the file or a last-updated timestamp
field in a database.

Perhaps add this as an optional argument to SEARCH?

  SEARCH <folder-path> <header-pattern> <match-pattern> <timestamp-range>

where timestamp-range is two dates in the YYYYMMDD"T"HHMMSS"Z" format,
separated by "-".

?

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                           <[email protected]>
BikINI project website:    http://www.qcc.ca/~charlesc/software/bikini/
GPL'ed software available at:     http://www.qcc.ca/~charlesc/software/
-----------------------------------------------------------------------