unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "Robert Künnemann" <robert@kunnemann.de>
To: notmuch@notmuchmail.org
Subject: Syntactic sugar for range syntax
Date: Wed, 10 Jun 2015 17:38:33 +0200	[thread overview]
Message-ID: <20150610153833.GA19301@peachum.local> (raw)

Hi everyone,

I've been using notmuch for about a year now (using mutt-kz) and I am
very happy with it. I have, however, a small suggestion about the range
syntax in search queries. Often, I am looking for emails that have
occurred, say, in the last week. The query has the following form:

 date:today-1week..today

The following syntactic sugar could shorten this kind of queries:
 
 date:r -> date:r..today, if r is a relative date
 date:a -> date:a..a, if a is an absolute date
 date:a-r -> date:a-r..a, for combination.

(If r is interpreted as today-r, the first two transformations are
subsumed by the last.)

For example:
 date:today -> date:today..today
 date:-1week -> date:-1week..today
 date:24.12.2014-4w -> date:24.12.2014-4w..24.12.2014 

What do you think about this suggestion? Is this something notmuch would
do, or rather something for xapian?

With kind regards, Robert Künnemann

             reply	other threads:[~2015-06-10 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10 15:38 Robert Künnemann [this message]
2015-06-11 17:24 ` Syntactic sugar for range syntax Jani Nikula
2015-06-13  9:33   ` Robert Künnemann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150610153833.GA19301@peachum.local \
    --to=robert@kunnemann.de \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).