diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-26 23:08:56 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-04-23 10:51:42 +0300 |
commit | 74d5c73b8dfe34820c101967a827abaf020d8e15 (patch) | |
tree | 3037945b368d63b696878d59c340f18fddb5f251 /lib/AppInfo | |
parent | e8772dabccd7cd6bb2e6b52ff09eb479167c3ef8 (diff) |
Add classifier for new messages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r-- | lib/AppInfo/BootstrapSingleton.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AppInfo/BootstrapSingleton.php b/lib/AppInfo/BootstrapSingleton.php index 1e605b794..9d074e3c4 100644 --- a/lib/AppInfo/BootstrapSingleton.php +++ b/lib/AppInfo/BootstrapSingleton.php @@ -36,6 +36,7 @@ use OCA\Mail\Events\DraftSavedEvent; use OCA\Mail\Events\MessageDeletedEvent; use OCA\Mail\Events\MessageFlaggedEvent; use OCA\Mail\Events\MessageSentEvent; +use OCA\Mail\Events\NewMessagesSynchronized; use OCA\Mail\Events\SaveDraftEvent; use OCA\Mail\Http\Middleware\ErrorMiddleware; use OCA\Mail\Http\Middleware\ProvisioningMiddleware; @@ -45,6 +46,7 @@ use OCA\Mail\Listener\DraftMailboxCreatorListener; use OCA\Mail\Listener\FlagRepliedMessageListener; use OCA\Mail\Listener\InteractionListener; use OCA\Mail\Listener\MessageCacheUpdaterListener; +use OCA\Mail\Listener\NewMessageClassificationListener; use OCA\Mail\Listener\SaveSentMessageListener; use OCA\Mail\Listener\TrashMailboxCreatorListener; use OCA\Mail\Service\Attachment\AttachmentService; @@ -135,6 +137,7 @@ class BootstrapSingleton { $dispatcher->addServiceListener(MessageSentEvent::class, FlagRepliedMessageListener::class); $dispatcher->addServiceListener(MessageSentEvent::class, InteractionListener::class); $dispatcher->addServiceListener(MessageSentEvent::class, SaveSentMessageListener::class); + $dispatcher->addServiceListener(NewMessagesSynchronized::class, NewMessageClassificationListener::class); $dispatcher->addServiceListener(SaveDraftEvent::class, DraftMailboxCreatorListener::class); } } |