From: Johannes Kulick <johannes@mailless.org>
To: notmuch@notmuchmail.org
Subject: Re: Feature proposal: OUTPUT_AUTHOR format
Date: Tue, 27 Aug 2013 13:50:04 +0200 [thread overview]
Message-ID: <20130827115004.11629.64740@quirm.robotics.tu-berlin.de> (raw)
In-Reply-To: <87li3o9dwr.fsf@zancas.localnet>
[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]
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=authors --format=(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=authors 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=authors 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
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
-----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-----
next prev parent reply other threads:[~2013-08-27 11:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20130825101308.27461.57489@quirm.robotics.tu-berlin.de>
2013-08-26 22:22 ` Feature proposal: OUTPUT_AUTHOR format Johannes Kulick
2013-08-27 0:27 ` David Bremner
2013-08-27 5:21 ` Jani Nikula
2013-08-27 11:50 ` Johannes Kulick [this message]
2013-08-27 13:47 ` Austin Clements
2013-08-27 14:06 ` Johannes Kulick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130827115004.11629.64740@quirm.robotics.tu-berlin.de \
--to=johannes@mailless.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).