django-helpdesk/helpdesk
Jonathan Barratt 8dbd54ac16
stop corrupting binary attachments when delivering them by email
We accomplish this by attching files to out-bound mail diffrently
depending on the versino of Python in effect. In Py2 we can read
the files ourseles and the standard library will still
be able to use the text we pass as if it were bytes. Under Py3,
however, email.message will complain if it doesn't get to decode
the bytes itself, so instead of attaching the contents directly
 we just pass the path to the file as a string instead. Unfortunately,
Django 1.8 does not work with this Python 3 approach, due to its
 not yet having reverted to the newly improved standard library's
mail-message implementation, and thus requiring us to know more
about the character-encoding/mimetype of the attachment than I've
been able to gather cleanly by this point.
2016-12-13 19:41:13 +07:00
..
fixtures Rename initial_data.json to emailtemplate.json 2015-01-14 15:49:08 +01:00
locale Update translations (part of #424) 2016-10-12 10:54:24 +11:00
management refactor all handling of attached files 2016-12-08 19:47:20 +07:00
migrations merge changes from updated master 2016-10-29 13:35:03 +07:00
static/helpdesk Make Knowledgebase categories nicer; include jQuery UI for DatePicker on new ticket form 2016-09-27 13:16:28 -04:00
templates/helpdesk Use HTML5 table ordering based on Unix epoch 2016-11-21 00:12:24 -05:00
templatetags Fixing style (according to branch 'autocodestyle') + quicktest 2016-10-24 08:04:31 +02:00
tests refactor all handling of attached files 2016-12-08 19:47:20 +07:00
views urlquote email address when used as get query param 2016-12-11 06:20:03 +07:00
__init__.py Revert "Make sure custom user logic works with Django 1.4" 2014-10-24 18:05:44 +11:00
admin.py Initial general clean-up of stuff 2016-10-21 17:14:12 +02:00
akismet.py fixing RST syntax for docstring on akismet.py 2016-10-26 10:22:15 +02:00
apps.py Initial general clean-up of stuff 2016-10-21 17:14:12 +02:00
forms.py refactor all handling of attached files 2016-12-08 19:47:20 +07:00
lib.py stop corrupting binary attachments when delivering them by email 2016-12-13 19:41:13 +07:00
models.py refactor all handling of attached files 2016-12-08 19:47:20 +07:00
poll_helpdesk_email_queues.sh Closes #161 - provide script to simplify automation of email polling 2013-01-20 14:40:57 +11:00
settings.py Remove all the deprecated API related files and references 2016-10-29 08:50:13 +02:00
urls.py Remove all the deprecated API related files and references 2016-10-29 08:50:13 +02:00