Remove debug leftovers, improve documentation
This commit is contained in:
parent
38204f0642
commit
f53fd92cd3
2 changed files with 11 additions and 6 deletions
12
README.md
12
README.md
|
@ -140,10 +140,18 @@ The current django-todo version number is available from the [todo package](http
|
||||||
## Mail tracking
|
## Mail tracking
|
||||||
|
|
||||||
What if you could turn django-todo into a shared mailbox?
|
What if you could turn django-todo into a shared mailbox?
|
||||||
|
Django-todo includes an optional feature that allows emails sent to a
|
||||||
|
dedicated mailbox to be pushed into todo as new tasks, and responses to
|
||||||
|
be added as comments on that original tasks.
|
||||||
|
|
||||||
- incoming emails create a new task
|
This allows support teams to work with a fully unified email + bug
|
||||||
- thread answers create task comments
|
tracking system to avoid confusion over who's seen or responded to what.
|
||||||
|
|
||||||
|
To enable the feature, you need to:
|
||||||
|
|
||||||
|
- define an email backend for outgoing emails
|
||||||
|
- define an email backend for incoming emails
|
||||||
|
- start a worker, which will wait for new emails
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from todo.mail.producers import imap_producer
|
from todo.mail.producers import imap_producer
|
||||||
|
|
|
@ -83,8 +83,6 @@ def todo_send_mail(user, task, subject, body, recip_list):
|
||||||
epoch=int(time.time())
|
epoch=int(time.time())
|
||||||
)
|
)
|
||||||
|
|
||||||
import sys
|
|
||||||
print("sending mail", file=sys.stderr)
|
|
||||||
# the thread message id is used as a common denominator between all
|
# the thread message id is used as a common denominator between all
|
||||||
# notifications for some task. This message doesn't actually exist,
|
# notifications for some task. This message doesn't actually exist,
|
||||||
# it's just there to make threading possible
|
# it's just there to make threading possible
|
||||||
|
@ -106,7 +104,6 @@ def todo_send_mail(user, task, subject, body, recip_list):
|
||||||
},
|
},
|
||||||
connection=connection,
|
connection=connection,
|
||||||
)
|
)
|
||||||
# import pdb; pdb.set_trace();
|
|
||||||
message.send()
|
message.send()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue