summaryrefslogtreecommitdiff
path: root/alot/__main__.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-02-05 20:05:45 +0100
committerAnton Khirnov <anton@khirnov.net>2022-02-05 20:05:45 +0100
commite7e068ce31f1c78951df5d382580a78415563280 (patch)
treeda1eb5575a800ede230d4c835a795be09b549f19 /alot/__main__.py
parent222ebaed846ba6739e17a09c2b16f10c853790bf (diff)
db/manager: support flexible database location
In newer notmuch versions it no longer needs to be stored along with the emails themselves.
Diffstat (limited to 'alot/__main__.py')
-rw-r--r--alot/__main__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/__main__.py b/alot/__main__.py
index c74e5d6f..d9c69149 100644
--- a/alot/__main__.py
+++ b/alot/__main__.py
@@ -123,9 +123,9 @@ def main():
loop = asyncio.get_event_loop()
# get ourselves a database manager
- indexpath = settings.get_notmuch_setting('database', 'path')
- indexpath = options.mailindex_path or indexpath
- dbman = DBManager(loop, path=indexpath, ro=options.read_only)
+ db_path = options.mailindex_path or None
+ dbman = DBManager(loop = loop, ro = options.read_only,
+ db_path = db_path)
# determine what to do
if command is None: