Re: listing all the tags I've been using

Subject: Re: listing all the tags I've been using

Date: Fri, 20 Nov 2020 17:01:40 +0100

To: Kim Minh Kaplan, notmuch

Cc:

From: Alan Schmitt


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
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: