Re: [RFC2 Patch 5/5] lib: iterator API for message properties
authorDavid Bremner <david@tethera.net>
Wed, 1 Jun 2016 10:04:31 +0000 (07:04 +2100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:55 +0000 (16:21 -0700)
8a/4216e041ed6173a576346d5ef910cedd4c13e2 [new file with mode: 0644]

diff --git a/8a/4216e041ed6173a576346d5ef910cedd4c13e2 b/8a/4216e041ed6173a576346d5ef910cedd4c13e2
new file mode 100644 (file)
index 0000000..ec81964
--- /dev/null
@@ -0,0 +1,102 @@
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 27F916DE0231\r
+ for <notmuch@notmuchmail.org>; Wed,  1 Jun 2016 03:04:55 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.012\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.012 tagged_above=-999 required=5\r
+ tests=[AWL=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 5FKd0qDIVGWf for <notmuch@notmuchmail.org>;\r
+ Wed,  1 Jun 2016 03:04:46 -0700 (PDT)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id BE2F66DE00D3\r
+ for <notmuch@notmuchmail.org>; Wed,  1 Jun 2016 03:04:46 -0700 (PDT)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1b830q-0000ap-Pk; Wed, 01 Jun 2016 06:04:32 -0400\r
+Received: (nullmailer pid 17286 invoked by uid 1000);\r
+ Wed, 01 Jun 2016 10:04:41 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, notmuch@notmuchmail.org\r
+Subject: Re: [RFC2 Patch 5/5] lib: iterator API for message properties\r
+In-Reply-To: <87pos1u14p.fsf@alice.fifthhorseman.net>\r
+References: <1463927339-5441-1-git-send-email-david@tethera.net>\r
+ <1464608999-14774-1-git-send-email-david@tethera.net>\r
+ <1464608999-14774-6-git-send-email-david@tethera.net>\r
+ <8760tthfuy.fsf@zancas.localnet> <87pos1u14p.fsf@alice.fifthhorseman.net>\r
+User-Agent: Notmuch/0.22+28~gb9bf3f4 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Wed, 01 Jun 2016 07:04:31 -0300\r
+Message-ID: <8737oxgr80.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 01 Jun 2016 10:04:55 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:\r
+\r
+> The other concern is our conception of how properties are unset/removed,\r
+> right?\r
+>\r
+> With tags, it's possible to include -blah to remove the tag "blah".  how\r
+> do we remove/clear/overwrite these tags?  what about using +key=val or\r
+> -key=val to set/unset certain key/value combinations, and a value-less\r
+> key= to remove all values matching a given key?\r
+>\r
+\r
+msg-id -blah is only possible if using notmuch-tag; notmuch restore takes a\r
+strict subset of the input format for "notmuch tag --batch".\r
+\r
+I'm not sure if generic property manipulation from the CLI is mandatory,\r
+or at least I'm not sure it's a blocker for including the feature.\r
+If/when we do decide to support it, I'm not sure if should be wedged\r
+into notmuch-tag, or rather added to a new "notmuch-property"\r
+subcommand.  Such a subcommand could take additional options and/or have\r
+a richer syntax than used in the dump file.\r
+\r
+I can imagine initial support with just an API, and some python\r
+bindings. This could already be used by some reference manipulation UI.\r
+The dump-restore support is more part of the backend in my mind, because\r
+we don't want people to think they've backup their data when they\r
+haven't.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1\r
+\r
+iQGcBAEBCAAGBQJXTrMvAAoJEPIClx2kp54sjNEMAIlkT12TddAfEtgmFP1BZByg\r
+Z9zJbpLHIzRTuUW8jcI0tsoV5H1DfVTl6tZJlV8R4wXobj9ammc1gxLWiFuvNqH6\r
+SsBEQ1Fg5yL22JHcsg9THBd5+N4s5pDl+Si+Be6e99xSsa05DB8MyQB0kZA2MAJH\r
+UuwYZRurTMsLadZxb4jbn++f/ogSwHLvpWJNOeeQhQycqG/caQBPSIIS/CcCH5Pj\r
+cdCwXL7bNOS77UIqtBTxkz/9iFg9hnbBRR0u45CrMvnVzOJm/NKOIAPZgqg58Soz\r
+jowpyjlerX9YWwP0EpMgnWkO9/jw7BJbV5ZQAoez1WxlTUxVe+2q391BAh+In8CT\r
+dL2F9ZBBru+MwW/bP06yRl6fMu08HqIzw2T2qgO42c8u6xpXCSlreOge17q9D2ZP\r
+XI3+E0h1EcwYd4bh1cEIQlR4qOc52b99FJnYaUAyrQ7CMY/vr4k4AQlL9Q1K/CBk\r
+PjL416LdDsFamNT6e7N6i1Kmula0np7zLWRtARieLA==\r
+=PJ6E\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r