From: Baptiste Daroussin Date: Wed, 8 Mar 2023 11:03:34 +0000 (+0100) Subject: mlmmj-maintd: extend the test to cover addtohdr X-Git-Tag: RELEASE_1_4_0b1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d0d7fa97f7b8d2d89ea362575ac4dfd3d63fcab;p=thirdparty%2Fmlmmj.git mlmmj-maintd: extend the test to cover addtohdr --- diff --git a/tests/mlmmj-maintd.sh b/tests/mlmmj-maintd.sh index 54fd4598..cc89cf68 100755 --- a/tests/mlmmj-maintd.sh +++ b/tests/mlmmj-maintd.sh @@ -839,6 +839,62 @@ QUIT EOF atf_check $mlmmjmaintd -L list -F atf_check -o file:expect2.txt sed -e "/^Message-ID:/d; /^Date:/d; s/bounces-.*-/bounces-/g" mail-2.txt - atf_check -s exit:1 test -f mail-4.txt + atf_check -s exit:1 test -f mail-3.txt atf_check -s exit:0 test -f list/archive/1 + atf_check -s exit:1 test -f lists/requeue/1/subscribers + atf_check -s exit:1 test -f list/requeue/3/mailfile + mkdir lists/requeue/1 +cat > list/archive/1 <> list/requeue/1/subscribers < expect3.txt < +RCPT TO: +DATA +From: plop +To: bla +Subject: test +To: user1@test1 + +body + +. +MAIL FROM: +RCPT TO: +DATA +From: plop +To: bla +Subject: test +To: user2@test2 + +body + +. +MAIL FROM: +RCPT TO: +DATA +From: plop +To: bla +Subject: test +To: user3@test3 + +body + +. +QUIT +EOF + touch list/control/addtohdr + atf_check $mlmmjmaintd -L list -F + atf_check -o file:expect3.txt sed -e "/^Message-ID:/d; /^Date:/d; s/bounces-.*-/bounces-/g" mail-3.txt + atf_check -s exit:1 test -f mail-4.txt }