mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fixed autoreply script
This commit is contained in:
@@ -60,13 +60,6 @@ if ($header{'from'} =~ /postmaster|mailer-daemon/i) {
|
||||
exit 0;
|
||||
}
|
||||
|
||||
# Check if we are within the requested time range
|
||||
if ($header{'Autoreply-Start'} && time() < $header{'Autoreply-Start'} ||
|
||||
$header{'Autoreply-End'} && time() > $header{'Autoreply-End'}) {
|
||||
# Nope .. so do nothing
|
||||
exit 0;
|
||||
}
|
||||
|
||||
# work out the correct to address
|
||||
@to = ( &split_addresses($header{'to'}),
|
||||
&split_addresses($header{'cc'}),
|
||||
@@ -142,6 +135,15 @@ if ($track_replies) {
|
||||
delete($rheader{'Reply-Tracking'});
|
||||
delete($rheader{'Reply-Period'});
|
||||
|
||||
# Check if we are within the requested time range
|
||||
if ($rheader{'Autoreply-Start'} && time() < $rheader{'Autoreply-Start'} ||
|
||||
$rheader{'Autoreply-End'} && time() > $rheader{'Autoreply-End'}) {
|
||||
# Nope .. so do nothing
|
||||
exit 0;
|
||||
}
|
||||
delete($rheader{'Autoreply-Start'});
|
||||
delete($rheader{'Autoreply-End'});
|
||||
|
||||
# Check if there is a deny list, and if so don't send a reply
|
||||
@fromsplit = &split_addresses($header{'from'});
|
||||
if (@fromsplit) {
|
||||
|
||||
Reference in New Issue
Block a user