diff options
-rw-r--r-- | service/pixelated/controllers/mails_controller.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/pixelated/controllers/mails_controller.py b/service/pixelated/controllers/mails_controller.py index 491f325a..6e971dcd 100644 --- a/service/pixelated/controllers/mails_controller.py +++ b/service/pixelated/controllers/mails_controller.py @@ -62,7 +62,8 @@ class MailsController: def mark_many_mail_unread(self): idents = json.loads(request.form['idents']) for ident in idents: - self._mail_service.mark_as_unread(ident) + mail = self._mail_service.mark_as_unread(ident) + self._search_engine.index_mail(mail) return "" def delete_mail(self, mail_id): |