]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiStore.pm
lei_to_mail: write directly to mail_sync.sqlite3
[public-inbox.git] / lib / PublicInbox / LeiStore.pm
index f1316229bb3205c9395c345de49d4f89f003561b..66049dfeac84c0cb36cd124b331c85a36395b965 100644 (file)
@@ -265,11 +265,6 @@ sub _lms_rw ($) { # it is important to have eidx processes open before lms
        };
 }
 
-sub set_sync_info {
-       my ($self, $oidhex, $folder, $id) = @_;
-       _lms_rw($self)->set_src(pack('H*', $oidhex), $folder, $id);
-}
-
 sub _remove_if_local { # git->cat_async arg
        my ($bref, $oidhex, $type, $size, $self) = @_;
        $self->{im}->remove($bref) if $bref;
@@ -349,7 +344,7 @@ sub add_eml {
        $smsg->{-eidx_git} = $eidx->git if !$self->{-fake_im};
        my $im_mark = $im->add($eml, undef, $smsg);
        if ($vmd && $vmd->{sync_info}) {
-               set_sync_info($self, $smsg->{blob}, @{$vmd->{sync_info}});
+               _lms_rw($self)->set_src($smsg->oidbin, @{$vmd->{sync_info}});
        }
        unless ($im_mark) { # duplicate blob returns undef
                return unless wantarray;