afewmail / afew

an initial tagging script for notmuch mail
ISC License
325 stars 99 forks source link

Handling of split database/maildir configuration introduced in notmuch 0.32 (in 2021) #345

Open tkapias opened 4 months ago

tkapias commented 4 months ago

In march 2021, notmuch introduced many changes to its paths configuration, introducing the possibility to split the database and the maildir location.

The main commit is e823d05ae6dc920d4fc9abf774c3d2575d891d7b.

My notmuch config file follows this new format:

[database]
path=/home/user/.config/notmuch/profile
hook_dir=/home/user/.config/notmuch/profile/hooks
backup_dir=/home/user/.config/notmuch/profile/backups
mail_root=/home/user/.mail/profile

But in afew, the 'path' seems to still be the only value parsed by Database.py, which define the database and messages location.

Could you introduce this feature to afew?

GuillaumeSeren commented 4 months ago

Hey @tkapias , thank you for the interest in the project.

I think this is a very good and interesting subject, if you have a little time to help us, please consider helping us by contributing, thank you.

Best,

tkapias commented 4 months ago

First, thank you for your work on afew. For now I am testing notmuch-mailmover, it focuses only on message location but is up to date. If it turns out to be too limited, I can try to contribute to afew, but it will be in a few weeks at best, I will keep an eye here in the meantime.

GuillaumeSeren commented 4 months ago

Good to discover an alternative I did not know thank you, before implementing this, we should start by clarifying what is expected by this changes.