Re: Bug#628018: [PATCH] notmuch-mutt utility for notmuch/contrib/
authorStefano Zacchiroli <zack@upsilon.cc>
Mon, 26 Mar 2012 21:15:02 +0000 (23:15 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:46 +0000 (09:45 -0800)
d1/37aacd84724f88cbdfc957ce3d604b34301f39 [new file with mode: 0644]

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