diff options
author | Eric Wong <e@80x24.org> | 2021-01-01 04:58:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-01 04:58:39 +0000 |
commit | d49c0789d208e66121bfb68ff0c48d7612a7cd8e (patch) | |
tree | f59296dc3c63c8ca1dd8445821f43777333ba30e /lib/PublicInbox/Import.pm | |
parent | 8862c33ae93eea1af6246cd3c7a81e0a122186bf (diff) | |
parent | 0c8106d44f317175e122744b43407bf067183175 (diff) | |
download | public-inbox-d49c0789d208e66121bfb68ff0c48d7612a7cd8e.tar.gz |
* origin/lei: (28 commits) lei: rename proposed "query" command to "q", add JSON output lei_xsearch: cross-(inbox|extindex) search lei: extinbox: start implementing in config file lei: revise output routines lei: support for -$DIGIT and -$SIG CLI switches build: add lei.sh + "make symlink-install" target lei: start working on bash completion lei: drop $SIG{__DIE__}, add oneshot fallbacks lei: restore default __DIE__ handler for event loop on_destroy: generic localized END lei_store: keyword extraction from mbox and Maildir lei_store: relax GIT_COMMITTER_IDENT check lei: micro-optimize startup time lei: rename $client => $self and bless lei: help: show actual paths being operated on lei: support pass-through for `lei config' rename LeiDaemon package to PublicInbox::LEI search: simplify initialization, add ->xdb_shards_flat lei_store: simplify git_epoch_max, slightly lei: support `daemon-env' for modifying long-lived env ...
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r-- | lib/PublicInbox/Import.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index e0a84bfd..079afc5f 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -406,6 +406,10 @@ sub add { if ($smsg) { $smsg->{blob} = $self->get_mark(":$blob"); $smsg->{raw_bytes} = $n; + if (my $oidx = delete $smsg->{-oidx}) { # used by LeiStore + return if $oidx->blob_exists($smsg->{blob}); + } + # XXX do we need this? it's in git at this point $smsg->{-raw_email} = \$raw_email; } my $ref = $self->{ref}; |