Commit c3f69b9e authored by IKEDA Soji's avatar IKEDA Soji
Browse files

[-bug] bounce_email_prefix parameter was not considered to prevent reserved...

[-bug] bounce_email_prefix parameter was not considered to prevent reserved addrresses for list name (PR#455).
parent 16aa7767
......@@ -122,8 +122,12 @@ sub check_new_listname {
# Avoid "sympa", "listmaster", "bounce" and "bounce+XXX".
if ( $listname eq Conf::get_robot_conf($robot_id, 'email')
or $listname eq Conf::get_robot_conf($robot_id, 'listmaster_email')
or $listname eq 'bounce'
or 0 == index($listname, 'bounce+')) {
or $listname eq Conf::get_robot_conf($robot_id, 'bounce_email_prefix')
or 0 == index(
$listname,
Conf::get_robot_conf($robot_id, 'bounce_email_prefix') . '+'
)
) {
$log->syslog('err',
'Incorrect listname %s matches one of service aliases',
$listname);
......
......@@ -47,7 +47,6 @@ use Term::ProgressBar;
use XML::LibXML;
use Sympa;
use Sympa::Aliases;
use Conf;
use Sympa::Config_XML;
use Sympa::DatabaseManager;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment