Implement mail tracker system

* Implement mail tracking

Signed-off-by: Victor "multun" Collod <victor.collod@prologin.org>

* Implement task merging

* Add a mail tracker title format pattern

* Autocomplete task names

* Fix comment display

* Track notification answers

* Add a socket timeout for the mail worker

A mail worker is a long running application. And sometimes, the IMAP server
just hangs for hours for no apparent reason. imaplib doesn't enable setting
a timeout, and setting it globally seems fine.

* Only validate the merge form when submitted

* Redirect to the new form when merging

* Prettier task edit UI

* Make task merging optional

* Test mail tracking

* Update documentation for mail tracking

* Update dependencies

* Add the TODO_COMMENT_CLASSES setting

* Fix dependencies install order

* Remove debug leftovers, improve documentation

* Fail on missing from_address
This commit is contained in:
multun 2019-03-11 08:04:19 +01:00 committed by Scot Hacker
parent d0212b8a55
commit c7ad961ef3
28 changed files with 1069 additions and 136 deletions

View file

@ -1,11 +1,12 @@
from django.urls import path
from todo import views
from todo.features import HAS_TASK_MERGE
app_name = 'todo'
urlpatterns = [
from django.conf import settings
urlpatterns = [
path(
'',
views.list_lists,
@ -55,7 +56,19 @@ urlpatterns = [
'task/<int:task_id>/',
views.task_detail,
name='task_detail'),
]
if HAS_TASK_MERGE:
# ensure autocomplete is optional
from todo.views.task_autocomplete import TaskAutocomplete
urlpatterns.append(
path(
'task/<int:task_id>/autocomplete/',
TaskAutocomplete.as_view(),
name='task_autocomplete')
)
urlpatterns.extend([
path(
'toggle_done/<int:task_id>/',
views.toggle_done,
@ -70,4 +83,4 @@ urlpatterns = [
'search/',
views.search,
name="search"),
]
])