-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for notmuch profiles #25
Comments
I know some software depends on the cur/new/tmp setup. I thought that mutt was one of them, but maybe that's not the case with the notmuch backend. I opted to keep limit it to the environment variable because it seemed like there were some weird edge cases that could come up if it were defined in mujmap.toml. For example, if two different profiles point to the same maildir, and mujmap is a child of that maildir, which profile should mujmap use on invocation? Since most people are likely going to be using mujmap in the pre/post-hooks of (Another option would be to allow it as a command-line argument like the various The |
I'm not sure, but it seems pretty necessary after some reading, so won't be removing that.
That's interesting, I hadn't thought about using it that way. Really depends on how you think about it hey! I commit to not breaking any of this :)
It's .. sort of. I'm working out a setup with separate notmuch indexes and maildirs for my different JMAP accounts, and the profile and split stuff and use of XDG dirs seems to arrange utlimately arrange for a database and maildir "side by side", which is confusing mujmap's db/maildir prefix check, and also the "all messages" query. Its a pretty modest patch to adjust it, and I have it working, just not cleaned up yet. But I think My aim so far is to use the |
Oh, I see, I misunderstood. That sounds good to me. 🙂 I'll await the PR. |
I think mostly this means getting the maildir path from notmuch config item
database.mail_root
and then using that forpath:
queries, sync destination, etc. Which might mean changing/removing the cur/new/tmp setup, but maybe not if clients are really expecting it to look like that.I'm not sure if its better or worse to explicitly set a profile name in mujmap config and pass that into
Database::open_with_config
, or just to requireNOTMUCH_PROFILE
to be set and the magic just happens. The latter is more notmuchy, the former is much more pleasant. But support first I think.The text was updated successfully, but these errors were encountered: