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 CD31E431FB6 for ; Mon, 26 Mar 2012 14:15:05 -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=[none] 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 NNZZKK8grWwf for ; Mon, 26 Mar 2012 14:15:05 -0700 (PDT) Received: from upsilon.hackadomia.org (upsilon.hackadomia.org [91.121.245.170]) by olra.theworths.org (Postfix) with ESMTP id 01C18431FAF for ; Mon, 26 Mar 2012 14:15:04 -0700 (PDT) Received: from usha.takhisis.invalid (did75-22-78-236-196-47.fbx.proxad.net [78.236.196.47]) by upsilon.hackadomia.org (Postfix) with ESMTPSA id E17E8B6092 for ; Mon, 26 Mar 2012 23:15:03 +0200 (CEST) Received: by usha.takhisis.invalid (Postfix, from userid 1000) id ED5A6681C47; Mon, 26 Mar 2012 23:15:02 +0200 (CEST) Date: Mon, 26 Mar 2012 23:15:02 +0200 From: Stefano Zacchiroli To: notmuch@notmuchmail.org Subject: Re: Bug#628018: [PATCH] notmuch-mutt utility for notmuch/contrib/ Message-ID: <20120326211502.GA5582@upsilon.cc> Mail-Followup-To: notmuch@notmuchmail.org, zack@upsilon.cc References: <87ehsfr6lb.fsf@zancas.localnet> <87d37zl7qe.fsf@servo.finestructure.net> <20120326152902.GA11610@upsilon.cc> <20120326190332.GE6677@aguila.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20120326190332.GE6677@aguila.ca> User-Agent: Mutt/1.5.21 (2010-09-15) 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: Mon, 26 Mar 2012 21:15:06 -0000 On Mon, Mar 26, 2012 at 01:03:32PM -0600, Scott Barker wrote: > FYI, I use the following in my .muttrc, which includes an expansion of $HOME > in , and it works fine: > > macro index / "mutt-notmuch --prompt search$HOME/.cache/mutt_results" "notmuch search" Right, but I need support for variable expansions with defaults, because there's no guarantee that $XDG_CACHE_HOME is defined in user environment. I.e., I need the equivalent of shell ${name:-default} idiom. AFAICT that is not supported by Mutt natively. Hence the need of resorting to shell escaping. Hope this explains, -- Stefano Zacchiroli zack@{upsilon.cc,pps.jussieu.fr,debian.org} . o . Maître de conférences ...... http://upsilon.cc/zack ...... . . o Debian Project Leader ....... @zack on identi.ca ....... o o o « the first rule of tautology club is the first rule of tautology club »