From: Michael S. Tsirkin Date: Sun, 24 Aug 2025 20:50:27 +0000 (-0400) Subject: implement modemailsender test X-Git-Tag: RELEASE_1_7_0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f147cd4ca7a290c833637e8dee21984f3d13bdb8;p=thirdparty%2Fmlmmj.git implement modemailsender test Implement a new moderation_modemailsender test. It is identical to moderation_modemailsender, but sets modemailsender and verifies that the moderation email goes to the sender. --- diff --git a/tests/mlmmj-receive.in b/tests/mlmmj-receive.in index e7d82fb0..c379678d 100644 --- a/tests/mlmmj-receive.in +++ b/tests/mlmmj-receive.in @@ -18,6 +18,7 @@ tests_init \ ctrl_get \ subscription_moderation \ moderation \ + moderation_modemailsender \ moderation_notifymod \ moderation_notmetoo \ moderation_reject_invalid \ @@ -1978,6 +1979,11 @@ moderation_body() { moderation_create_body test@modos } +moderation_modemailsender_body() { + touch list/control/modemailsender + moderation_create_body bob@test +} + moderation_notifymod_body() { atf_check $top_builddir/tests/fakesmtpd trap kill_fakesmtp EXIT TERM