]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
lib: Remove the synchronization of 'T' flag with "deleted" tag.
[notmuch] / lib / message.cc
index 1548076dc9decf91a09c5958ee94f8ae676f1e07..80ff4ca9f77d646bc87af04c43980d47df079d8d 100644 (file)
@@ -55,8 +55,7 @@ struct maildir_flag_tag flag2tag[] = {
     { 'F', "flagged", false},
     { 'P', "passed",  false},
     { 'R', "replied", false},
-    { 'S', "unread",  true },
-    { 'T', "deleted", false},
+    { 'S', "unread",  true }
 };
 
 /* We end up having to call the destructor explicitly because we had
@@ -624,7 +623,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) {