From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34841 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: bug in encoded-word encoding Date: 18 Feb 2001 08:55:21 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <2nbss0umd2.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 1035170689 32364 80.91.224.250 (21 Oct 2002 03:24:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:24:49 +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 0204BD049E for ; Sun, 18 Feb 2001 08:55:09 -0500 (EST) 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 HAC24394; Sun, 18 Feb 2001 07:55:02 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 18 Feb 2001 07:54:22 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id HAA03333 for ; Sun, 18 Feb 2001 07:54:12 -0600 (CST) Original-Received: from zsh.yi.org (roc-24-93-30-91.rochester.rr.com [24.93.30.91]) by mailhost.sclp.com (Postfix) with ESMTP id 5EB89D049E for ; Sun, 18 Feb 2001 08:54:41 -0500 (EST) Original-Received: (from zsh@localhost) by zsh.yi.org (8.11.0/8.10.0) id f1IDtMl01721; Sun, 18 Feb 2001 08:55:22 -0500 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: (vvv@vsu.ru's message of "18 Feb 2001 14:46:46 +0300") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.99 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 46 Xref: main.gmane.org gmane.emacs.gnus.general:34841 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34841 vvv@vsu.ru writes: > Hi, > > i wrote: > > > sorry for wrong quote from RFC. i wonder, is this still a buggy > > behavior? > > looks like yes: > > RFC2047> Ordinary ASCII text and 'encoded-word's may appear together in the > RFC2047> same header field. However, an 'encoded-word' that appears in a > RFC2047> header field defined as '*text' MUST be separated from any adjacent > RFC2047> 'encoded-word' or 'text' by 'linear-white-space'. You use a wrong quote. It should be the following one. ,----[ RFC2047 ] | (3) As a replacement for a 'word' entity within a 'phrase', for example, | one that precedes an address in a From, To, or Cc header. The ABNF | definition for 'phrase' from RFC 822 thus becomes: | | phrase = 1*( encoded-word / word ) | | In this case the set of characters that may be used in a "Q"-encoded | 'encoded-word' is restricted to: . An 'encoded-word' that appears within a | 'phrase' MUST be separated from any adjacent 'word', 'text' or | 'special' by 'linear-white-space'. `---- Since it is a phrase, special characters ("." and others) must be in quoted string to use within a word (see RFC 822). But there may be another bug, encoded words in a quoted string. I am not sure how to encode a quoted string with non-ASCII characters. Anyone knows? ShengHuo -- (setq gnus-posting-styles '((".*" (signature (format "(setq gnus-posting-styles '%S)" gnus-posting-styles)))))