diff options
author | Eric Wong <e@80x24.org> | 2019-01-16 04:51:28 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-16 04:51:28 +0000 |
commit | d66aa534a4a7506cfc5cfab49d1e09f8db8be3dd (patch) | |
tree | 5d65d49ac983aec42ecf1f2ee1bdbcea588d2c07 /lib | |
parent | 1f4ce0de1cd70b905dc2cd40628785b01060738c (diff) | |
download | public-inbox-d66aa534a4a7506cfc5cfab49d1e09f8db8be3dd.tar.gz |
Alpine is apparently stricter than other clients I've tried w.r.t. using CRLF for headers. So do the same thing we do for bodies to ensure we only emit CRLFs and no bare LFs. Reported-by: Wang Kang <i@scateu.me> https://public-inbox.org/meta/alpine.DEB.2.21.99.1901161043430.29788@la.scateu.me/
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/NNTP.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 623ffd35..63d5870b 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -515,6 +515,7 @@ sub set_art { sub _header ($) { my $hdr = $_[0]->header_obj->as_string; utf8::encode($hdr); + $hdr =~ s/(?<!\r)\n/\r\n/sg; $hdr } |