Wonderful! Thanks Jani.

> Alternatively, you can use @<timestamp> in date: queries, although this
> seems to be completely undocumented:

I guess this relates to similar syntax requirements of date -d in that a unix timestamp is required to be preceded by an @

# date -d 1517152333
date: invalid date ‘1517152333’
# date -d @1517152333
Sun Jan 28 15:12:13 GMT 2018

On Mon, Jan 29, 2018 at 4:03 PM, Jani Nikula <jani@nikula.org> wrote:
On Mon, 29 Jan 2018, Matthew Lear <matt@bubblegen.co.uk> wrote:
> Hi. I've noticed that I'm unable to notmuch search using date with unix
> timestamps (ie number of seconds since Jan 1st 1970 UTC). I get a xapian
> error. The notmuch man pages state that searching using
> 'date:<initial-timestamp>..<<wbr>final-timestamp>'
> where "each timestamp is a number representing the number of seconds since
> 1970-01-01 00:00:00 UTC" is supported, so I'm wondering what's wrong with
> my installation.

The man page could use some clarification.

The <initial-timestamp>..<final-<wbr>timestamp> syntax predates the date:
prefix, and needs to be given as-is:

$ notmuch search 1517152333..1517238733

Alternatively, you can use @<timestamp> in date: queries, although this
seems to be completely undocumented:

$ notmuch search date:@1517152333..@1517238733

HTH,
Jani.