summaryrefslogtreecommitdiff
path: root/service/pixelated/user_agent.py
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-10-14 17:59:28 +0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-10-14 18:01:00 +0200
commit4ddf0754fad765eb2fd31af710de9ae03f643c8a (patch)
tree714c298e3a87303a6a3dd22d21f6bc2c0344c712 /service/pixelated/user_agent.py
parentcd4dffcfcb3f7473913e2b50571a182689efeedc (diff)
Indexing mails when (un)marking as read and fixing tags count
Diffstat (limited to 'service/pixelated/user_agent.py')
-rw-r--r--service/pixelated/user_agent.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/pixelated/user_agent.py b/service/pixelated/user_agent.py
index b1233fa3..d6920dc6 100644
--- a/service/pixelated/user_agent.py
+++ b/service/pixelated/user_agent.py
@@ -158,12 +158,14 @@ def mail_tags(mail_id):
@app.route('/mail/<mail_id>/read', methods=['POST'])
def mark_mail_as_read(mail_id):
mail_service.mark_as_read(mail_id)
+ search_engine.index_mail(mail)
return ""
@app.route('/mail/<mail_id>/unread', methods=['POST'])
def mark_mail_as_unread(mail_id):
mail_service.mark_as_unread(mail_id)
+ search_engine.index_mail(mail)
return ""