Skip to content

Commit

Permalink
Add DeleteMessage action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomi Richards committed Jun 15, 2015
1 parent 4953a23 commit c7d33b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gmailfilter/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c7d33b1

Please sign in to comment.