* 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
11 lines
271 B
Python
11 lines
271 B
Python
HAS_AUTOCOMPLETE = True
|
|
try:
|
|
import dal
|
|
except ImportError:
|
|
HAS_AUTOCOMPLETE = False
|
|
|
|
HAS_TASK_MERGE = False
|
|
if HAS_AUTOCOMPLETE:
|
|
import dal.autocomplete
|
|
if getattr(dal.autocomplete, 'Select2QuerySetView', None) is not None:
|
|
HAS_TASK_MERGE = True
|