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: Using date ranges in emacs notmuch search Date: Sat, 23 Jul 2011 20:29:46 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1311445817 7944 80.91.229.12 (23 Jul 2011 18:30:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2011 18:30:17 +0000 (UTC) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 23 20:30:13 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 1Qkgxp-00075S-7T for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2011 20:30:13 +0200 Original-Received: from localhost ([::1]:46634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkgxo-0008K3-Q1 for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jul 2011 14:30:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkgxk-0008Ip-Ju for help-gnu-emacs@gnu.org; Sat, 23 Jul 2011 14:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qkgxj-0005IN-Jk for help-gnu-emacs@gnu.org; Sat, 23 Jul 2011 14:30:08 -0400 Original-Received: from mail-fx0-f52.google.com ([209.85.161.52]:39990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkgxj-0005Hq-Aw for help-gnu-emacs@gnu.org; Sat, 23 Jul 2011 14:30:07 -0400 Original-Received: by fxd18 with SMTP id 18so5662674fxd.39 for ; Sat, 23 Jul 2011 11:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=yBvBC0MC+CaZoj3r/+EFjsH8WeFqZ4SyZFKE0JQjgAg=; b=pX9aQTvI1oO1O3A+vhCBHJFdilHeazQQAFNUMGa8kbVVqdzJ4kRzBL90fn1fJh/e/R 5BWI/m2j5ngUYSRRsFvwN57OBONAHZKuQ320SiJQh8SSG3OMNxO/Px8B0wTxOG/K5ySU tJevZ9qIBXpG7G8EfK3MT1clh1TOkcJ5gnptY= Original-Received: by 10.205.80.141 with SMTP id zu13mr818204bkb.216.1311445806202; Sat, 23 Jul 2011 11:30:06 -0700 (PDT) Original-Received: by 10.204.132.87 with HTTP; Sat, 23 Jul 2011 11:29:46 -0700 (PDT) X-Google-Sender-Auth: CB4Sb5InaraQ9GgHynwwqgTit5A 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:81753 Archived-At: 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. -- Suvayu Open source is the future. It sets us free.