From 575c0485c4939922bab313da666a8a18d80c065e Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 12 Jun 2022 14:54:03 -0400 Subject: Return default email count for unknown senders on CLI. --- bin/spamcat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/spamcat') diff --git a/bin/spamcat b/bin/spamcat index 8549d95..25f04d2 100755 --- a/bin/spamcat +++ b/bin/spamcat @@ -94,7 +94,7 @@ if ($#ARGV >= 0) { } elsif ($cmd eq 'get') { my $sender = shift @ARGV; pod2usage(1) unless $sender; - my $count = $sch->get_count($sender); + my $count = $sch->get_count($sender) || $conf{default_count}; print "$sender has $count messages remaining.\n"; } elsif ($cmd eq 'set') { my ($sender, $count) = @ARGV; -- cgit v1.2.3