Commit Graph

80 Commits

Author SHA1 Message Date
8f375e1379 Address bytes/str issue with POP3 email in get_email script, to address #565 2017-10-31 01:24:26 -04:00
f06cbce07c fix the python3 2017-09-27 12:50:51 -05:00
03a57bdc5f fix get_email from gmail imap 2017-09-27 12:40:47 -05:00
96cae9bdd5 Added better logging for case when IMAP folder may not exist when check IMAP messages, to address issue in #536 2017-09-13 01:44:36 -04:00
b99b55e426 Miscellaneous debug log additions. 2017-09-06 16:22:06 +01:00
40ab600ad6 Merged in better handling of attachments, for #468 2017-08-30 15:18:22 -04:00
c781644e34 Merge pull request #518 from gwasser/fix_cc_user_email
Fix get_email issue when user does not have an email
2017-08-20 21:13:07 -04:00
d1f35f1299 Only update by email 2017-07-11 11:59:56 -05:00
7386a45784 Fixed encoding error in get_email 2017-07-11 10:09:47 -05:00
a40bbdbecb Make sure binary MIME attachments will be base64 decoded 2017-06-20 08:35:43 +02:00
e8d1ffbe21 Fix issue where a django user may not have an associated email address and therefore get_email.py will barf 2017-06-14 00:00:31 -04:00
47f3eb8e89 PEP-8 fixes 2017-04-20 02:44:12 -04:00
bf344b09b1 Check CC'd email against list of User emails, and add the User to the ticket if necessary and not already the assignee, etc. 2017-04-20 02:36:10 -04:00
8963fa694a Prevent adding Users or Queue email to the CC list 2017-04-19 23:47:58 -04:00
34ce553435 Only add CC emails to Ticket if they were not already included (no duplicates), add testing for it 2017-04-18 23:36:39 -04:00
8e1a6b30fa Fix encoding first before splitting strings, so it works on Python 2 2017-04-16 04:59:57 -04:00
b2ac1fd3a5 #95: save CC'd emails on a comment to the Ticket for future correspondence, set to view only initially, and update tests for CC 2017-04-16 04:19:17 -04:00
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