virtual sidebar tree with notmuch queries (follows #72) #202
Labels
No Label
IMAP
JMAP
Maildir
Retired
User Experience
User Interface
bsd
bug
contacts
currently worked on
documentation
duplicate
easy
enhancement
help wanted
invalid
linux-gnu
macos
mbox
notmuch
question
security
wishlist
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: meli/meli#202
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
I would like display notmuch queries as a sidebar tree structure like with maildir.
One naive algorithm is to add an optional
parent
key on each query definition that can be used to organize the virtual folders into a hierarchy.I am willing to make a a PR myself for this feautre and was wondering if you already thought about this idea or if there's something I should think about ?
Yes that should be possible!
The
parent
field ofNotmuchMailbox
is initialized toNone
inmelib/src/backends/notmuch.rs:379
. You can see above that how thequery
option is read from the config hashmap; aparent
option key could be parsed if it exists.There's some extra logic to be implemented to allow for a hierarchical mailbox tree:
path
field ofNotmuchMailbox
should return the entire hierarchy instead of just the name as it is right nowinsert
ing all mailboxes to populate thechildren
field where appropriate.validate_config
, theparent
keys should be removed from theextra
field since backends "consume" their special options when validating a config so that only unrecognized options remain in the hashmaps.Finally, the new
parent
key should be added inmeli.conf.5
manpage source, probably in the sample config too and whereever else notmuch is mentioned.Implemented in #170