Re: Feature proposal: OUTPUT_AUTHOR format
authorJohannes Kulick <johannes@mailless.org>
Tue, 27 Aug 2013 14:06:54 +0000 (16:06 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:42 +0000 (09:56 -0800)
b2/1cc0becb93b914c87a89ed84d819e3af8d401f [new file with mode: 0644]

diff --git a/b2/1cc0becb93b914c87a89ed84d819e3af8d401f b/b2/1cc0becb93b914c87a89ed84d819e3af8d401f
new file mode 100644 (file)
index 0000000..dbedec7
--- /dev/null
@@ -0,0 +1,114 @@
+Return-Path: <johannes@mailless.org>\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 B4E3B431FD4\r
+       for <notmuch@notmuchmail.org>; Tue, 27 Aug 2013 07:07:14 -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 agbf35gIcIR9 for <notmuch@notmuchmail.org>;\r
+       Tue, 27 Aug 2013 07:07:07 -0700 (PDT)\r
+Received: from mailless.org (mailless.org [46.163.73.148])\r
+       by olra.theworths.org (Postfix) with SMTP id D20CD431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 27 Aug 2013 07:07:06 -0700 (PDT)\r
+Received: (qmail 7885 invoked from network); 27 Aug 2013 14:07:05 -0000\r
+Received: from unknown (HELO localhost) (johannes@192.124.26.172)\r
+       by mailless.org with ESMTPA; 27 Aug 2013 14:07:05 -0000\r
+Content-Type: multipart/signed; protocol="application/pgp-signature";\r
+       micalg="pgp-sha1"; boundary="===============5566596592336054078=="\r
+MIME-Version: 1.0\r
+Content-Disposition: inline\r
+To: Austin Clements <amdragon@MIT.EDU>, \r
+From: Johannes Kulick <johannes@mailless.org>\r
+In-Reply-To: <20130827134723.GQ13257@mit.edu>\r
+References: <20130825101308.27461.57489@quirm.robotics.tu-berlin.de>\r
+       <20130826222226.1093.84929@quirm.robotics.tu-berlin.de>\r
+       <87li3o9dwr.fsf@zancas.localnet>\r
+       <20130827115004.11629.64740@quirm.robotics.tu-berlin.de>\r
+       <20130827134723.GQ13257@mit.edu>\r
+Message-ID: <20130827140654.31336.307@quirm.robotics.tu-berlin.de>\r
+User-Agent: alot/0.3.5\r
+Subject: Re: Feature proposal: OUTPUT_AUTHOR format\r
+Date: Tue, 27 Aug 2013 16:06:54 +0200\r
+Cc: notmuch@notmuchmail.org\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: Tue, 27 Aug 2013 14:07:14 -0000\r
+\r
+--===============5566596592336054078==\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+> What's the advantage to adding this to the library?  Why not just\r
+> notmuch_query_search_messages, iterate over the messages and use\r
+> notmuch_message_get_header(msg, "from") to accumulate the author\r
+> information, and then output that?  Unless I'm overlooking something\r
+> (which is possible), there are no algorithmic advantages to doing this\r
+> in the library.\r
+\r
+\r
+The view I have in mind would look something like:\r
+\r
+John Doe (1234 msg)\r
+|- first thread subject\r
+|- second thread subject\r
+|- third thread subject\r
+Jane Doe (234 msg)\r
+|- first thread subject\r
+|- second thread subject\r
+|- third thread subject\r
+...\r
+\r
+\r
+The problem is, that if I want to have a list of all authors in the databas=\r
+e I'd\r
+have to iterate over all messages (naively implemented, whenever I render t=\r
+he\r
+view, or I somehow have to persistently store this list and update it on a\r
+regular basis), whereas the notmuch database already has this information b=\r
+ut\r
+doesn't reveal if I'm not overlooking something. To do a\r
+notmuch_query_search_messages I'd have to know what to search for, whereas a\r
+notmuch_database_get_all_authors would give me exactly what I'm looking for=\r
+ in\r
+short time since it is already indexed by xapian.\r
+\r
+Best,\r
+Johannes\r
+\r
+--===============5566596592336054078==\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: 7bit\r
+Content-Description: signature\r
+Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.20 (GNU/Linux)\r
+\r
+iQEcBAABAgAGBQJSHLJ+AAoJEBiRJNhhEUhOYrQH/2tmIopguoNlnepIgcI52JRY\r
+Yuis52XGbverFYBoZEgeI36DSQghlNeBYakYcWYmHf9a6ZkxVtWR6arrXp3A1pCb\r
+eSm4ZqDowA1qTaAh9mMlIGWwRkSAS5meJulf9Yhmnv353AJsZvrJz8283bUrULjM\r
+HhcJ/Uh7KF1gN1arfOxwsTtQNXjrPpUd1E0voNYERCGhX5cqLevrkJdrzUEv6+PF\r
+lSl2b3701J8q86Pphm0Trr2AWEdMyZxMXJpOeF2+9l8vrTB1KAEhsyPO+7V2YfUx\r
+sEoncvEGAvdRlK5KmlKp/Ql5HUwMUv+96nl1I6TMg2BWyHhxjgZHPmxyqI8ofkk=\r
+=tIcK\r
+-----END PGP SIGNATURE-----\r
+\r
+--===============5566596592336054078==--\r