$(date ...)..$(date ...) request from Emacs

Suvayu Ali fatkasuvayu+linux at gmail.com
Sat Aug 24 05:20:04 PDT 2013


Hello Bastien!

On Sat, Aug 24, 2013 at 01:49:48PM +0300, Tomi Ollila wrote:
> On Sat, Aug 24 2013, Bastien <bzg at 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.


More information about the notmuch mailing list