added log/show_message, dropped .pl suffix
to be consistent with other QP scripts
This commit is contained in:
parent
01d7c7e228
commit
4ded6b97d4
@ -5,7 +5,7 @@ use warnings;
|
||||
|
||||
use Data::Dumper;
|
||||
|
||||
my $QPDIR = get_qp_dir();
|
||||
my $QPDIR = '/usr/home/qpsmtpd/smtpd';
|
||||
my $logfile = "$QPDIR/log/main/current";
|
||||
|
||||
my $is_ip = 0;
|
||||
@ -20,7 +20,7 @@ if ( $search =~ /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/ ) {
|
||||
$is_ip++;
|
||||
};
|
||||
|
||||
open my $LOG, '<', $logfile or die "unable to open $logfile\n";
|
||||
open my $LOG, '<', $logfile;
|
||||
|
||||
if ( $is_ip ) { # look for the connection start message for the IP
|
||||
my $ip_matches;
|
||||
|
Loading…
Reference in New Issue
Block a user