-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alot/settings: Use notmuch config to read configuration
The main benefit from this is that we get the defaults directly from notmuch and do not risk using inconsistent configuration values. A good example of this is getting the database path. Getting the path directly from the notmuch config file is not enough, because the user might be using the default location with no explicit entry in the file. Since notmuch does is a bit of logic notmuch to get the database path (see section "DATABASE LOCATION" in man page for notmuch-config(1)), it is better to get it directly from "notmuch config". Since get_notmuch_setting() now always returns a string, also refactor the call to settings.get_notmuch_setting('maildir', 'synchronize_flags') for this new reality.
- Loading branch information
Showing
6 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters