unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / Atom feed
* listing all the tags I've been using
@ 2020-11-20 14:45 Alan Schmitt
  2020-11-20 15:02 ` Ralph Seichter
  2020-11-20 15:33 ` Kim Minh Kaplan
  0 siblings, 2 replies; 5+ messages in thread
From: Alan Schmitt @ 2020-11-20 14:45 UTC (permalink / raw)
  To: notmuch


[-- Attachment #1.1: Type: text/plain, Size: 218 bytes --]

Hello,

I'm trying to document the tags I'm using for notmuch and make sure I
have not introduced duplication or typos. So I would like to list all
the tags I've used. Is there a way to do it?

Thanks,

Alan

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: listing all the tags I've been using
  2020-11-20 14:45 listing all the tags I've been using Alan Schmitt
@ 2020-11-20 15:02 ` Ralph Seichter
  2020-11-20 15:33 ` Kim Minh Kaplan
  1 sibling, 0 replies; 5+ messages in thread
From: Ralph Seichter @ 2020-11-20 15:02 UTC (permalink / raw)
  To: notmuch

* Alan Schmitt:

> I'm trying to document the tags I'm using for notmuch [...]

The following should get you started (untested, from memory):

  notmuch dump | gawk -F '--' '{print $1}' | sort -u

Feel free to add some more AWK magic instead of the "sort -u" to
group/count by tag name.

-Ralph

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: listing all the tags I've been using
  2020-11-20 14:45 listing all the tags I've been using Alan Schmitt
  2020-11-20 15:02 ` Ralph Seichter
@ 2020-11-20 15:33 ` Kim Minh Kaplan
  2020-11-20 15:40   ` Ralph Seichter
  2020-11-20 16:01   ` Alan Schmitt
  1 sibling, 2 replies; 5+ messages in thread
From: Kim Minh Kaplan @ 2020-11-20 15:33 UTC (permalink / raw)
  To: notmuch

Alan Schmitt writes:

> I would like to list all
> the tags I've used. Is there a way to do it?

notmuch search --output=tags '*'

Kim Minh.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: listing all the tags I've been using
  2020-11-20 15:33 ` Kim Minh Kaplan
@ 2020-11-20 15:40   ` Ralph Seichter
  2020-11-20 16:01   ` Alan Schmitt
  1 sibling, 0 replies; 5+ messages in thread
From: Ralph Seichter @ 2020-11-20 15:40 UTC (permalink / raw)
  To: notmuch

* Kim Minh Kaplan:

> notmuch search --output=tags '*'

That's much nicer than my idea. Thanks.

-Ralph

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: listing all the tags I've been using
  2020-11-20 15:33 ` Kim Minh Kaplan
  2020-11-20 15:40   ` Ralph Seichter
@ 2020-11-20 16:01   ` Alan Schmitt
  1 sibling, 0 replies; 5+ messages in thread
From: Alan Schmitt @ 2020-11-20 16:01 UTC (permalink / raw)
  To: Kim Minh Kaplan, notmuch


[-- Attachment #1.1: Type: text/plain, Size: 492 bytes --]

On 2020-11-20 15:33, Kim Minh Kaplan <kimminh.kaplan+nomuch@afnic.fr> writes:

> Alan Schmitt writes:
>
>> I would like to list all
>> the tags I've used. Is there a way to do it?
>
> notmuch search --output=tags '*'

Thanks a lot Ralph and Kim. For the record, I refined Ralph's solution
to:

notmuch dump | tail -n +2 | gawk -F '--' '{print $1}' | gawk -F ' ' '{ for(i=1; i<=NF; i+=1) {printf "%s\n", $i;}}' | sort -u

which I can now happily throw away ;)

Best,

Alan

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-20 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 14:45 listing all the tags I've been using Alan Schmitt
2020-11-20 15:02 ` Ralph Seichter
2020-11-20 15:33 ` Kim Minh Kaplan
2020-11-20 15:40   ` Ralph Seichter
2020-11-20 16:01   ` Alan Schmitt

unofficial mirror of notmuch@notmuchmail.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/notmuch/0 notmuch/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 notmuch notmuch/ https://yhetil.org/notmuch \
		notmuch@notmuchmail.org
	public-inbox-index notmuch

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.mail.notmuch.general
	nntp://news.gmane.io/gmane.mail.notmuch.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git