]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Import.pm
use Eml (or MIME) objects for all indexing paths
[public-inbox.git] / lib / PublicInbox / Import.pm
index 052b145b2606123599b0aa451ae971c5ae84d1e2..8a06a661654b861975efbd88cc0df7fdcb010122 100644 (file)
@@ -412,12 +412,10 @@ sub add {
        # v2: we need this for Xapian
        if ($smsg) {
                $smsg->{blob} = $self->get_mark(":$blob");
-               $smsg->{raw_bytes} = $n;
+               $smsg->set_bytes($raw_email, $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};
        my $commit = $self->{mark}++;