diff --git a/gmailfilter/actions.py b/gmailfilter/actions.py index 607a559..a65db8b 100644 --- a/gmailfilter/actions.py +++ b/gmailfilter/actions.py @@ -44,3 +44,10 @@ def process(self, conn, message): # TODO: Maybe provide logging facilities in parent 'Action' class? conn.delete_messages(message.uid()) logging.info("Moving message %r to %s" % (message, self._target_folder)) + + +class DeleteMessage(Action): + + def process(self, conn, message): + conn.delete_messages(message.uid()) + logging.info("Deleting message %r" % message)