lib/PublicInbox/Smsg.pm | 6 ++++-- diff --git a/lib/PublicInbox/Smsg.pm b/lib/PublicInbox/Smsg.pm index 260ce6bb065e930adfd9030d50f5a06359e809ce..2026c7d900f65c057ba4a1d8a4bea6c0c9ca400e 100644 --- a/lib/PublicInbox/Smsg.pm +++ b/lib/PublicInbox/Smsg.pm @@ -115,8 +115,10 @@ } $self->{$f} = $val if $val ne ''; } $sync //= {}; - $self->{-ds} = [ my @ds = msg_datestamp($hdr, $sync->{autime}) ]; - $self->{-ts} = [ my @ts = msg_timestamp($hdr, $sync->{cotime}) ]; + my @ds = msg_datestamp($hdr, $sync->{autime} // $self->{ds}); + my @ts = msg_timestamp($hdr, $sync->{cotime} // $self->{ts}); + $self->{-ds} = \@ds; + $self->{-ts} = \@ts; $self->{ds} //= $ds[0]; # no zone $self->{ts} //= $ts[0]; $self->{mid} //= mids($hdr)->[0];