about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiSavedSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-19 08:52:10 +0000
committerEric Wong <e@80x24.org>2021-04-19 20:15:55 +0000
commit763c77082ecd34385ac48edc59aa6de52a472e75 (patch)
treed1e783efeb6f10abf412fc61f85c10b7c20f2e4e /lib/PublicInbox/LeiSavedSearch.pm
parent560f9442d058925dd3a8171e8739826768188288 (diff)
downloadpublic-inbox-763c77082ecd34385ac48edc59aa6de52a472e75.tar.gz
It's conceivable a user will want to erase all previous
results but still rerun/refresh a search to get new results.
We probably won't support prune functionality, here, and
instead require explicit removal of saved searches.
Diffstat (limited to 'lib/PublicInbox/LeiSavedSearch.pm')
-rw-r--r--lib/PublicInbox/LeiSavedSearch.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/PublicInbox/LeiSavedSearch.pm b/lib/PublicInbox/LeiSavedSearch.pm
index d67622c9..94920a4e 100644
--- a/lib/PublicInbox/LeiSavedSearch.pm
+++ b/lib/PublicInbox/LeiSavedSearch.pm
@@ -61,11 +61,8 @@ sub list {
         bless $cfg, 'PublicInbox::Config';
         my $out = $cfg->get_all('lei.q.output') or return ();
         map {;
-                if (s!\A(?:maildir|mh|mbox.+|mmdf):!!i) {
-                        -e $_ ? $_ : (); # TODO auto-prune somewhere?
-                } else { # IMAP, maybe JMAP
-                        $_;
-                }
+                s!\A(?:maildir|mh|mbox.+|mmdf):!!i;
+                $_;
         } @$out
 }