user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: Kyle Meyer <kyle@kyleam.com>
Cc: meta@public-inbox.org
Subject: Re: is "lei mark" a good name?
Date: Sun, 28 Mar 2021 02:21:59 +0000	[thread overview]
Message-ID: <20210328022159.GA17860@dcvr> (raw)
In-Reply-To: <20210326094800.GA22883@dcvr>

Eric Wong <e@80x24.org> wrote:
> Kyle Meyer <kyle@kyleam.com> wrote:
> > Eric Wong writes:
> > 
> > > It can set/unset volatile metadata for any number of messages.
> > >
> > > "Volatile metadata" being "labels" (aka "mailboxes" in
> > > JMAP-speak) and "keywords" (seen|flagged|answered|...),
> > > (aka "flags" in IMAP/Maildir-speak).
> > >
> > > 	"lei mark +kw:seen"		# makes sense
> > 
> > > 	"lei mark +L:some-folder-name"	# might sound odd...
> > >
> > >
> > > AFAIK, notmuch uses "notmuch tag" which combines both labels
> > > and keywords into one thing: "tags".  But I'm also not a
> > > notmuch user...
> > 
> > (I am, though I still might be wrong.)  Notmuch allows arbitrary tags to
> > be associated with message IDs.  It has some automatic tags like
> > "attachment", "encrypted", and "signed" that it adds when indexing.
> 
> Hmm..., JMAP has a "hasAttachment" property to search on.
> 
> > By default, it also syncs some maildir flags to its tags (e.g., "F ->
> > flagged", "R -> replied", "No S -> unread").
> > 
> > As far as I understand, tags are never connected up to the maildir
> > folder/location, though Notmuch does support a separate "folder:..."
> > search term.
> 
> I've been thinking about storing source location data, too.
> Having the source of an email in lei/store would make it easier
> and faster to export keywords back to IMAP/Maildir.
> 
> > So, I guess in JMAP terms, Notmuch tags would be "mailboxes" (a subset
> > of which are synced with maildir flags).
> 
> The arbitrary nm tags (and "attachment|signed|encrypted) would be
> "mailboxes", yes.  But the Maildir flags are JMAP keywords:
> 
> 	# LeiToMail.pm:
> 	my %kw2char = ( # Maildir characters
> 		draft => 'D',
> 		flagged => 'F',
> 		answered => 'R',
> 		seen => 'S'
> 	);
> 
> > > Would "lei tag" be better?
> > 
> > Neither one really jumps out to me as better.  "mark" sounds fine to me,
> > and I don't find "tag" any more or less odd for the +L case above.
> 
> OK.  I'm still on the fence...
> 
> On one hand, "tag" is probably a more familiar term to users of
> existing software.  Not just notmuch, but also other software
> for music metadata, software (debtags), etc...
> 
> On the other hand, lei will support "lei show" to wrap "git show"
> with SolverGit support.  Thus I'm worried "lei tag" might
> be misconstrued as a wrapper for "git tag"...
> 
> But now that I think about it more; "lei show" probably won't
> treat git tree/tag/commit objects any differently than "git show".
> Perhaps "lei show" can be named "lei blob", instead.

OK, so I've gone ahead with "lei blob" so far...

"git show" has a plethora of options affecting diff generation
which would be redundant to have in lei.  "lei blob" can focus
on reconstructing and showing blobs.  The name also corresponds
to the JSON output field of "lei q".

I like "lei tag", more than "lei mark", since I think "tag" is
more commonly used for attaching metadata labels to stuff.

"lei tag" might still give people the idea that it's for
operating on git tags (because "lei blob" operates on git blobs);
but I don't think it's a huge risk since our code base does
nothing with git tags

      reply	other threads:[~2021-03-28  2:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-25  5:22 is "lei mark" a good name? Eric Wong
2021-03-26  1:54 ` Kyle Meyer
2021-03-26  9:48   ` Eric Wong
2021-03-28  2:21     ` Eric Wong [this message]

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://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210328022159.GA17860@dcvr \
    --to=e@80x24.org \
    --cc=kyle@kyleam.com \
    --cc=meta@public-inbox.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://80x24.org/public-inbox.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).