From: Michael J Gruber <git@grubix.eu>
To: Alexander Adolf <alexander.adolf@condition-alpha.com>,
David Bremner <david@tethera.net>,
notmuch@notmuchmail.org
Subject: Re: Two perceived query language imbalances
Date: Tue, 27 Apr 2021 14:42:09 +0200 [thread overview]
Message-ID: <161952732917.12126.15004755786676144921.git@grubix.eu> (raw)
In-Reply-To: <ea267a29fd8fc311c5dff6e5900e6b7e@condition-alpha.com>
Alexander Adolf venit, vidit, dixit 2021-04-27 13:34:03:
> Hello David,
[...]
> >>> id:<message-id> or mid:<message-id> or mid:/<regex>/
> >>> For id: and mid:, message ID values are the literal contents of
> >>> the Message-ID: header of email messages, but without the '<',
> >>> '>' delimiters.
> >>
> >> Similar thing here: "id:" and "mid:" can be used interchangeably, except
> >> for regex search. Adding "id:/regex/" would seem most useful to me.
> >>
> >
> > This was intentional, to avoid breaking existing scripts / internals
> > that rely on treating id: as the primary key for the database. At least
> > that was the concensus when we added it. It seems like one answer would
> > be for you to just use mid: all the time, since it already has the
> > behaviour you like.
> > [...]
>
> I see, thanks for the insight. In that light, what would be your take on
> featuring "id" less prominently in the documentation, so as to foster
> the sole use of "mid" for all new script developments?
>
> You could maybe even go as far as marking "id" as "deprecated and kept
> for backwards compatibility with legacy scripts only"; but without
> actually ever removing it, of course, since as you say it's needed for
> internal purposes.
In that case, I suggest that `notmuch search --output=messages` outputs
message ids in the form `mid:...`, as well. Users can discover
`--output=messages` from command completion and could learn the "right"
search prefix from the command output.
Regards
Michael
next prev parent reply other threads:[~2021-04-27 12:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-23 11:29 Two perceived query language imbalances Alexander Adolf
2021-04-23 12:12 ` David Bremner
2021-04-27 11:34 ` Alexander Adolf
2021-04-27 12:42 ` Michael J Gruber [this message]
2021-04-28 9:53 ` David Bremner
2021-04-28 9:54 ` David Bremner
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=161952732917.12126.15004755786676144921.git@grubix.eu \
--to=git@grubix.eu \
--cc=alexander.adolf@condition-alpha.com \
--cc=david@tethera.net \
--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).