Re: [notmuch] [RFC/PATCH v2] Add search-files command
authorAli Polatel <alip@exherbo.org>
Thu, 14 Jan 2010 06:36:28 +0000 (08:36 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:58 +0000 (09:35 -0800)
3b/fc4f4a571073960bf9d79a2fa34115b861ec54 [new file with mode: 0644]

diff --git a/3b/fc4f4a571073960bf9d79a2fa34115b861ec54 b/3b/fc4f4a571073960bf9d79a2fa34115b861ec54
new file mode 100644 (file)
index 0000000..09b6f17
--- /dev/null
@@ -0,0 +1,126 @@
+Return-Path: <polatel@gmail.com>\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 F185A431FBC\r
+       for <notmuch@notmuchmail.org>; Wed, 13 Jan 2010 22:36:36 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.308\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.308 tagged_above=-999 required=5\r
+       tests=[AWL=-0.309, BAYES_50=0.001] autolearn=ham\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 tsYxvRFhZ3d0 for <notmuch@notmuchmail.org>;\r
+       Wed, 13 Jan 2010 22:36:36 -0800 (PST)\r
+Received: from ey-out-1920.google.com (ey-out-1920.google.com [74.125.78.146])\r
+       by olra.theworths.org (Postfix) with ESMTP id D7146431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 13 Jan 2010 22:36:35 -0800 (PST)\r
+Received: by ey-out-1920.google.com with SMTP id 3so95006eyh.6\r
+       for <notmuch@notmuchmail.org>; Wed, 13 Jan 2010 22:36:35 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:received:received:sender:date:from:to:cc\r
+       :subject:message-id:references:mime-version:content-type\r
+       :content-disposition:in-reply-to:user-agent;\r
+       bh=XGptR736HaWHzFts8dWlEme7T49LEeFsJWsjDILXr6E=;\r
+       b=O5fRES6+5tfj+vysU6AIexIhvJts2+5sr8NPLvMwXh2fWO6SQtbGvWY94Czm8IjgE/\r
+       vlLMWp9GI2zpKuvraY06jX7S6gayByy6CqvydDwEuFENuQLIpQg8kRoJr0sVVaXcHnse\r
+       AbCE16PtZQcEA5g1qaexz5PvKleBl+hjKeRQc=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=sender:date:from:to:cc:subject:message-id:references:mime-version\r
+       :content-type:content-disposition:in-reply-to:user-agent;\r
+       b=Dr6On1Jh76I5ViKY3Tu9KulPfMZVgzL/7Wm2z9Nkw/XRbjC1R+zIMwRbmpdJimoHCj\r
+       gTrFbq7gZhj4gDdDpwYQamCPZM0yoHZZKXQ3dwEPSwF3qFgKjzjroLboO4urDqDdVtP9\r
+       piLv6UUcr6+Wg6jQ1h6/9KJJEjreIy131nXXU=\r
+Received: by 10.213.109.136 with SMTP id j8mr336090ebp.75.1263450994989;\r
+       Wed, 13 Jan 2010 22:36:34 -0800 (PST)\r
+Received: from harikalardiyari ([78.179.59.77])\r
+       by mx.google.com with ESMTPS id 16sm288396ewy.6.2010.01.13.22.36.29\r
+       (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+       Wed, 13 Jan 2010 22:36:32 -0800 (PST)\r
+Sender: Ali Polatel <polatel@gmail.com>\r
+Date: Thu, 14 Jan 2010 08:36:28 +0200\r
+From: Ali Polatel <alip@exherbo.org>\r
+To: Jameson Rollins <jrollins@finestructure.net>\r
+Message-ID: <20100114063628.GA9973@harikalardiyari>\r
+References:\r
+ <cd1ed7d2c2ea5a9f7da351b5916253708b65feb5.1263377759.git.alip@exherbo.org>\r
+       <a05f7197e759dba8e5f61951eaeeb83823d38a0d.1263388420.git.alip@exherbo.org>\r
+       <20100113225221.GY8342@finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw"\r
+Content-Disposition: inline\r
+In-Reply-To: <20100113225221.GY8342@finestructure.net>\r
+User-Agent: Mutt/1.5.20 (2009-06-14)\r
+Cc: notmuch@notmuchmail.org\r
+Subject: Re: [notmuch] [RFC/PATCH v2] Add search-files command\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: Thu, 14 Jan 2010 06:36:37 -0000\r
+\r
+\r
+--wac7ysb48OaltWcw\r
+Content-Type: text/plain; charset=iso-8859-9\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Jameson Rollins yazm=FD=FE:\r
+> On Wed, Jan 13, 2010 at 03:17:41PM +0200, Ali Polatel wrote:\r
+> > This command can be used to integrate notmuch with other MUAs as a\r
+> > searching client. The idea is simple, a simple script could get\r
+> > search-terms as argument and create a "virtual" maildir which has\r
+> > symbolic links to files output by search-files command. This is similar\r
+> > to nmzmail.\r
+>=20\r
+> Hi, Ali.  I was also recently asking about a way to output just the\r
+> file names of message resulting from searches.  This is an important\r
+> feature for handling deleting and moving in mail clients as well.  I\r
+> believe that Carl said this would be easier once he applied the JSON\r
+> output patches that are in the queue right now.  Hopefully we'll see\r
+> those soon.\r
+>=20\r
+> Personally I think the right way to implement this from a UI\r
+> perspective would be to just have an output filter for the 'search'\r
+> subcommand, something like:\r
+>=20\r
+> notmuch search --output=3Dfilename <search-term>...\r
+>=20\r
+> If output formatting was well enough supported one could even imagine\r
+> getting rid of the 'show' subcommand in favor of just the 'search'\r
+> subcommand with output formatting options.\r
+\r
+That's even better! I think I'll be using my patch until these patches\r
+are merged :)\r
+\r
+>=20\r
+> jamie.\r
+\r
+--=20\r
+Regards,\r
+Ali Polatel\r
+\r
+--wac7ysb48OaltWcw\r
+Content-Type: application/pgp-signature\r
+Content-Disposition: inline\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.14 (GNU/Linux)\r
+\r
+iEYEABECAAYFAktOu2wACgkQQU4yORhF8iDoegCfeLbv3Neq8RtErf0GhpoySGhO\r
+O9sAnjWJwaw6Awve8+GVVZRPtpK6UFYm\r
+=mEpZ\r
+-----END PGP SIGNATURE-----\r
+\r
+--wac7ysb48OaltWcw--\r