parsing - python email get values for multiple headers of the same name -


i'm using python's email.message_from_string parse raw email message. however, message has multiple "recieved" headers in it. when call message.keys() several recieved headers. when try message.get("recieved") "" null string. how values of instances of header?

get_all(name[, failobj])

return list of values field named name. if there no such named headers in message, failobj returned (defaults none).

source: http://docs.python.org/library/email.message.html#email.message.message.get_all


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -