Skip to content

v2.0.3

Choose a tag to compare

@ludvikjerabek ludvikjerabek released this 06 Feb 23:27
· 6 commits to master since this release
1d75868

Minor change

  • Update pyproject.toml to reflect correct vendor name.
  • Refresh token 5 minutes before expiration time as defined in the SER API guide.
  • Improve behavior of Message.header_from setter. If None is passed the HeaderFrom is removed.

Added

  • Add header_from as optional to Message constructor.
    • Message("Body", MailUser("sender@example.com", "Joe Sender"), MailUser("sender@example.com", "Header From"))
  • Add MessageHeaders object to deal with from address and future properties
  • Add Message.header_from to return MessageHeader.header_from property is MailUser

Changed behavior

  • Modified the to_json() function to only generate properties if they have data assigned.

Bug fixes

  • Improperly exposed class values which can lead to misuse.
  • Fixed Message.headers to return MessageHeader object which can be None since it's optional.
  • Fixed Message.header_sender to return MessageHeader.header_from property is MailUser

Full Changelog: v2.0.1...v2.0.3