aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2012-06-09 15:14:17 -0400
committerGravatar David Bremner <bremner@debian.org>2012-06-10 20:14:56 -0300
commitb88030bda6da084ef74e41f588589fd98e773ad7 (patch)
tree07a74d6cf572df09d63f24f50c87d804eeb3c1a3 /test
parent750231bae8a0bdb3273c2f9a74da14327fbc5d52 (diff)
lib: Treat messages in new/ as maildir messages with no flags set
Previously, notmuch new only synchronized maildir flags to tags for files with a maildir "info" part. Since messages in new/ don't have an info part, notmuch would ignore them for flag-to-tag synchronization. This patch makes notmuch consider messages in new/ to be legitimate maildir messages that simply have no maildir flags set. The most visible effect of this is that such messages now automatically get the unread tag.
Diffstat (limited to 'test')
-rwxr-xr-xtest/maildir-sync1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/maildir-sync b/test/maildir-sync
index 6360fd20..01348d37 100755
--- a/test/maildir-sync
+++ b/test/maildir-sync
@@ -167,7 +167,6 @@ notmuch tag +unread +draft -flagged subject:"Non-compliant maildir info"
test_expect_equal "$(cd $MAIL_DIR/cur/; ls non-compliant*)" "non-compliant-maildir-info:2,These-are-not-flags-in-ASCII-order-donottouch"
test_begin_subtest "Files in new/ get default synchronized tags"
-test_subtest_known_broken
OLDCONFIG=$(notmuch config get new.tags)
notmuch config set new.tags test
add_message [subject]='"File in new/"' [dir]=new [filename]='file-in-new'