From: Johannes Kulick Date: Tue, 27 Aug 2013 11:50:04 +0000 (+0200) Subject: Re: Feature proposal: OUTPUT_AUTHOR format X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=28c70fede91a5f946bbeeea6ee563ebdf7398cb9;p=notmuch-archives.git Re: Feature proposal: OUTPUT_AUTHOR format --- diff --git a/73/062529f9fdc0d4323e5888163fcd70b30f29b5 b/73/062529f9fdc0d4323e5888163fcd70b30f29b5 new file mode 100644 index 000000000..435b40584 --- /dev/null +++ b/73/062529f9fdc0d4323e5888163fcd70b30f29b5 @@ -0,0 +1,117 @@ +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 EE0C5431FD4 + for ; Tue, 27 Aug 2013 04:50:45 -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 DWZJu+XEye3H for ; + Tue, 27 Aug 2013 04:50:36 -0700 (PDT) +Received: from mailless.org (mailless.org [46.163.73.148]) + by olra.theworths.org (Postfix) with SMTP id 902A4431FAF + for ; Tue, 27 Aug 2013 04:50:35 -0700 (PDT) +Received: (qmail 4082 invoked from network); 27 Aug 2013 11:50:19 -0000 +Received: from unknown (HELO localhost) (johannes@192.124.26.172) + by mailless.org with ESMTPA; 27 Aug 2013 11:50:19 -0000 +Content-Type: multipart/signed; protocol="application/pgp-signature"; + micalg="pgp-sha1"; boundary="===============3005240360994083712==" +MIME-Version: 1.0 +Content-Disposition: inline +From: Johannes Kulick +User-Agent: alot/0.3.5 +To: notmuch@notmuchmail.org +References: <20130825101308.27461.57489@quirm.robotics.tu-berlin.de> + <20130826222226.1093.84929@quirm.robotics.tu-berlin.de> + <87li3o9dwr.fsf@zancas.localnet> +In-Reply-To: <87li3o9dwr.fsf@zancas.localnet> +Message-ID: <20130827115004.11629.64740@quirm.robotics.tu-berlin.de> +Subject: Re: Feature proposal: OUTPUT_AUTHOR format +Date: Tue, 27 Aug 2013 13:50:04 +0200 +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 11:50:46 -0000 + +--===============3005240360994083712== +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable + +Hi David, + = + +Quoting David Bremner (2013-08-27 02:27:00) +> I'm not sure I understand your goal completely here, but the obvious +> thing UI wise would be +> +> notmuch search --output=3Dauthors --format=3D(json|text|sexp) $search_= +terms +> +> Perhaps you're already aware of this, but alot doesn't use the CLI, so +> that wouldn't be directly helpful to having a new view in alot. + +Do you mean, that this output=3Dauthors option is already available? Then I= +'m not +aware. If it is not available it's exactly what I meant. So it would look +something like: + +$ notmuch search --output=3Dauthors from:Johannes +Johannes Kulick (1234 msgs) +Johannes Doe (123 msgs) +Johannes Mueller (12 msgs) +... + +I'd sketch the way to implement it like this: + +- add notmuch_authors_t and notmuch_author_t structs +- add a notmuch_database_get_all_authors (notmuch_database_t *db) +- add the functions around that to actually get an option for the ui +- add bindings for the other languages + +(- implement the view in the clients) + +Cheers, +Johannes + +-- +uni stuttgart machine learning and robotics lab +http://ipvs.informatik.uni-stuttgart.de/mlr/johannes + +Question: What is the weird attachment on all my emails? +Answer: http://en.wikipedia.org/wiki/Digital_signature + +--===============3005240360994083712== +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) + +iQEcBAABAgAGBQJSHJJsAAoJEBiRJNhhEUhOuLUH/RmPnpOF0F/K0xhzJjyMNTgk +RvFUwvVUNiDb8gmdAHBw/RoFKdZg5a8Tcvl6Twx2k0k1yx8jlEB5wexJwR9V4ZwP +RPle7rkzEWMOkdvHDU2BRVB2tdvDF1LNowTTndVHdPVIYrJOtacGLbAqYbQp5yNm +GHo6LWzSovQzSKSDEOYPOylq08Fr9dpZ4sv5u0dC9dZnavtm+PR/9xCacEXAIeSx +fHulxdXPgBtefDo260dFpXDsOVjTFtBNPUltJIiPSlx2/PhhpaSMJ+hGP7yz9F5Z +ACmKTJ45QMvY/ZpGEwbUjBN1oCZ3MkQw7HUWeAlN2Bbu/Aqk2JcfBBTw1KNmpR0= +=b+iX +-----END PGP SIGNATURE----- + +--===============3005240360994083712==--