diff options
author | Eric Wong <e@80x24.org> | 2020-12-31 13:51:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-01 05:00:39 +0000 |
commit | cb2b5984109b2caad941e3a2c952219890079acc (patch) | |
tree | 30b6f39a13e62bb06320dd39f5a9780a7d6924a8 /lib/PublicInbox/Smsg.pm | |
parent | 657695bf0b30ae8ddaef57739c4d24e5e38afdbf (diff) | |
download | public-inbox-cb2b5984109b2caad941e3a2c952219890079acc.tar.gz |
For personal mail, unsent drafts messages are a common source of messages without Message-IDs.
Diffstat (limited to 'lib/PublicInbox/Smsg.pm')
-rw-r--r-- | lib/PublicInbox/Smsg.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/PublicInbox/Smsg.pm b/lib/PublicInbox/Smsg.pm index 14086538..9db10c64 100644 --- a/lib/PublicInbox/Smsg.pm +++ b/lib/PublicInbox/Smsg.pm @@ -69,7 +69,7 @@ sub psgi_cull ($) { $self; } -# for Import and v1 non-SQLite WWW code paths +# used for v2, Import and v1 non-SQLite WWW code paths sub populate { my ($self, $hdr, $sync) = @_; for my $f (qw(From To Cc Subject)) { @@ -100,9 +100,7 @@ sub populate { $self->{-ts} = [ my @ts = msg_timestamp($hdr, $sync->{cotime}) ]; $self->{ds} //= $ds[0]; # no zone $self->{ts} //= $ts[0]; - - # for v1 users w/o SQLite - $self->{mid} //= eval { mids($hdr)->[0] } // ''; + $self->{mid} //= mids($hdr)->[0]; } # no strftime, that is locale-dependent and not for RFC822 |