Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored removing duplicate from header list #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NJ261
Copy link

@NJ261 NJ261 commented May 31, 2021

Currently, if header_to_hash_list doesn't contain any duplicate items then it won't get all the items when it goes through the loop. Hence, in the end, headers would not have all the tags. This would fix the issue.

header_to_hash_list = ['mime-version', 'from', 'date', 'message-id', 'subject', 'to']

content_in_header_to_hash_list_after_for_loop = ['from', 'message-id', 'to']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant