diff options
author | Eric Wong <e@yhbt.net> | 2020-06-10 07:05:02 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-13 07:55:45 +0000 |
commit | cd389aac52936c82f3416b3ceefe21e1250b8a3e (patch) | |
tree | e68b068c3ec0d7aba3df80304fcb6cb398c1d589 /lib/PublicInbox/Import.pm | |
parent | f77b21173e730a3daa8f5eed6d73835a682b3f04 (diff) | |
download | public-inbox-cd389aac52936c82f3416b3ceefe21e1250b8a3e.tar.gz |
NNTP and IMAP both require CRLF conversions on the wire. They're also the only components which care about $smsg->{bytes}, so store the CRLF-adjusted value in over.sqlite3 and Xapian DBs.. This will allow us to optimize RFC822.SIZE fetch item in IMAP without triggering size mismatch errors in some clients' default configurations (e.g. Mail::IMAPClient), but not most others. It could also fix hypothetical problems with NNTP clients that report discrepancies between overview and article data.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r-- | lib/PublicInbox/Import.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index ab75aa00..af35905b 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -400,7 +400,7 @@ sub add { # v2: we need this for Xapian if ($smsg) { $smsg->{blob} = $self->get_mark(":$blob"); - $smsg->{bytes} = $n; + $smsg->{raw_bytes} = $n; $smsg->{-raw_email} = \$raw_email; } my $ref = $self->{ref}; |