Commit 3e8eacaa authored by sikeda's avatar sikeda
Browse files

[-bug] If a robot.conf has listmaster parameter with no valid addresses, use...

[-bug] If a robot.conf has listmaster parameter with no valid addresses, use configuration in sympa.conf.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12293 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 35fca0d0
......@@ -1001,6 +1001,12 @@ sub get_listmasters_email {
my @listmasters =
grep { tools::valid_email($_) } split /\s*,\s*/, $listmaster;
# If no valid adresses found, use listmaster of site config.
unless (@listmasters or (not ref $that and $that eq '*')) {
$log->syslog('notice', 'Warning: No listmasters found for %s', $that);
@listmasters = Sympa::get_listmasters_email('*');
}
return wantarray ? @listmasters : [@listmasters];
}
......
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