all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michal Sojka <sojkam1@fel.cvut.cz>
To: suvayu ali <fatkasuvayu+linux@gmail.com>,
	Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Using date ranges in emacs notmuch search
Date: Mon, 25 Jul 2011 17:55:40 +0200	[thread overview]
Message-ID: <87vcuqqrr7.fsf@steelpick.2x.cz> (raw)
In-Reply-To: <CAMXnza0NBN1B9Di3d+ig3uH1+NEgzhi7BJxDF-iX4S7CYtS5tQ@mail.gmail.com>

On Sat, 23 Jul 2011, suvayu ali wrote:
> Hi Emacs users,
> 
> I was wondering if someone could point me how to correctly specify date
> ranges in an emacs notmuch search. So far I tried these two variations:
> 
> To see all emails from the last 3 months I tried:
> 
> 1. "$(($(date +%s)-5270400))..$(date +%s)" - This completes w/o an error
>    but doesn't return any messages.
> 2. $(($(date +%s)-5270400))..$(date +%s) (w/o the quotes) - This doesn't
>    return any messages either but returns an error code of 1.
> 
> Strangely, from the command line both searches return valid messages.
> What am I doing wrong? Thanks for any help or comments.

Hi,

$(...) is shell syntax and Emacs interface does not use shell to
evaluate these operators. Unfortunately, there is currently no way in
Emacs interface to perform date calculation. There is a few patches
pending for allowing that, but so far no one was merged.

-Michal

P.S. You should better ask this kind of questions in notmuch mailing
list.



  reply	other threads:[~2011-07-25 15:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-23 18:29 Using date ranges in emacs notmuch search suvayu ali
2011-07-25 15:55 ` Michal Sojka [this message]
2011-07-25 16:09   ` suvayu ali
2011-07-25 19:06 ` Andreas Röhler
2011-07-25 19:32   ` suvayu ali
2011-07-26  6:39     ` Andreas Röhler
2011-07-26  9:51       ` suvayu ali

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

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

  git send-email \
    --in-reply-to=87vcuqqrr7.fsf@steelpick.2x.cz \
    --to=sojkam1@fel.cvut.cz \
    --cc=fatkasuvayu+linux@gmail.com \
    --cc=help-gnu-emacs@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.