unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: notmuch@notmuchmail.org
Subject: Re: $(date ...)..$(date ...) request from Emacs
Date: Sat, 24 Aug 2013 14:20:04 +0200	[thread overview]
Message-ID: <20130824122004.GD5880@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <m28uzrtlbn.fsf@guru.guru-group.fi>

Hello Bastien!

On Sat, Aug 24, 2013 at 01:49:48PM +0300, Tomi Ollila wrote:
> On Sat, Aug 24 2013, Bastien <bzg@altern.org> wrote:
> 
> > Hi again,
> >
> > notmuch search $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02)
> >
> > works wonders from the command line, but not from within Emacs:
> >
> > M-x notmuch-search RET $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02)
> 
> there is no shell expansion done to the string... 
> 
> ... however
> 
> M-x notmuch-search RET date:2009-10-01..2009-10-02
> 
> should do it (provided you have at least notmuch 0.15 (or so))

To add to that, notmuch now also understands relative dates, and many
other date expressions.  Check out the 'Date and time search' section in
`man notmuch-search-terms'.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

  reply	other threads:[~2013-08-24 12:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-24 10:44 $(date ...)..$(date ...) request from Emacs Bastien
2013-08-24 10:49 ` Tomi Ollila
2013-08-24 12:20   ` Suvayu Ali [this message]
2013-08-25  7:04     ` Bastien

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=20130824122004.GD5880@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --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).