%ifreason subonlypost%
porque nun yes suscriptor de la llista.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Si quies suscribite, tendrás de comunicate con un alministrador
%ifreason modnonsubposts%
porque nun yes suscriptor.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(El mensaxe ta más abaxo.)
%ifreason subonlypost%
Adresa, ze které byla zpráva zaslána, není v seznamu členů konference.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Pokud si přejete být členem konference kontaktujte správce.
%ifreason modnonsubposts%
Důvodem je, že nejste členem konference (nebo píšete zprávu z adresy, se kterou nejste v konferenci přihlášen).
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(Zpráva je uvedena níže.)
%ifreason subonlypost%
weil Sie die Liste nicht abonniert haben.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Wenn Sie die Liste abonnieren möchten, kontaktieren Sie einen
%ifreason modnonsubposts%
weil Sie nicht auf der Liste eingeschrieben sind.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(Die ist unten angefügt.)
%ifreason subonlypost%
because you are not a list subscriber.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%If you wish to become a subscriber, you will need to contact a
%ifreason subonlypost%
koska et ole postituslistan tilaaja.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Jos haluta liittyä postituslistalle, ota yhteyttä listan
%ifreason modnonsubposts%
koska et ole postituslistan tilaaja.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(Lähetetty viesti on alla.)
%ifreason subonlypost%
parce que vous n'êtes pas un inscrit de la liste.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Si vous souhaitez vous inscrire, vous devez contacter un
%ifreason modnonsubposts%
parce que vous n'êtes pas inscrit.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(Le message apparaît ci-dessous.)
%ifreason subonlypost%
καθώς δεν είστε εγγεγραμμένος στη λίστα.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Αν επιθυμείτε να εγγραφείτε στη λίστα ταχυδρομείου, αρκεί να
%ifreason modnonsubposts%
καθώς δεν είστε εγγεγραμμένος χρήστης.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(Παρακάτω ακολουθεί το μήνυμα.)
%ifreason subonlypost%
perché non sei iscritto/a alla lista.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Se desideri iscriverti, devi contattare l'amministratore della
%ifreason modnonsubposts%
perché non sei iscritto/a.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(Il messaggio è riportato sotto.)
%ifreason subonlypost%
porque você não faz parte da lista.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Se pretender subscrever a lista, tem que contactar um
%ifreason modnonsubposts%
porque você não é um subscritor.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(Mensagem segue em baixo.)
%ifreason subonlypost%
lebo nie ste abonentom diskusie.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%Ak sa chcete stať abonentom, kontaktujte administrátora
%ifreason modnonsubposts%
nie ste jej abonentom.
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(Správa je pripojená.)
%ifreason subonlypost%
因为您不是列表订户\=。
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%ifcontrol closedlist closedlistsub%
%^%%wrap%如果您打算成为订户\=,需要联系列表管理员\=。您可以发送邮件
需要版主审核后才能发布到该列表\=。
%ifreason modnonsubposts%
- %ifncontrol closedlist%%ifncontrol closedlistsub%
+ %ifncontrol closedlist%%ifncontrol closedlistsub%%ifncontrol moderators%
%^%%text subrelease%
- %endif%%endif%
+ %endif%%endif%%endif%
%endif%
(\=下为邮件\=。\=)
char *subreplyto = NULL;
if (modreason == MODNONSUBPOSTS &&
!statctrl(ml->ctrlfd, "closedlist") &&
- !statctrl(ml->ctrlfd, "closedlistsub")) {
+ !statctrl(ml->ctrlfd, "closedlistsub") &&
+ !statctrl(ml->ctrlfd, "moderators")) {
char *listsubreleaseaddr;
char *digestsubreleaseaddr;
char *nomailsubreleaseaddr;
bool closedlistsub = statctrl(ml.ctrlfd, "closedlistsub");
char *subreplyto = NULL;
- if (subonlypost && !closedlist && !closedlistsub) {
+ bool hasmoderators = statctrl(ml.ctrlfd, "moderators");
+
+ if (subonlypost && !closedlist && !closedlistsub &&
+ !hasmoderators) {
char *modname;
char *listsubreleaseaddr;
char *digestsubreleaseaddr;
verp \
normal_email_with_dot \
multi_line_headers \
- subrelease
+ subrelease \
+ subrelease_with_moderators
mlmmjreceive=$(command -v mlmmj-receive)
Subject: =?utf-8?q?Post_to_test=40mlmmjtest_denied:_subscribe?=\r
MIME-Version: 1.0\r
Content-Type: multipart/mixed;\r
- boundary
+ boundary\r
Content-Transfer-Encoding: 8bit\r
From: test+owner@mlmmjtest\r
To: bob@test\r
atf_check -s exit:0 $mlmmjreceive -L list -F <first
cat >> expected-1.txt <<EOF
-EHLO heloname\r
-MAIL FROM:<test+bounces-1@mlmmjtest> XVERP=-=\r
-QUIT\r
+EHLO heloname
+MAIL FROM:<test+bounces-1@mlmmjtest> XVERP=-=
+QUIT
EOF
atf_check -o file:expected-1.txt sed -e "/^Message-ID:/d; /^Date:/d;" mail-1.txt
cat > second <<EOF
atf_check -o match:"Let's go, first email" cat mail-2.txt
atf_check -o match:"QUIT" cat mail-2.txt
}
+
+subrelease_with_moderators_body()
+{
+ init_ml list
+ rmdir list/text
+ ln -s ${top_srcdir}/listtexts/en list/text
+ echo test@mlmmjtest > list/control/listaddress
+ start_fakesmtp list
+ echo "heloname" > list/control/smtphelo
+
+ touch list/control/subonlypost
+ echo "mod@test" > list/control/moderators
+ printf "user@test\nuser2@test" > list/subscribers.d/u
+
+cat > first <<EOF
+From: bob@test
+To: test@mlmmjtest
+Return-path: bob@test
+Subject: yeah
+
+Let's go, first email
+EOF
+ atf_check -s exit:0 $mlmmjreceive -L list -F <first
+
+ # Verify the deny-post mail does NOT contain subrelease addresses
+ atf_check -o not-match:"subrelease" cat mail-1.txt
+
+ # Verify the mail was NOT held in moderation (no subrelease path)
+ atf_check -s exit:0 test -z "$(ls list/moderation/ 2>/dev/null)"
+
+ # Verify the deny mail was sent to the poster
+ atf_check -o match:"RCPT TO:<bob@test>" cat mail-1.txt
+}