&fatal("$slash_count slashes is too many, in $val",1,$directive_file_contents) if $slash_count > 3;
# Only let them specify one directory directive.
- &fatal("invalid second directory $val, have $info{directory}",1,$directive_file_contents)
+ &fatal("Only one directory directive is allowed per directive file. Error at directory directive: $val",1,$directive_file_contents)
if exists $info{"directory"};
$info{"directory"} = $val; # ok.
my $val = $1; # so far so good
# Only let them specify one filename directive.
- &fatal("invalid second filename $val, have $info{filename}",1,$directive_file_contents)
+ &fatal("Only one filename directive is allowed per directive file. Error at filename directive: $val.",1,$directive_file_contents)
if exists $info{"filename"};
$info{"filename"} = {"value" => $val, "order" => $cnt++}; # ok.
sub mail {
my ($msg) = shift;
my ($send_to_user) = shift;
- my ($subject) = shift;
- $subject ||= '';
+ my ($subject) = shift;
+ $subject ||= '';
my @email_list = ($email_always);
- # Some messages should be sent to the user, some should not
+ # Some messages should be sent to the user, some should not
push (@email_list, @{$info{email}}) if (defined $info{email} && $send_to_user);
# print STDERR "final emails: @email_list\n";
# return @_;
-
+
my $smtp = Net::SMTP->new ("127.0.0.1");
ftp_die("FATAL: SMTP connection failed") unless $smtp;