From e8235e7264e467f6dd64587fbd26faad2f74cbbc Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 19 Jun 2022 18:46:04 -0400 Subject: Show remaining in Subject. --- lib/SpamCat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3