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
Post a Comment