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