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 91A12431FDC for ; Sat, 24 Aug 2013 05:20:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 U0a5pOo+2UKQ for ; Sat, 24 Aug 2013 05:20:10 -0700 (PDT) Received: from mail-ea0-f179.google.com (mail-ea0-f179.google.com [209.85.215.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 71A28431FBD for ; Sat, 24 Aug 2013 05:20:10 -0700 (PDT) Received: by mail-ea0-f179.google.com with SMTP id b10so732272eae.24 for ; Sat, 24 Aug 2013 05:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=zCtZ5cAVOonP+mJyzQYYxerWFuRHUIweX3x+T3MDiJE=; b=g1LdkqSK5oI+MOdPNIS8BVBWgEJuKziJTgc4W2b87cHnuMUdgicV+8P8yY/ruKAcau PVVP6fDlhnkTncImT/3uEf1Fr6T2mJe+WSQ9Nqrdw8S7r/EFngDl8Up62XLlJX5IH1Zf wmBwyrA8SE/fpFas7VpkynN72WkXI2qPBFYd0GrvRSVJw23c+QWa3NDxolg1ikqP3/+0 FlXgpeHjCptRlljdqfC+7J3AKqNhFCohIg3ogkrWhCFIXxhNYNn5ASQfMRoH1sqHo6Oj Psc14dtXChngRzCF5+QJdFFcdaL6hNbp28r155A0F7XlNuflHnaoCm5TWjS7FfMR9l2q 09nw== X-Received: by 10.15.33.132 with SMTP id c4mr7565741eev.2.1377346809146; Sat, 24 Aug 2013 05:20:09 -0700 (PDT) Received: from kuru.dyndns-at-home.com (sd44012d5.adsl.online.nl. [212.64.18.213]) by mx.google.com with ESMTPSA id n48sm6484758eeg.17.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 24 Aug 2013 05:20:08 -0700 (PDT) Sender: suvayu ali Date: Sat, 24 Aug 2013 14:20:04 +0200 From: Suvayu Ali To: notmuch@notmuchmail.org Subject: Re: $(date ...)..$(date ...) request from Emacs Message-ID: <20130824122004.GD5880@kuru.dyndns-at-home.com> Mail-Followup-To: notmuch@notmuchmail.org References: <87d2p3s70o.fsf@bzg.ath.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) 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 12:20:30 -0000 Hello Bastien! On Sat, Aug 24, 2013 at 01:49:48PM +0300, Tomi Ollila wrote: > On Sat, Aug 24 2013, Bastien wrote: > > > 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) > > there is no shell expansion done to the string... > > ... however > > M-x notmuch-search RET date:2009-10-01..2009-10-02 > > should do it (provided you have at least notmuch 0.15 (or so)) To add to that, notmuch now also understands relative dates, and many other date expressions. Check out the 'Date and time search' section in `man notmuch-search-terms'. Cheers, -- Suvayu Open source is the future. It sets us free.