aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-06-19 18:46:04 -0400
committerBrian Cully <bjc@kublai.com>2022-06-19 18:46:04 -0400
commite8235e7264e467f6dd64587fbd26faad2f74cbbc (patch)
treed7debdb63e8f300c2f7fdb6f35d14c191a0408d4 /lib
parentd5854dd65ddc3ab6638794b2554e7f86a358b89f (diff)
downloadspamcat-e8235e7264e467f6dd64587fbd26faad2f74cbbc.tar.gz
spamcat-e8235e7264e467f6dd64587fbd26faad2f74cbbc.zip
Show remaining in Subject.
Diffstat (limited to 'lib')
-rw-r--r--lib/SpamCat.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SpamCat.pm b/lib/SpamCat.pm
index 7dff474..4807149 100644
--- a/lib/SpamCat.pm
+++ b/lib/SpamCat.pm
@@ -48,7 +48,7 @@ sub deliver {
return if $count == 0;
if ($count > 0) {
- my $count_str = '[' . $count . '/' . $self->{default_count} . ']';
+ my $count_str = '[' . ($self->{default_count} - $count + 1) . '/' . $self->{default_count} . ']';
my $new_subject = $email->header('Subject');
if ($new_subject) {
$new_subject .= ' - ' . $count_str;