Skip to content

Commit

Permalink
feat: Support subject search
Browse files Browse the repository at this point in the history
  • Loading branch information
joveice authored Jun 3, 2021
1 parent e2c6f1a commit 288dfe5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/postmarker/models/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def all(
status=None,
todate=None,
fromdate=None,
subject=None,
):
"""All outbound messages.
Expand All @@ -106,6 +107,7 @@ def all(
:param str status: Filter by status (queued or sent).
:param date todate: Filter messages up to the date specified (inclusive).
:param date fromdate: Filter messages starting from the date specified (inclusive).
:param subject: Filter by email subject.
:return: A list of :py:class:`OutboundMessage` instances.
:rtype: `list`
"""
Expand All @@ -120,6 +122,7 @@ def all(
status=status,
todate=todate,
fromdate=fromdate,
subject=subject,
)
return self.expand_responses(responses, "Messages")

Expand Down

0 comments on commit 288dfe5

Please sign in to comment.