about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiStore.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-10 13:23:43 +0000
committerEric Wong <e@80x24.org>2021-03-10 23:39:16 -0400
commit0c42d57cc29917b731d4a4918f9b2d666ee230e6 (patch)
tree814444e3df4896ae7b1ed055c18eb32162613218 /lib/PublicInbox/LeiStore.pm
parent2bc961811c57bef3feef24244bf20546f3754d4f (diff)
downloadpublic-inbox-0c42d57cc29917b731d4a4918f9b2d666ee230e6.tar.gz
Having a one-off Maildir functionality in LeiStore doesn't seem
worth the maintenance burden, especially given an upcoming
change to skip trashed messages.

I expect this will hurt performance slightly with extra IPC
overhead for the socket copy, but "lei import" may eventually
become rare or at least not hit messages redundantly.
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r--lib/PublicInbox/LeiStore.pm6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm
index 92c29100..6ace2ad1 100644
--- a/lib/PublicInbox/LeiStore.pm
+++ b/lib/PublicInbox/LeiStore.pm
@@ -213,12 +213,6 @@ sub set_eml {
         add_eml($self, $eml, @kw) // set_eml_keywords($self, $eml, @kw);
 }
 
-sub set_eml_from_maildir {
-        my ($self, $f, $set_kw) = @_;
-        my $eml = eml_from_path($f) or return;
-        set_eml($self, $eml, $set_kw ? maildir_keywords($f) : ());
-}
-
 sub checkpoint {
         my ($self, $wait) = @_;
         if (my $im = $self->{im}) {