From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31252 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: word-encoder creates short lines; possible bug in encoder Date: 01 Jun 2000 10:33:20 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <2nln0psc7j.fsf@tiger.jia.vnet> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035167688 12980 80.91.224.250 (21 Oct 2002 02:34:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:34:48 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id AFDC0D051E for ; Thu, 1 Jun 2000 10:35:05 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id JAC20244; Thu, 1 Jun 2000 09:31:15 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 01 Jun 2000 09:30:17 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA29151 for ; Thu, 1 Jun 2000 09:30:07 -0500 (CDT) Original-Received: from shenghuo.dhs.org (d185d1e79.rochester.rr.com [24.93.30.121]) by mailhost.sclp.com (Postfix) with ESMTP id 57187D051E for ; Thu, 1 Jun 2000 10:30:31 -0400 (EDT) Original-Received: (from zsh@localhost) by shenghuo.dhs.org (8.10.0/8.10.0) id e51EXKn23646; Thu, 1 Jun 2000 10:33:20 -0400 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: Vladimir Volovich's message of "01 Jun 2000 13:54:41 +0400" Original-Lines: 38 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31252 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31252 >>>>> "VV" == Vladimir Volovich writes: VV> Hi! VV> 1. when gnus uses encoded-word encoding (of type B or Q) in headers, VV> it tends to create more short lines than necessary. Say, i received a VV> message with subject: VV> Subject: =?koi8-r?B?Iu7P18HRINDB0sHEycfNwSDEzNEg09TB0s/KINTFz9LJySI=?= VV> when replying to this message, gnus created a subject like: VV> Subject: Re: "=?koi8-r?b?7s/XwdEg0MHSwcTJx83B?= VV> =?koi8-r?b?IMTM0SDT1MHSz8og1MXP?= VV> =?koi8-r?b?0snJ?=" VV> it seems that gnus used AT LEAST one extra line, creating short lines VV> in headers. Is it possible to change the function which encodes VV> headers to use optimal line number (i.e. try to use the smallest VV> possible number of lines, breaking only really wide lines)? According to RFC2047, Each 'encoded-word' MUST represent an integral number of characters. A multi-octet character may not be split across adjacent 'encoded-word's. It is difficult to decide where to break the line. For the safety reason, the subject is broken into several lines. If you can figure out the optimal algorithm to break wide lines, that's great. VV> 2. AFAIR, RFC says that encoded-word should not appear inside VV> quotes. is the above header (created by gnus) correct in this VV> respect? i mean "=?koi8-r?b? .... ?=" should the quotes be VV> "hidden" inside encoded-word? It is a bug. Shenghuo