about summary refs log tree commit homepage
path: root/lib/PublicInbox/Eml.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Eml.pm')
-rw-r--r--lib/PublicInbox/Eml.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Eml.pm b/lib/PublicInbox/Eml.pm
index 1fecd41b..571edc5c 100644
--- a/lib/PublicInbox/Eml.pm
+++ b/lib/PublicInbox/Eml.pm
@@ -129,7 +129,7 @@ sub new {
 sub new_sub {
         my (undef, $ref) = @_;
         # special case for messages like <85k5su9k59.fsf_-_@lola.goethe.zz>
-        $$ref =~ /\A(\r?\n)/s or goto &new;
+        $$ref =~ /\A(\r?\n)/s or return new(undef, $ref);
         my $hdr = substr($$ref, 0, $+[0], ''); # sv_chop on $$ref
         bless { hdr => \$hdr, crlf => $1, bdy => $ref }, __PACKAGE__;
 }