[Email-SIG] email.header.decode_header eats my spaces
Mark Sapiro
mark at msapiro.net
Thu Oct 8 05:40:13 CEST 2009
----- Original Message ---------------
Subject: [Email-SIG] email.header.decode_header eats my spaces
From: 7073049749 at mymetropcs.com
Date: 6 Sep 09 02:18:14 -0500
To: email-sig at python.org
If you're talking about spaces between encoded words as in the space
between the ?= and the =? in
Subject: =?iso-8859-1?q?Hello?= =?iso-8859-1?q?World?=
it's supposed to. RFC 2047, section 6.2 says in part
When displaying a particular header field that contains multiple
'encoded-word's, any 'linear-white-space' that separates a pair of
adjacent 'encoded-word's is ignored. (This is to allow the use of
multiple 'encoded-word's to represent long strings of unencoded text,
without having to separate 'encoded-word's where spaces occur in the
unencoded text.)
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Email-SIG
mailing list