Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Header properties are gross and repetitive #49

Open
TheElementalOfDestruction opened this issue Jul 29, 2019 · 0 comments
Open

Header properties are gross and repetitive #49

TheElementalOfDestruction opened this issue Jul 29, 2019 · 0 comments
Assignees

Comments

@TheElementalOfDestruction

Many properties are based off of the header first (like to, cc, bcc, sender, etc.) and have a repeated section of code at the beginning to try to get themselves from the header first. I'm going to consolidate a lot of code into a "getFromHeader" function for trying to get itself from the header first. This should remove a decent amount of lines and make it easier to make new properties that are much smaller.

The function will look like this:

def tryGetFromHeader(self, name, alternative = None)

Where name is the name of the name of the property in the header and alternative is the path(s) to the properties in their files

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

No branches or pull requests

1 participant