From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52035 Path: main.gmane.org!not-for-mail From: =?iso-8859-1?q?Bj=F8rn?= Mork Newsgroups: gmane.emacs.gnus.general Subject: Re: Another problem with rfc2047 encoding Date: Thu, 01 May 2003 10:15:57 +0200 Organization: Dogs on Debate Sender: ding-owner@lists.math.uh.edu Message-ID: References: <8765ovcgt1.fsf-theta-@daphne.gnuu.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051776910 8640 80.91.224.249 (1 May 2003 08:15:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 May 2003 08:15:10 +0000 (UTC) Original-X-From: ding-owner+M578@lists.math.uh.edu Thu May 01 10:15:08 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19B9Dg-0002F4-00 for ; Thu, 01 May 2003 10:15:08 +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 19B9Ed-0007A6-00; Thu, 01 May 2003 03:16:07 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19B9EY-00079v-00 for ding@lists.math.uh.edu; Thu, 01 May 2003 03:16:02 -0500 Original-Received: (qmail 45420 invoked by alias); 1 May 2003 08:16:02 -0000 Original-Received: (qmail 45415 invoked from network); 1 May 2003 08:16:02 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by sclp3.sclp.com with SMTP; 1 May 2003 08:16:02 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 19B9Mr-0001rn-00 for ; Thu, 01 May 2003 10:24:37 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 42 Original-NNTP-Posting-Host: rasputin.mork.no Original-X-Trace: quimby.gnus.org 1051777477 7146 148.122.252.5 (1 May 2003 08:24:37 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 1 May 2003 08:24:37 GMT In-Reply-To: <8765ovcgt1.fsf-theta-@daphne.gnuu.de> (Thomas =?iso-8859-1?q?H=FChn's?= message of "Thu, 01 May 2003 08:49:58 +0200") User-Agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:WBS19buzbZXopmytN4lHCIepTyo= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52035 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52035 ding@daphne.gnuu.de (Thomas Hühn) writes: > In the following article... > > From: Ralf =?ISO-8859-1?Q?D=F6blitz?= <=?iso-8859-1?q?d=F6blitz?=@doeblitz.net> > Newsgroups: de.admin.news.misc > Subject: Re: Reflektoren und RFC822 > Date: 16 Apr 2003 19:01:20 GMT > Message-ID: > > ...the localpart seems to be interpreted, though it shouldn't. > > RFC 2047 states in section 5(3): > "An 'encoded-word' MUST NOT appear in any portion of an 'addr-spec'." True, but I wonder... How should Gnus handle an illegal address like that? Quote it, warn the user and try to send anyway if the user insists? Or just refuse it unconitionally to avoid having people believe they can get away with such addresses? But there are cases where Gnus will happily violate RFC2047 even when fed valid input. For example, if I reply to myself (not that I really *do* that :-), Gnus will create an In-Reply-To field like this: In-Reply-To: =?iso-8859-1?q?(Bj=F8rn?= Mork's message of "Thu, 01 May 2003 10:00:22 +0200") The In-Reply-To field is a structured field, and the text added after the message-id is a comment. Which is perfectly OK, given that CFWS is allowed there. But when encoding it, Gnus screws up and the result is a violation of RFC2047 and RFC2822. The comment delimiters should not be part of the encoded word. One strange thing to notice is that Gnus will correctly encode a comment in the From field (and possibly other structured fields?) I don't know why. Bjørn -- It takes a homosexual sexist like you to say that you're religious.