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/message.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/message.cc')
-rw-r--r-- | lib/message.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/message.cc b/lib/message.cc index 1548076d..c2a9ebdf 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -624,7 +624,7 @@ _notmuch_message_sync (notmuch_message_t *message) if (message->notmuch->mode == NOTMUCH_DATABASE_MODE_READ_ONLY) return; - if (// todo_sync_enabled && + if (message->notmuch->maildir_sync && !notmuch_message_get_flag(message, NOTMUCH_MESSAGE_FLAG_TAGS_INVALID)) { status = _notmuch_message_tags_to_maildir (message); if (status != NOTMUCH_PRIVATE_STATUS_SUCCESS) { |