From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: Re: rfc2047 decoding
Date: Thu, 07 Jan 2016 00:02:08 +0100 [thread overview]
Message-ID: <87y4c2b9cf.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <877fjmcpdg.fsf@nemi.mork.no>
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."
next prev parent reply other threads:[~2016-01-06 23:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-06 22:01 Adam Sjøgren
2016-01-06 22:30 ` Bjørn Mork
2016-01-06 23:02 ` Adam Sjøgren [this message]
2016-01-26 20:59 ` Adam Sjøgren
2016-01-07 0:45 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4c2b9cf.fsf@tullinup.koldfront.dk \
--to=asjo@koldfront.dk \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).