email.message.Message.__contains__()

__contains__(name)

Return true if the message object has a field named name. Matching is done case-insensitively and name should not include the trailing colon. Used for the in operator, e.g.:

if 'message-id' in myMessage:
   print('Message-ID:', myMessage['message-id'])
doc_python
2016-10-07 17:32:45
Comments
Leave a Comment

Please login to continue.