From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53936 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: rfc2047.el bug? Date: Thu, 11 Sep 2003 02:40:57 +0200 Organization: http://purl.org/harder/ Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1063241314 14242 80.91.224.253 (11 Sep 2003 00:48:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2003 00:48:34 +0000 (UTC) Original-X-From: ding-owner+M2476@lists.math.uh.edu Thu Sep 11 02:48:32 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xFdQ-0001sV-00 for ; Thu, 11 Sep 2003 02:48:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19xFcq-0001Pu-00; Wed, 10 Sep 2003 19:47:56 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19xFci-0001Po-00 for ding@lists.math.uh.edu; Wed, 10 Sep 2003 19:47:48 -0500 Original-Received: (qmail 52199 invoked by alias); 11 Sep 2003 00:47:48 -0000 Original-Received: (qmail 52193 invoked from network); 11 Sep 2003 00:47:48 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by sclp3.sclp.com with SMTP; 11 Sep 2003 00:47:48 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 19xFdH-0004yx-00 for ; Thu, 11 Sep 2003 02:48:23 +0200 Original-To: ding@gnus.org Original-Path: localhost.localdomain!nobody Original-Newsgroups: gnus.ding Original-Lines: 39 Original-NNTP-Posting-Host: 0xc3d7e087.esnxr4.ras.tele.dk Original-X-Trace: quimby.gnus.org 1063241303 19137 195.215.224.135 (11 Sep 2003 00:48:23 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 11 Sep 2003 00:48:23 GMT X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; writes: > Gnus sometimes encodes a Japanese-English mixture text to the > line length exceeding 76 characters. For example: > > Subject: $B > Subject: =?iso-2022-jp?b?GyRCPHcbKEJqdSAbJEI4QhsoQmdlIBskQkw1GyhCbXUgGyRCPHcbKEJqdQ==?= > =?iso-2022-jp?b?IBskQjhCGyhCZ2UgGyRCTDUbKEJtdSAbJEI4XhsoQmdvIBskQjllGyhCaw==?= > =?iso-2022-jp?b?b3U=?= Hey, I can make an even worse example :-) --=-=-= Content-Type: text/plain; charset=iso-2022-cn-ext Content-Transfer-Encoding: 8bit Subject: $+IO!<$+MO!~$+IO!<$+MO!~$+IO!<$+MO!~$+IO!<$+MO!~$+IO!<$+MO!~$+IO!<$+MO!~$+IO!<$+MO!~$+IO!< Subject: =?iso-2022-cn-ext?b?GyQrSRtPITwbJCtNG08hfhskK0kbTyE8GyQrTRtPIX4bJCtJG08hPBskK00bTyF+GyQrSRtPITwbJCtNG08hfhskK0kbTyE8GyQrTRtPIX4bJCtJG08hPBskK00bTyF+GyQrSRtPITwbJCtNG08hfhskK0kbTyE8?= No less than 191 characters! Oh boy, this means that we'll have to split the header for every 4 characters in some cases. I've checked in a fix. It * Assumes a factor 8 worst case expansion for everything with B in `rfc2047-charset-encoding-alist' where I didn't know better. It's true for iso-2022-cn-ext -- if someone knows better values for other charsets, please fill them in. * Only fixes the 75 char limit on encoded-words. It's still possible to exceed the 76 char line length limit, although less likely. --=-=-=--