--- /dev/null
+Return-Path: <gmn-notmuch@m.gmane.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 6B015431FD9\r
+ for <notmuch@notmuchmail.org>; Sat, 24 Aug 2013 03:45:11 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id eEgUOkeJD-Mi for <notmuch@notmuchmail.org>;\r
+ Sat, 24 Aug 2013 03:45:06 -0700 (PDT)\r
+Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])\r
+ (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id DBD62431FBD\r
+ for <notmuch@notmuchmail.org>; Sat, 24 Aug 2013 03:45:05 -0700 (PDT)\r
+Received: from list by plane.gmane.org with local (Exim 4.69)\r
+ (envelope-from <gmn-notmuch@m.gmane.org>) id 1VDBL5-00025o-UE\r
+ for notmuch@notmuchmail.org; Sat, 24 Aug 2013 12:45:03 +0200\r
+Received: from mar75-2-81-56-68-112.fbx.proxad.net ([81.56.68.112])\r
+ by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
+ id 1AlnuQ-0007hv-00\r
+ for <notmuch@notmuchmail.org>; Sat, 24 Aug 2013 12:45:03 +0200\r
+Received: from bzg by mar75-2-81-56-68-112.fbx.proxad.net with local (Gmexim\r
+ 0.1 (Debian)) id 1AlnuQ-0007hv-00\r
+ for <notmuch@notmuchmail.org>; Sat, 24 Aug 2013 12:45:03 +0200\r
+X-Injected-Via-Gmane: http://gmane.org/\r
+To: notmuch@notmuchmail.org\r
+From: Bastien <bzg@altern.org>\r
+Subject: $(date ...)..$(date ...) request from Emacs\r
+Date: Sat, 24 Aug 2013 12:44:07 +0200\r
+Lines: 24\r
+Message-ID: <87d2p3s70o.fsf@bzg.ath.cx>\r
+Mime-Version: 1.0\r
+Content-Type: text/plain\r
+X-Complaints-To: usenet@ger.gmane.org\r
+X-Gmane-NNTP-Posting-Host: mar75-2-81-56-68-112.fbx.proxad.net\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)\r
+Cancel-Lock: sha1:KnA3DT96TqfQRfUQmNm51txT5UQ=\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 24 Aug 2013 10:45:11 -0000\r
+\r
+Hi again,\r
+\r
+notmuch search $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02)\r
+\r
+works wonders from the command line, but not from within Emacs:\r
+\r
+M-x notmuch-search RET $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02)\r
+\r
+[Sat Aug 24 12:39:15 2013]\r
+A Xapian exception occurred performing query: Unknown range operation\r
+Query string was: $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02)\r
+command: notmuch search --format\=sexp --format-version\=1 --sort\=newest-first \$\(date\ \+\%s\ -d\ 2009-10-01\)..\$\(date\ \+\%s\ -d\ 2009-10-02\)\r
+exit status: 1\r
+stderr:\r
+A Xapian exception occurred performing query: Unknown range operation\r
+Query string was: $(date +%s -d 2009-10-01)..$(date +%s -d 2009-10-02)\r
+\r
+I see --format=sexp -- does that mean we need to protect those\r
+kinds of requests somehow?\r
+\r
+Thanks for your help!\r
+\r
+-- \r
+ Bastien\r
+\r