From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86566 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: rfc2047 decoding Date: Thu, 07 Jan 2016 00:02:08 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87y4c2b9cf.fsf@tullinup.koldfront.dk> References: <8737uawenw.fsf@tullinup.koldfront.dk> <877fjmcpdg.fsf@nemi.mork.no> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1452121540 23514 80.91.229.3 (6 Jan 2016 23:05:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2016 23:05:40 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34793@lists.math.uh.edu Thu Jan 07 00:05:28 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGx8w-00032H-1T for ding-account@gmane.org; Thu, 07 Jan 2016 00:05:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aGx8h-0008FN-Fq; Wed, 06 Jan 2016 17:05:11 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aGx8f-0008F1-Qa for ding@lists.math.uh.edu; Wed, 06 Jan 2016 17:05:09 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aGx8e-0006GP-Du for ding@lists.math.uh.edu; Wed, 06 Jan 2016 17:05:09 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aGx8c-0002F7-EY for ding@gnus.org; Thu, 07 Jan 2016 00:05:06 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGx8b-0002iL-CJ for ding@gnus.org; Thu, 07 Jan 2016 00:05:05 +0100 Original-Received: from virgil.koldfront.dk ([2.110.51.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Jan 2016 00:05:05 +0100 Original-Received: from asjo by virgil.koldfront.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Jan 2016 00:05:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: virgil.koldfront.dk OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86566 Archived-At: Bjørn writes: >> Perl's Encode::MIME::Header decodes it to the second line. But it also >> encoded the text in the first place, so I guess it {s,w}ould roundtrip. > The "=?UTF-8?Q?l=20DSB?='" part of the header is invalid: > > Ordinary ASCII text and 'encoded-word's may appear together in the > same header field. However, an 'encoded-word' that appears in a > header field defined as '*text' MUST be separated from any adjacent > 'encoded-word' or 'text' by 'linear-white-space'. Great, I shall report that as a bug against Encode::MIME::Header. I knew this was where to find experts in rfc 2047 :-) E:M:H also encodes other things weirdly, like adding "\n " at the beginning of a line of ascii(!) Thanks! Adam -- "With the possible exception of things like box Adam Sjøgren scores, race results, and stock market tabulations, asjo@koldfront.dk there is no such thing as Objective Journalism. The phrase itself is a pompous contradiction in terms."