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

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

c# - Getting per connection bandwidth statistics -

security - SQL injection and web log files -