]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
lib: support splitting mail from database location.
[notmuch] / lib / message.cc
index 73a7805f8a2714eb48cfb6cdaec921563e77151b..0c2eeab55b6e3eceb08bade87b08e6c9ac333daa 100644 (file)
@@ -1102,7 +1102,7 @@ _notmuch_message_ensure_filename_list (notmuch_message_t *message)
 
        *colon = '\0';
 
-       db_path = notmuch_database_get_path (message->notmuch);
+       db_path = notmuch_config_get (message->notmuch, NOTMUCH_CONFIG_MAIL_ROOT);
 
        directory = _notmuch_database_get_directory_path (local,
                                                          message->notmuch,