Bugs item #1693546, was opened at 2007-04-03 14:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1693546&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Anders Hammarquist (iko)
Assigned to: Nobody/Anonymous (nobody)
Summary: email.Message set_param rfc2231 encoding incorrect
Initial Comment:
Reading the ABNF for the extended parameter values in RFC2231 reveals that they
should not be quoted:
extended-initial-value := [charset] "'" [language] "'"
extended-other-values
extended-other-values := *(ext-octet / attribute-char)
however, set_param (really _formatparam) will always quote them unless requote
is set to false. The fix is probably to force quote in _formatparam to False if
faced with RFC2231 values, since they should never be quoted (and should not
contain characters requiring quoting),
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1693546&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com