$c{AltArchive} = "http://marc.info/?i=<MSGID>";
$c{ControlAddress} = "control@foobugs.example.com";
+
+$c{ControlAllow} = qw/ijc@hellion.org.uk/;
print "Subject: ".$head->get('subject');
print "\n";
+sub validate_from {
+ my $allowed = 0;
+ my @addresses = Mail::Field::AddrList->extract('from', $head )->addresses;
+
+ return 1 if not $c{ControlAllow};
+
+ for my $addr ( @addresses ) {
+ if ( $addr ~~ $c{ControlAllow} ) {
+ $allowed = 1; last;
+ }
+ }
+
+ die unless $allowed;
+}
+
+validate_from;
+
our @reply;
our @bugs;