title: Get python getaddresses() to decode encoded-word encoding
body: <pre><code>msg = \
  """To: =?ISO-8859-1?Q?Caren_K=F8lter?= &lt;ck@example.dk&gt;, bob@example.com
  Cc: "James =?ISO-8859-1?Q?K=F8lter?=" &lt;jk@example.dk&gt;
  Subject: hello
  
  message body blah blah blah
  
  """
  
  import email.parser, email.utils
  import itertools
  
  
  parser = email.parser.Parser()
  parsed_message = parser.parsestr(msg)
  
  address_fields = ('to', 'cc')
  addresses = itertools.chain(*(parsed_message.get_all(field) for field in address_fields if parsed_message.has_key(field)))
  address_list = set(email.utils.getaddresses(addresses))
  
  
  print address_list
  </code></pre>
  
  <p>It seems like email.utils.getaddresses() doesn't seem to automatically handle <a href="http://en.wikipedia.org/wiki/MIME#Encoded-Word" rel="nofollow">MIME RFC 2047</a> in address fields.</p>
  
  <p>How can I get the expected result below?</p>
  
  <p><strong>actual result:</strong> </p>
  
  <p><code>set([('', 'bob@example.com'), ('=?ISO-8859-1?Q?Caren_K=F8lter?=', 'ck@example.dk'), ('James =?ISO-8859-1?Q?K=F8lter?=', 'jk@example.dk')])</code></p>
  
  <p><strong>desired result:</strong></p>
  
  <p><code>set([('', 'bob@example.com'), (u'Caren_K\xf8lter', 'ck@example.dk'), (u'James \xf8lter', 'jk@example.dk')])</code></p>