[Mutt] Search program that can find an E-Mail with an exact Date: match
Chris Green
cl at isbd.net
Mon Nov 29 14:37:52 UTC 2021
On Mon, Nov 29, 2021 at 02:28:30PM +0100, Mihai Lazarescu wrote:
> On Monday, November 29, 2021 at 12:03:31 +0000, Chris Green wrote:
>
> > I'm looking for a way to find (and display) an E-Mail when I know the
> > exact value of the Date: header.
>
> notmuch appears to match specific date/times:
>
> date:<since>..<until> or date:<date>
>
> DATE AND TIME SEARCH
> notmuch understands a variety of standard and
> natural ways of expressing dates and times, both in
> absolute terms ("2012-10-24") and in relative terms
> ("yesterday"). Any number of relative terms can be
> combined ("1 hour 25 minutes") and an absolute date/time
> can be combined with relative terms to further adjust it.
>
> The range expression
> [...]
> If specifying a time range using timestamps in
> conjunction with the date prefix, each timestamp must be
> preceded by @ (ASCII hex 40). As above, each timestamp
> is a number representing the number of seconds since
> 1970-01-01 00:00:00 UTC. For example:
> date:@<initial-timestamp>..@<final-timestamp>
> [...]
>
> Single expression
> date:<expr> works as a shorthand for date:<expr>..<expr>.
> For example, date:monday matches from the beginning of
> Monday until the end of Monday.
>
But the 'Single expression' means (as it says) 'from the beginning of
<day> until the end of that <day>'.
I want to match something like '29 Jan 2010 11:34:13'.
Some further searching in the Ubuntu repositories has found mblaze
which includes various bits and pieces that can be piped together to
do what I want:-
mdirs ~/mail | mlist | magrep 'Date:29 Jan 2010 11:34:13' | mshow
--
Chris Green
More information about the Mutt-users
mailing list