From 51f3e06bdcc396f78be913cc0867e90578da20e2 Mon Sep 17 00:00:00 2001 From: "Stefan Hornburg (Racke)" Date: Sat, 17 Dec 2022 14:19:42 +0100 Subject: [PATCH] Add backport for #1550. --- src/cgi/wwsympa.fcgi.in | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/cgi/wwsympa.fcgi.in b/src/cgi/wwsympa.fcgi.in index 3c3d6051c..7003c4733 100644 --- a/src/cgi/wwsympa.fcgi.in +++ b/src/cgi/wwsympa.fcgi.in @@ -4710,17 +4710,20 @@ sub _review_user { ; #FIXME: Update user? } elsif ($list->add_list_admin($role, $user)) { # Notify the new list owner/editor - Sympa::send_notify_to_user( - $list, - 'added_as_listadmin', - $email, - { admin_type => $role, - delegator => $param->{'user'}{'email'} - } - ); - Sympa::WWW::Report::notice_report_web('user_notified', - {'notified_user' => $email}, - $param->{'action'}); + if ($user->{'reception'} ne 'nomail') { + Sympa::send_notify_to_user( + $list, + 'added_as_listadmin', + $email, + { admin_type => $role, + delegator => $param->{'user'}{'email'} + } + ); + + Sympa::WWW::Report::notice_report_web('user_notified', + {'notified_user' => $email}, + $param->{'action'}); + } } else { #FIXME: Report error }