Skip to content

Commit

Permalink
Silence a warning if feed file is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
bigio committed Feb 11, 2021
1 parent 8391c00 commit d80e721
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Esp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use Mail::SpamAssassin::PerMsgStatus;
use vars qw(@ISA);
our @ISA = qw(Mail::SpamAssassin::Plugin);

my $VERSION = 1.2;
my $VERSION = 1.2.1;

sub dbg { Mail::SpamAssassin::Plugin::dbg ("Esp: @_"); }

Expand Down Expand Up @@ -246,6 +246,8 @@ sub _read_configfile {

local *F;

return if not defined $conf->{$feed};

my @feed_files = split(/,/, $conf->{$feed});
foreach my $feed_file ( @feed_files ) {
if ( defined($feed_file) && ( -f $feed_file ) ) {
Expand Down

0 comments on commit d80e721

Please sign in to comment.