diff options
author | Carl Worth <cworth@cworth.org> | 2010-11-10 17:36:09 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-11 03:40:19 -0800 |
commit | bb74e9dff80e64734308d5997c756fd96d041235 (patch) | |
tree | 1e2fdc7824e128b532bb505b9d3dccafcc730750 /lib/database.cc | |
parent | 4cfb2a02778bac16e785bbea1fd6c665e34bd955 (diff) |
lib: Rework interface for maildir_flags synchronization
Instead of having an API for setting a library-wide flag for
synchronization (notmuch_database_set_maildir_sync) we instead
implement maildir synchronization with two new library functions:
notmuch_message_maildir_flags_to_tags
and notmuch_message_tags_to_maildir_flags
These functions are nicely documented here, (though the implementation
does not quite match the documentation yet---as plainly evidenced by
the current results of the test suite).
Diffstat (limited to 'lib/database.cc')
-rw-r--r-- | lib/database.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/database.cc b/lib/database.cc index 293d21a..380bbe3 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -688,8 +688,6 @@ notmuch_database_open (const char *path, notmuch = NULL; } - notmuch_database_set_maildir_sync (notmuch, FALSE); - DONE: if (notmuch_path) free (notmuch_path); @@ -719,13 +717,6 @@ 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) { |