core: Deferred in onMessage.

onMessage now use a deferred which is passed to MessageReceived trigger through the post_treat parameter. This can be used by plugins to add deferred in the callback chain.
This commit is contained in:
Goffi 2013-10-31 17:18:04 +01:00
commit 59b4505dfd
5 changed files with 32 additions and 21 deletions

View file

@ -86,7 +86,7 @@ class MaildirBox(object):
del self.__mailboxes[profile]
del self.data[profile]
def messageReceivedTrigger(self, message, profile):
def messageReceivedTrigger(self, message, post_treat, profile):
"""This trigger catch normal message and put the in the Maildir box.
If the message is not of "normal" type, do nothing
@param message: message xmlstrem