# used for v2, Import and v1 non-SQLite WWW code paths
sub populate {
- my ($self, $hdr, $sync) = @_;
+ my ($self, $hdr, $cmt_info) = @_;
for my $f (qw(From To Cc Subject)) {
my @all = $hdr->header($f);
my $val = join(', ', @all);
}
$self->{$f} = $val if $val ne '';
}
- $sync //= {};
- my @ds = msg_datestamp($hdr, $sync->{autime} // $self->{ds});
- my @ts = msg_timestamp($hdr, $sync->{cotime} // $self->{ts});
+ my @ds = msg_datestamp($hdr, $cmt_info->{autime} // $self->{ds});
+ my @ts = msg_timestamp($hdr, $cmt_info->{cotime} // $self->{ts});
$self->{-ds} = \@ds;
$self->{-ts} = \@ts;
$self->{ds} //= $ds[0]; # no zone
num => $smsg->{num},
mid => $smsg->{mid},
}, 'PublicInbox::Smsg';
- my $sync = { autime => $smsg->{ds}, cotime => $smsg->{ts} };
- $new_smsg->populate($new_mime, $sync);
+ my $cmt_info = { autime => $smsg->{ds}, cotime => $smsg->{ts} };
+ $new_smsg->populate($new_mime, $cmt_info);
$new_smsg->set_bytes($raw, $bytes);
do_idx($self, $new_mime, $new_smsg);
}