9531b9649a
Fix errors in Python 2, used six to workaround encoding weirdness, all tests pass on both Py2/3
2017-04-03 02:52:49 -04:00
74a7afadb9
Update get_email test to use unicode characters; seem to have found an encoding errory in get_email, provided a fix that satisfies test
2017-04-03 01:53:25 -04:00
6fec1015c3
Work in progress on unicode chars
2017-02-15 18:51:20 -05:00
fe92880928
do not throw exceptions for invalid/non-UTF8 IMAP content
2017-01-14 01:25:43 +07:00
b5feeb7ee9
Make SOCKS-proxy support global for all queues under Py3
...
Python 2 retains per-queue SOCKS-proxy support, but this is simplest fix until someone needs it for Python 3.
2017-01-14 01:25:17 +07:00
f5b68772cf
Downloaded attachment was not decoded and additionally encoded by default django method (its size after download is bigger than originally attached file). This is the reason why it is illegible
2016-12-13 23:31:26 +01:00
e7c4131ed7
Attachement should be readed in binary mode ... and attached as payload (regarding docs)
2016-12-13 22:43:14 +01:00
e326fea099
merged with upstream
2016-12-12 11:15:45 +01:00
556b6900db
merged with upstream
2016-12-12 11:07:08 +01:00
6482c6338d
merged with upstream
2016-12-12 10:32:01 +01:00
04ec40bbc8
merged with upstream
2016-12-12 10:31:29 +01:00
c11e360f50
PY3 get_email support in method ticket_from_message (if message isinstance bytes use email.email_from_bytes(msg) else ..from_string(msg)) ... clear
2016-12-12 10:30:38 +01:00
550ca89415
PY3 get_email support in method ticket_from_message (if message isinstance bytes use email.email_from_bytes(msg) else ..from_string(msg))
2016-12-12 10:30:38 +01:00
905910911d
PY3 support and msgNum error solved in process_queue method
2016-12-12 10:30:38 +01:00
5998faa6a5
PY3 get_email support in method ticket_from_message (if message isinstance bytes use email.email_from_bytes(msg) else ..from_string(msg)) ... clear
2016-12-08 15:17:14 +01:00
4c97ecd0ae
PY3 get_email support in method ticket_from_message (if message isinstance bytes use email.email_from_bytes(msg) else ..from_string(msg))
2016-12-08 15:14:11 +01:00
5acd891c68
refactor all handling of attached files
...
Extract attachment processing from forms, views.staff, and management.command.get_email modules, and consolidate it into a unified lib module function.
Also refactor the affected components, most notably lib.send_templated_email, to make it easier (IMO) to reason about changes to them.
Add unit tests for attachments with UTF-8 filenames, and functional tests for submission of same, as well as ASCII versions, through the public ticket-form.
Remove unused Attachment method "get_upload_to".
2016-12-08 19:47:20 +07:00
d76fa2c71e
PY3 support and msgNum error solved in process_queue method
2016-12-08 09:32:04 +01:00
3cfa371199
hotfix for #456 : patch calls to ticket_from_message
...
add logger arg where missing in get_email
2016-11-29 00:46:42 +07:00
7738bba2ab
remove special-case imports for legacy versions
...
standardise use, or avoidance, of timezone, template from_string, and Context
2016-11-21 10:16:03 +07:00
97a24fbe22
Ensure that local files are deleted after processing, and add some information about it to the install.rst documentation
2016-11-12 11:32:04 +07:00
62163eaf0e
patch: implicit closing of open files;
2016-11-01 15:03:51 +01:00
1f1d477a35
Sync again with master 0.2
2016-10-29 04:11:41 -04:00
d791700582
Fix PEP8 errors
2016-10-29 04:08:57 -04:00
28308d19fb
cleanup build-breaking whitespace merge errors
2016-10-29 14:59:14 +07:00
43c067dd4f
merge changes from updated master
2016-10-29 13:35:03 +07:00
30e3aa55aa
almost auto-fix on misc files
2016-10-23 22:09:17 +02:00
24d88be8d9
Initial general clean-up of stuff
2016-10-21 17:14:12 +02:00
6418194b85
Fix command line arg for Django 1.7 and make Python 2 and 3 compatible test
2016-10-20 02:21:43 -04:00
9606201200
Fix mock tests for get_email (hopefully for good this time)
2016-10-20 02:09:05 -04:00
b7ef83f7d2
Check that folder is a dir before checking for mail using get_email; fix unit test for --quiet
2016-10-20 01:39:24 -04:00
f61d180e5d
use django.utils.six instead of plain six
2016-10-19 20:02:12 -04:00
f313b5c374
Added more logging statements, cleaned up a few others
2016-09-16 00:28:13 -04:00
a4ad602f39
Remove unnecessary imports, clean up python3 handling code to use native str()
2016-09-15 22:51:00 -04:00
e5c3c4a435
Used six to add python3 compatibility along side existing python2, and replaced print statements with logging features. Can now poll a local directory for mail too, not just remote POP3/IMAP.
2016-09-14 20:35:18 -04:00
f8044faf28
Fix import error on python 3
...
"from email.utils import parseaddr, collapse_rfc2231_value" works both for python 2.7 and python 3
2016-06-14 17:10:23 -03:00
2efe8255c5
UPDATED: print statements to be Python 3.x compatible
2016-03-01 17:01:58 -03:00
3b547d2cf9
creation of Permission-per-Queue is done always
2015-12-18 14:35:50 +01:00
1ea70ad1be
adding management command for batch-creation of Queue permission
2015-12-16 22:27:06 +01:00
060266e93a
Modify make_option with dest variable 'escalate-verbosely'
2015-06-17 16:22:44 +02:00
54dd376b9c
Check for sock lib has installed
2014-12-11 01:44:47 +02:00
50b80b2a08
Socks proxy support
2014-12-10 23:37:34 +02:00
27217edf4a
Changed references from auth.User to get_user_model (views, forms & commands)
2014-06-18 16:21:37 +02:00
452a34ad72
Smart email parsing ( closes #203 ): Use email-reply-parser to ignore cruft in incoming emails
2014-01-29 23:08:33 +11:00
306d8bf4d3
Changed regex for email subjects to use queue slug to tell internal ticket id from external ones.
2013-02-27 16:14:16 +01:00
53273e3794
Fix datetime/timezone handling in Django <1.4; update management commands to be timezone-aware
2013-01-23 11:35:18 +11:00
e3ef1e4f20
Closes #163 - ignore automatic email replies
2013-01-20 14:39:07 +11:00
6f38470146
Merge pull request #159 from satyans24/master
...
fix unicode decode error
2012-10-10 02:29:58 -07:00
43658abad9
Update helpdesk/management/commands/get_email.py
...
ignore when some characters can't be decoded to avoid unicode decode error.
2012-10-09 21:04:20 +05:30
88fa35cf29
import settings from helpdesk instead of django
2012-10-07 14:20:26 +05:30