From f3d0e746c6a35c8600b91af99958a52cbc114a4b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 18 Sep 2021 09:33:32 +0000 Subject: lei up: automatically use dt: for remote externals Since we can't use maxuid for remote externals, automatically maintaining the last time we got results and appending a dt: range to the query will prevent HTTP(S) responses from getting too big. We could be using "rt:", but no stable release of public-inbox supports it, yet, so we'll use dt:, instead. By default, there's a two day fudge factor to account for MTA downtime and delays; which is hopefully enough. The fudge factor may be changed per-invocation with the --remote-fudge-factor=INTERVAL option Since different externals can have different message transport routes, "lastresult" entries are stored on a per-external basis. --- lib/PublicInbox/LeiUp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiUp.pm') diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index 4637cb46..abb05d46 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -45,7 +45,7 @@ sub up1 ($$) { ref($v) and return $lei->fail("multiple values of $c in $f"); $lei->{opt}->{$k} = $v; } - $lei->{lss} = $lss; # for LeiOverview->new + $lei->{lss} = $lss; # for LeiOverview->new and query_remote_mboxrd my $lxs = $lei->lxs_prepare or return; $lei->ale->refresh_externals($lxs, $lei); $lei->_start_query; -- cgit v1.2.3-24-ge0c7