$c{ControlAddressFull} = $c{ControlAddress} . "@" . $c{MailDomain};
$c{OwnerAddressFull} = $c{OwnerAddress} . "@" . $c{MailDomain};
+
+ if ( $c{ControlAllowPath} ) {
+ open CA, "<".$c{ControlAllowPath} or die "unable to open ".$c{ControlAllowPath}.": $!";
+ $c{ControAllow} = [];
+ while (<CA>) {
+ chomp;
+ push @ { $c{ControlAllow} }, $_;
+ }
+ }
}
#------- database -------
"gmane" => "http://mid.gmane.org/<MSGID>",
);
-@{ $c{ControlAllow} } = qw/admin@example.com/;
+# Users who are allowed to access privileged control commands.
+# $c{ControlAllowPath} takes precendence over $c{ControlAllow}.
+#
+# ControlAllowPath should contain the path to a file with one email address per
+# line.
+$c{ControlAllowPath} = "/etc/emesinae/control.users";
+# Otherwise ControlAllow should be an array of email addresses
+#@{ $c{ControlAllow} } = qw/admin@example.com/;
# Severity levels, in decending order of criticality
@{ $c{SeverityLevels} } = qw/blocker critical normal wishlist/;
--- /dev/null
+Ian.Campbell@citrix.com
+ijc@hellion.org.uk
"gmane" => "http://mid.gmane.org/<MSGID>",
);
-@{ $c{ControlAllow} } = qw/Ian.Campbell@citrix.com ijc@hellion.org.uk/;
+# Users who are allowed to access privileged control commands.
+# $c{ControlAllowPath} takes precendence over $c{ControlAllow}.
+#
+# ControlAllowPath should contain the path to a file with one email address per
+# line.
+$c{ControlAllowPath} = "/srv/test/etc/control.users";
+# Otherwise ControlAllow should be an array of email addresses
+#@{ $c{ControlAllow} } = qw/admin@example.com/;
# Severity levels, in decending order of criticality
@{ $c{SeverityLevels} } = qw/blocker critical normal wishlist/;
"gmane" => "http://mid.gmane.org/<MSGID>",
);
-@{ $c{ControlAllow} } = qw/ian.campbell@citrix.com ijc@hellion.org.uk/;
+# Users who are allowed to access privileged control commands.
+# $c{ControlAllowPath} takes precendence over $c{ControlAllow}.
+#
+# ControlAllowPath should contain the path to a file with one email address per
+# line.
+$c{ControlAllowPath} = "/srv/xen-devel-bugs/etc/control.users";
+# Otherwise ControlAllow should be an array of email addresses
+#@{ $c{ControlAllow} } = qw/admin@example.com/;
# Severity levels, in decending order of criticality
@{ $c{SeverityLevels} } = qw/blocker critical normal wishlist/;