diff --git a/src/lib/Sympa/Request/Handler/add.pm b/src/lib/Sympa/Request/Handler/add.pm index f0d13691e..e864a5ac1 100644 --- a/src/lib/Sympa/Request/Handler/add.pm +++ b/src/lib/Sympa/Request/Handler/add.pm @@ -175,9 +175,17 @@ sub _report_user { my $role = $request->{role}; my $email = $request->{email}; my $sender = $request->{sender}; + my $reception; + + if (exists $request->{reception}) { + $reception = $request->{reception}; + } + else { + $reception = $list->get_default_user_options(role => $role)->{reception}; + } # Notify the new list owner/editor - unless ($request->{quiet}) { + unless ($request->{quiet} or $reception eq 'nomail') { Sympa::send_notify_to_user($list, 'added_as_listadmin', $email, {admin_type => $role, delegator => $sender}); $self->add_stash($request, 'notice', 'user_notified',