Mercurial > libervia-backend
diff src/plugins/plugin_misc_maildir.py @ 663:8004c7d4aba7
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.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 31 Oct 2013 17:18:04 +0100 |
parents | 9a8fbf0e8691 |
children | bfabeedbf32e |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_maildir.py Thu Oct 31 17:14:15 2013 +0100 +++ b/src/plugins/plugin_misc_maildir.py Thu Oct 31 17:18:04 2013 +0100 @@ -86,7 +86,7 @@ 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