From 288dfe5bbd9313c72b6cb8027ae5e91326c1511c Mon Sep 17 00:00:00 2001 From: joveice Date: Thu, 3 Jun 2021 11:28:00 +0200 Subject: [PATCH] feat: Support subject search --- src/postmarker/models/messages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/postmarker/models/messages.py b/src/postmarker/models/messages.py index 5d35dc7..dc89e07 100644 --- a/src/postmarker/models/messages.py +++ b/src/postmarker/models/messages.py @@ -92,6 +92,7 @@ def all( status=None, todate=None, fromdate=None, + subject=None, ): """All outbound messages. @@ -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` """ @@ -120,6 +122,7 @@ def all( status=status, todate=todate, fromdate=fromdate, + subject=subject, ) return self.expand_responses(responses, "Messages")