about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/Mbox.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index 1f9ac6ec..cf93e7db 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -24,11 +24,10 @@ sub subject_fn ($) {
         # no need for full Email::MIME, here
         if ($fn =~ /=\?/) {
                 eval { $fn = Encode::decode('MIME-Header', $fn) };
-                $fn = 'no-subject' if $@;
+                return 'no-subject' if $@;
         }
         $fn =~ s/^re:\s+//i;
-        $fn = to_filename($fn);
-        $fn eq '' ? 'no-subject' : $fn;
+        $fn eq '' ? 'no-subject' : to_filename($fn);
 }
 
 sub mb_stream {