Add unit-test for multi-to/cc recipients

To check for the report in Issue #826.
This commit is contained in:
djcb
2016-05-15 16:21:20 +03:00
parent 94587ac3ac
commit a81270583f
4 changed files with 70 additions and 37 deletions

View File

@ -113,6 +113,7 @@ EXTRA_DIST= \
testdir/cur/signed!2,S \
testdir/cur/signed-encrypted!2,S \
testdir/cur/special!2,Sabc \
testdir/cur/multirecip!2,S \
testdir2/bar/cur/mail1 \
testdir2/bar/cur/mail2 \
testdir2/bar/cur/mail3 \

View File

@ -1,5 +1,5 @@
/*
** Copyright (C) 2008-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** Copyright (C) 2008-2016 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
@ -260,7 +260,7 @@ test_mu_maildir_walk_01 (void)
&data);
g_assert_cmpuint (MU_OK, ==, rv);
g_assert_cmpuint (data._file_count, ==, 18);
g_assert_cmpuint (data._file_count, ==, 19);
g_assert_cmpuint (data._dir_entered,==, 5);
g_assert_cmpuint (data._dir_left,==, 5);
@ -298,7 +298,7 @@ test_mu_maildir_walk (void)
&data);
g_assert_cmpuint (MU_OK, ==, rv);
g_assert_cmpuint (data._file_count, ==, 14);
g_assert_cmpuint (data._file_count, ==, 15);
g_assert_cmpuint (data._dir_entered,==, 4);
g_assert_cmpuint (data._dir_left,==, 4);
@ -330,7 +330,7 @@ test_mu_maildir_walk_with_noupdate (void)
&data);
g_assert_cmpuint (MU_OK, ==, rv);
g_assert_cmpuint (data._file_count, ==, 18);
g_assert_cmpuint (data._file_count, ==, 19);
g_assert_cmpuint (data._dir_entered,==, 5);
g_assert_cmpuint (data._dir_left,==, 5);
@ -344,7 +344,7 @@ test_mu_maildir_walk_with_noupdate (void)
&data);
g_assert_cmpuint (MU_OK, ==, rv);
g_assert_cmpuint (data._file_count, ==, 18);
g_assert_cmpuint (data._file_count, ==, 19);
g_assert_cmpuint (data._dir_entered,==, 5);
g_assert_cmpuint (data._dir_left,==, 5);
@ -362,7 +362,7 @@ test_mu_maildir_walk_with_noupdate (void)
&data);
g_assert_cmpuint (MU_OK, ==, rv);
g_assert_cmpuint (data._file_count, ==, 14);
g_assert_cmpuint (data._file_count, ==, 15);
g_assert_cmpuint (data._dir_entered,==, 4);
g_assert_cmpuint (data._dir_left,==, 4);
@ -376,7 +376,7 @@ test_mu_maildir_walk_with_noupdate (void)
&data);
g_assert_cmpuint (MU_OK, ==, rv);
g_assert_cmpuint (data._file_count, ==, 18);
g_assert_cmpuint (data._file_count, ==, 19);
g_assert_cmpuint (data._dir_entered,==, 5);
g_assert_cmpuint (data._dir_left,==, 5);
@ -647,7 +647,7 @@ main (int argc, char *argv[])
g_test_init (&argc, &argv, NULL);
/* mu_util_maildir_mkmdir */
g_test_add_func ("/mu-maildir/mu-maildir-mkdir-01",
g_test_add_func ("/mu-maildir/mu-maildir-mkdir-01",
test_mu_maildir_mkdir_01);
g_test_add_func ("/mu-maildir/mu-maildir-mkdir-02",
test_mu_maildir_mkdir_02);

View File

@ -0,0 +1,11 @@
Date: Thu, 15 May 2016 14:57:25 -0200
From:
To: a@example.com,b@example.com,c@example.com
Cc: d@example.com,e@example.com
Subject: test with multi to and cc
Message-id: <3BE9E652343245@emss35m06.us.lmco.com>
Message with multi cc and to.