Skip to content

Conversation

@Dacid99
Copy link

@Dacid99 Dacid99 commented Dec 29, 2025

Hi, thank you for reviewing this pull request!
I recently started to use this package in a project and noticed a few things that would really improve it even more.
I'm submitting them in separate pull requests.

I noticed that it is sometimes tedious to (correctly) type the names of the various properties for every Email/get request.

The make this easier I added an EmailProperties and an EmailBodyPartProperties class to the email module.
These contain only the names for all standard properties for these two objects.
This way developers don't have to type the names themselves but can rely on these constants.

I made the two classes available on the jmapc package level via the init.py files.

I didn't add a test for this as it didn't seem necessary.
If you feel differently about this please let me know, I'm happy to add a test in that case (but please also let me know what to test for ;) ).

All tests and lints passed on the last commit.
There was no AI involved in writing this code.

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