about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index c295b267..bd1489e3 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -334,6 +334,12 @@ sub smsg_mime {
         }
 }
 
+sub smsg_eml {
+        my ($self, $smsg) = @_;
+        my $bref = msg_by_smsg($self, $smsg) or return;
+        PublicInbox::Eml->new($bref);
+}
+
 sub mid2num($$) {
         my ($self, $mid) = @_;
         my $mm = mm($self) or return;