mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
add some incoming/outgoing message hooks
This commit is contained in:
@@ -39,6 +39,14 @@ class PerAccount:
|
||||
def configure_completed(self, success):
|
||||
""" Called when a configure process completed. """
|
||||
|
||||
@account_hookspec
|
||||
def process_incoming_message(self, message):
|
||||
""" Called on any incoming message (to deaddrop or chat). """
|
||||
|
||||
@account_hookspec
|
||||
def process_message_delivered(self, message):
|
||||
""" Called when an outgoing message has been delivered to SMTP. """
|
||||
|
||||
@account_hookspec
|
||||
def after_shutdown(self):
|
||||
""" Called after the account has been shutdown. """
|
||||
|
||||
Reference in New Issue
Block a user