aboutsummaryrefslogtreecommitdiffstats
path: root/bin/spamcat
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-06-12 14:54:03 -0400
committerBrian Cully <bjc@kublai.com>2022-06-12 14:54:03 -0400
commit575c0485c4939922bab313da666a8a18d80c065e (patch)
tree628c6fbebe80e821704d6d4eb9497dc28a657dc8 /bin/spamcat
parent5a61fd826df757d585966795936058e5136e7414 (diff)
downloadspamcat-575c0485c4939922bab313da666a8a18d80c065e.tar.gz
spamcat-575c0485c4939922bab313da666a8a18d80c065e.zip
Return default email count for unknown senders on CLI.
Diffstat (limited to 'bin/spamcat')
-rwxr-xr-xbin/spamcat2
1 files changed, 1 insertions, 1 deletions
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;