our ($FEXHOME);
our ($spooldir,$durl,$tmpdir,@logdir,$logdir,$docdir,$hostname,$admin,$fra);
our ($keep_default,$recipient_quota,$sender_quota,$fex_yourself);
-our ($sendmail,$mdomain,$fop_auth,$mail_auth,$faillog);
+our ($sendmail,$mdomain,$fop_auth,$mail_auth,$faillog,$amdl);
our ($dkeydir,$ukeydir,$akeydir,$skeydir,$gkeydir,$xkeydir);
our ($MB,$DS);
our $RB; # read POST bytes (total)
if (-x "$FEXHOME/cgi-bin/login") {
print $info_login||$info_1;
}
- print "</body></html>\n";
+ pq(qq(
+ '<p><hr><p>'
+ '<b>'
+ 'Warning: the recipient must not be a mailing list, because after'
+ 'download the file will be no more available!'
+ '</b><br>'
+ 'Contact <a href="mailto:$ENV{SERVER_ADMIN}">fexmaster</a>'
+ 'if you want to fex to a mailing list,'
+ 'he can allow multiple downloads for specific addresses.'
+ '</body></html>'
+ ));
exit;
}
' <p><input type="submit" value="check ID and continue"><p>'
));
if (not $nomail and (
- @local_domains and @local_hosts and ipin($ra,@local_hosts)
- or @local_rdomains and @local_rhosts and
- (not @registration_hosts or ipin($ra,@registration_hosts))
- or @demo
+ @local_domains and @local_hosts or
+ @local_rdomains and @local_rhosts or
+ @demo
)) {
pq(qq(
'You can <a href="/fur">register yourself</a> '
$keep{$to} = $1 if $to =~ /:keep=(\d+)/i;
$autodelete{$to} = $1 if $to =~ /:autodelete=(\w+)/i;
}
+ $autodelete{$to} = 'NO' if $to =~ /$amdl/; # mailing lists, etc
if (-e "$to/\@CAPTIVE") {
my $v;
$v = readlink "$to/\@AUTODELETE" and $autodelete{$to} = $v;
'Content-Length: 0',
""
);
- &reexec;
+ } else {
+ nvt_print(
+ "HTTP/1.1 302 Found",
+ "Location: $ENV{PROTO}://$ENV{HTTP_HOST}/fup",
+ 'Content-Length: 0',
+ ""
+ );
}
+ &reexec;
} elsif ($v eq 'LOCALE' and $vv =~ /^(\w+)$/) {
$locale = $1;
} elsif ($v eq 'REDIRECT' and $vv =~ /^([\w?=]+)$/) {