about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiUp.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-23 01:45:12 +0000
committerEric Wong <e@80x24.org>2021-04-23 04:03:00 -0400
commit7af47fb992e047f149b0b36c37e3a4984d34e139 (patch)
tree3348c62303ce57b7481f9077dde20681d3b36412 /lib/PublicInbox/LeiUp.pm
parent6840164c54895eee776f95ceaeae0fccab0880aa (diff)
downloadpublic-inbox-7af47fb992e047f149b0b36c37e3a4984d34e139.tar.gz
lei: saved searches support --dedupe=<mid|oid>
This is less surprising in case users are used to using --dedupe=
without --save.
Diffstat (limited to 'lib/PublicInbox/LeiUp.pm')
-rw-r--r--lib/PublicInbox/LeiUp.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm
index 0fb9698b..f4ff070b 100644
--- a/lib/PublicInbox/LeiUp.pm
+++ b/lib/PublicInbox/LeiUp.pm
@@ -25,6 +25,10 @@ sub up1 ($$) {
         my $o = $lei->{opt}->{output} = $lss->{-cfg}->{'lei.q.output'} //
                 return $lei->fail("lei.q.output unset in $f");
         ref($o) and return $lei->fail("multiple values of lei.q.output in $f");
+        if (defined(my $dd = $lss->{-cfg}->{'lei.q.dedupe'})) {
+                $lss->translate_dedupe($lei, $dd) or return;
+                $lei->{opt}->{dedupe} = $dd;
+        }
         for my $k (qw(only include exclude)) {
                 my $v = $lss->{-cfg}->get_all("lei.q.$k") // next;
                 $lei->{opt}->{$k} = $v;