labels: allow restoring cache-map

E.g. with unexpected termination for mu it is possible that the
labels-cache (i.e., the one that is used for auto-completion) gets disconnected
from reality.

Add a --restore option to `mu label list` to restore the actual labels from the
labels seen in the store.
This commit is contained in:
Dirk-Jan C. Binnema
2025-09-02 21:08:54 +03:00
committed by Seth Ladygo
parent 76031d93d1
commit 124b371850
9 changed files with 83 additions and 17 deletions

View File

@ -71,6 +71,15 @@ when using a shell.
* LIST OPTIONS
The *list* command lists all the labels that are currently in use in the store.
This is the same information used for auto-completion in *mu4e*.
With the (global, directly after *mu) *--verbose* option, this also includes the
counts.
** --restore
attempt to restore the list from the labels in the store.
It is possible that the list to get outdated, *--restore* fixes this.
* EXPORT OPTIONS