X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FMbox.pm;h=5693d30b1c5ab80ce08fe56f694ffd84b94d7522;hb=95bdac7f09c69036efed537a4d03d5bdd2ae4eb6;hp=1f9ac6ec88cfd1a0989a0da5f7d44ab8590230cd;hpb=f2364c5765f0692d2f1e82b61804359a38f3fdfc;p=public-inbox.git
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index 1f9ac6ec..5693d30b 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -1,4 +1,4 @@
-# Copyright (C) 2015-2019 all contributors
+# Copyright (C) 2015-2020 all contributors
# License: AGPL-3.0+
# Streaming (via getline) interface for formatting messages as an mboxrd.
@@ -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 {