def get_mail_keys(message, complete=True):
if complete:<EOL><INDENT>log.debug("<STR_LIT>")<EOL>all_headers_keys = {i.lower() for i in message.keys()}<EOL>all_parts = ADDRESSES_HEADERS | OTHERS_PARTS | all_headers_keys<EOL><DEDENT>else:<EOL><INDENT>log.debug("<STR_LIT>")<EOL>all_parts = ADDRESSES_HEADERS | OTHERS_PARTS<EOL><DEDENT>log.debug("<STR_LIT>".format("<STR_LIT:U+002CU+0020>".join(all_parts)))<EOL>return all_parts<EOL>
Given an email.message.Message, return a set with all email parts to get

Args:
    message (email.message.Message): email message object
    complete (bool): if True returns all email headers

Returns:
    set with all email parts