diff options
author | Michal Sojka <sojkam1@fel.cvut.cz> | 2010-10-31 22:29:17 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-10 13:09:32 -0800 |
commit | d9d3d3e6f06a76dc0fbe24c9655b64acfcd4b9e4 (patch) | |
tree | 88ef6ede364b051956bdc8afe585828e17e52bbe /lib/database.cc | |
parent | 088801a14ab1ccf4c65e5bf7b50b3a1172c477d7 (diff) |
Make maildir synchronization configurable
This adds group [maildir] and key 'synchronize_flags' to the
configuration file. Its value enables (true) or diables (false) the
synchronization between notmuch tags and maildir flags. By default,
the synchronization is disabled.
Diffstat (limited to 'lib/database.cc')
-rw-r--r-- | lib/database.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/database.cc b/lib/database.cc index 380bbe3..293d21a 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -688,6 +688,8 @@ notmuch_database_open (const char *path, notmuch = NULL; } + notmuch_database_set_maildir_sync (notmuch, FALSE); + DONE: if (notmuch_path) free (notmuch_path); @@ -717,6 +719,13 @@ notmuch_database_close (notmuch_database_t *notmuch) talloc_free (notmuch); } +void +notmuch_database_set_maildir_sync (notmuch_database_t *database, + notmuch_bool_t maildir_sync) +{ + database->maildir_sync = maildir_sync; +} + const char * notmuch_database_get_path (notmuch_database_t *notmuch) { |