[PATCH] test: Adding non-maildir tags does not move message from new to cur
Louis Rilling
l.rilling at av7.net
Thu Jul 14 07:11:02 PDT 2011
On 14/07/11 2:06 +0200, Michal Sojka wrote:
> From: Michal Sojka <sojka at os.inf.tu-dresden.de>
>
> This adds a test for patch submitted by Louis Rilling. Without his patch
> applied this test fails.
Thanks a lot Michal! I was indeed wondering how to do this. This test perfectly matches the intended usage.
Louis
> ---
> test/maildir-sync | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/test/maildir-sync b/test/maildir-sync
> index a60854f..e1ad81c 100755
> --- a/test/maildir-sync
> +++ b/test/maildir-sync
> @@ -88,6 +88,12 @@ test_expect_equal "$output" "No new mail."
> # creating new directories in the mail store, then it should be
> # creating all necessary database state for those directories.
>
> +test_begin_subtest "Adding non-maildir tags does not move message from new to cur"
> +add_message [subject]='"Message to stay in new"' [date]='"Sat, 01 Jan 2000 12:00:00 -0000"' [filename]='message-to-stay-in-new' [dir]=new
> +notmuch tag +donotmove subject:"Message to stay in new"
> +output=$(cd "$MAIL_DIR"; ls */message-to-stay-in-new*)
> +test_expect_equal "$output" "new/message-to-stay-in-new"
> +
> test_begin_subtest "Removing 'S' flag from existing filename adds 'unread' tag"
> add_message [subject]='"Removing S flag"' [filename]='removing-s-flag:2,S' [dir]=cur
> output=$(notmuch search subject:"Removing S flag" | notmuch_search_sanitize)
> --
> 1.7.5.4
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
More information about the notmuch
mailing list