Garret Wassermann
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
Garret Wassermann
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
Garret Wassermann
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
Garret Wassermann
6fec1015c3
Work in progress on unicode chars
2017-02-15 18:51:20 -05:00
Jonathan Barratt
fe92880928
do not throw exceptions for invalid/non-UTF8 IMAP content
2017-01-14 01:25:43 +07:00
Jonathan Barratt
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
Pawel M
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
Pawel M
e7c4131ed7
Attachement should be readed in binary mode ... and attached as payload (regarding docs)
2016-12-13 22:43:14 +01:00
Pawel M
e326fea099
merged with upstream
2016-12-12 11:15:45 +01:00
Pawel M
556b6900db
merged with upstream
2016-12-12 11:07:08 +01:00
Pawel M
6482c6338d
merged with upstream
2016-12-12 10:32:01 +01:00
Pawel M
04ec40bbc8
merged with upstream
2016-12-12 10:31:29 +01:00
Pawel M
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
Pawel M
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
Pawel M
905910911d
PY3 support and msgNum error solved in process_queue method
2016-12-12 10:30:38 +01:00
Pawel M
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
Pawel M
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
Jonathan Barratt
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
Pawel M
d76fa2c71e
PY3 support and msgNum error solved in process_queue method
2016-12-08 09:32:04 +01:00
Jonathan Barratt
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
Jonathan Barratt
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
Garret Wassermann
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
Alex Seeholzer
62163eaf0e
patch: implicit closing of open files;
2016-11-01 15:03:51 +01:00
Garret Wassermann
1f1d477a35
Sync again with master 0.2
2016-10-29 04:11:41 -04:00
Garret Wassermann
d791700582
Fix PEP8 errors
2016-10-29 04:08:57 -04:00
Jonathan Barratt
28308d19fb
cleanup build-breaking whitespace merge errors
2016-10-29 14:59:14 +07:00
Jonathan Barratt
43c067dd4f
merge changes from updated master
2016-10-29 13:35:03 +07:00
Alex Barcelo
30e3aa55aa
almost auto-fix on misc files
2016-10-23 22:09:17 +02:00
Alex Barcelo
24d88be8d9
Initial general clean-up of stuff
2016-10-21 17:14:12 +02:00
Garret Wassermann
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
Garret Wassermann
9606201200
Fix mock tests for get_email (hopefully for good this time)
2016-10-20 02:09:05 -04:00
Garret Wassermann
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
Garret Wassermann
f61d180e5d
use django.utils.six instead of plain six
2016-10-19 20:02:12 -04:00
Garret Wassermann
f313b5c374
Added more logging statements, cleaned up a few others
2016-09-16 00:28:13 -04:00
Garret Wassermann
a4ad602f39
Remove unnecessary imports, clean up python3 handling code to use native str()
2016-09-15 22:51:00 -04:00
Garret Wassermann
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
Gleber Diniz
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
Bruno Tikami
2efe8255c5
UPDATED: print statements to be Python 3.x compatible
2016-03-01 17:01:58 -03:00
Alex Barcelo
3b547d2cf9
creation of Permission-per-Queue is done always
2015-12-18 14:35:50 +01:00
Alex Barcelo
1ea70ad1be
adding management command for batch-creation of Queue permission
2015-12-16 22:27:06 +01:00
pahpa@orange.fr
060266e93a
Modify make_option with dest variable 'escalate-verbosely'
2015-06-17 16:22:44 +02:00
TreeNode
54dd376b9c
Check for sock lib has installed
2014-12-11 01:44:47 +02:00
TreeNode
50b80b2a08
Socks proxy support
2014-12-10 23:37:34 +02:00
Gabriel Pichot
27217edf4a
Changed references from auth.User to get_user_model (views, forms & commands)
2014-06-18 16:21:37 +02:00
Ross Poulton
452a34ad72
Smart email parsing ( closes #203 ): Use email-reply-parser to ignore cruft in incoming emails
2014-01-29 23:08:33 +11:00
root
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
Ross Poulton
53273e3794
Fix datetime/timezone handling in Django <1.4; update management commands to be timezone-aware
2013-01-23 11:35:18 +11:00
Ross Poulton
e3ef1e4f20
Closes #163 - ignore automatic email replies
2013-01-20 14:39:07 +11:00
Ross Poulton
6f38470146
Merge pull request #159 from satyans24/master
...
fix unicode decode error
2012-10-10 02:29:58 -07:00
satyans24
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
digitalpbk
88fa35cf29
import settings from helpdesk instead of django
2012-10-07 14:20:26 +05:30
Evan Borgstrom
1f00eef6d0
[GH-93] re-applying changes...
2012-01-24 23:19:07 -05:00
tschmidt
eb74f807d8
added QUEUE_EMAIL_BOX_SSL
2012-01-16 17:36:24 -08:00
tschmidt
164a9f44bb
added global queue default email settings
2012-01-16 17:01:47 -08:00
Alex Garel
ab84017dd5
more fixes on templated mail and safe context
2011-11-09 16:37:37 +01:00
Ross Poulton
090685b6d9
Clean up comments in create_usersettings, and fix copyright in escalate_tickets.
2011-04-19 23:02:33 +00:00
Bruno Clermont
590b5a20d9
add command to create UserSettings for user who do not have one yet
2011-04-15 17:38:12 -04:00
Ross Poulton
ad58b4dcbb
fixed missing bracket in string. thanks to jezdez for catching this during translation.
2011-02-07 10:23:06 +00:00
Ross Poulton
ef1fdbc399
Fix an issue with decoding of some unicode subjects. THanks to pistolero for reviewing the previous patch and providing a fix.
2011-02-02 08:02:39 +00:00
Ross Poulton
8435a665b1
Fix to issue #16 : escalate_tickets fails with an error due to conflicting command-line arguments
2011-02-02 07:49:44 +00:00
Ross Poulton
2d7d3c489d
Correct handling of e-mail attachments where the name is encoded in rfc2231. Thanks to Sergey Kirillov for the patch, which closes Google Code issue #154 and Github issue #11 .
2011-01-29 06:25:53 +00:00
Ross Poulton
8f15febe23
Fix decoding of plain text emails in non-utf8 encodings such as koi8-r. Thanks to Sergey Kirillov for the patch, which fixes Github issue #9 and Google Code issue #150 .
2011-01-29 06:22:18 +00:00
Ross Poulton
46d8e6284e
Fix to prevent tickets being escalated too soon. Thanks to Walter Doekes for the patch. (Google Code #148 ; Github #8 )
2011-01-29 05:52:24 +00:00
Ross Poulton
53327eb66a
Moved all project files under a "helpdesk" directory. Should make it easier to use setup.py / pypi / whatever in the future.
2011-01-25 23:02:00 +00:00