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