From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: Using date ranges in emacs notmuch search Date: Mon, 25 Jul 2011 21:32:47 +0200 Message-ID: References: <4E2DBEBC.6050809@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311622399 9959 80.91.229.12 (25 Jul 2011 19:33:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2011 19:33:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?Andreas_R=F6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 25 21:33:15 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QlQtv-0001E6-K0 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jul 2011 21:33:15 +0200 Original-Received: from localhost ([::1]:55018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlQtu-0001yY-SU for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jul 2011 15:33:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlQtq-0001yI-Pg for help-gnu-emacs@gnu.org; Mon, 25 Jul 2011 15:33:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlQtp-0003Cs-GX for help-gnu-emacs@gnu.org; Mon, 25 Jul 2011 15:33:10 -0400 Original-Received: from mail-fx0-f52.google.com ([209.85.161.52]:43109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlQtp-0003CF-Br for help-gnu-emacs@gnu.org; Mon, 25 Jul 2011 15:33:09 -0400 Original-Received: by fxd18 with SMTP id 18so7805221fxd.39 for ; Mon, 25 Jul 2011 12:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Jp9WpHlhP9jq+rFYtzIIjEt3EeMBo5S7CJamHf2sH8I=; b=UDq+vgG8ZpSg1nJryDfdHdbbF5IFNecDesua87oxOG2uk+apNltaQ7YfX8g8gtJNxE SOAfPAX5llWI7BR4UNC00RMHVdxrQeoSIBq+c8W2AHY/Zr7vm8MYkoqY2qXH0pH2FcaJ JxbfaY2/JqphX6PCtTpC+4jSmwaUX/BJeBQO0= Original-Received: by 10.204.143.1 with SMTP id s1mr1397882bku.112.1311622387312; Mon, 25 Jul 2011 12:33:07 -0700 (PDT) Original-Received: by 10.204.132.87 with HTTP; Mon, 25 Jul 2011 12:32:47 -0700 (PDT) In-Reply-To: <4E2DBEBC.6050809@easy-emacs.de> X-Google-Sender-Auth: b7bN0t5nTmnF2ePyRLl__EQZk4Y X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.52 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81766 Archived-At: On Mon, Jul 25, 2011 at 9:06 PM, Andreas R=F6hler wrote: > M-! echo $(($(date +%s)-5270400))..$(date +%s) > > makes some nice output... I am not sure what you mean. The notmuch command would be: notmuch search "$(($(date +%s)-5270400))..$(date +%s)" My issue was this command works on the terminal, not in the emacs frontend to notmuch. The problem is, as Michal mentioned, the emacs interface does not use the shell. --=20 Suvayu Open source is the future. It sets us free.