X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bin%2Fsup-sync;h=91710d47495ab263a69e03ec709657d1ee8b66ae;hb=6461b6b5c80b216627127837942b761a151317b5;hp=5437f9caa23bf41ce8989a249eabeda68f0b8b4b;hpb=c6e1e20b3d6669e6fe5112a792af4382d60a61c8;p=sup diff --git a/bin/sup-sync b/bin/sup-sync index 5437f9c..91710d4 100644 --- a/bin/sup-sync +++ b/bin/sup-sync @@ -158,7 +158,7 @@ begin ## assign message labels based on the operation we're performing case op when :asis - m.labels = (m.labels + index_state).uniq if index_state + m.labels = ((m.labels - [:unread, :inbox]) + index_state).uniq if index_state when :restore ## if the entry exists on disk if restored_state[m.id]