Commit Graph

112 Commits

Author SHA1 Message Date
Garret Wassermann
981eb323c2 Try a real fix for #832, parse comma in email sender 2020-07-30 02:43:27 -04:00
Garret Wassermann
6a73fd7cef Better handling of sender email 2020-07-27 21:47:32 -04:00
Garret Wassermann
03ab0eb438 Pycodestyle fixes 2020-07-27 20:49:31 -04:00
Garret Wassermann
7eae003e5d Use python getadddresses() function to better handle UTF-8, to address #832 2020-07-27 20:43:05 -04:00
Garret Wassermann
fcde14b82c Fix pycodestyle warnings 2020-07-20 08:10:10 -04:00
Garret Wassermann
46a5982184 ensure log handler is freed, #844 2020-07-20 08:05:35 -04:00
Mike Hoolehan
266775dbf6
Update get_email.py 2020-03-18 09:11:48 +02:00
Alexander Skvortsov
62fbee205c Adjusted get_email management command to support custom User model 2019-08-05 18:41:31 -04:00
Garret Wassermann
ae26216435 PEP-8 fixes for get_email 2019-05-25 01:04:05 -04:00
Garret Wassermann
ce018d2ce5 Copy emails to CC list when processing with get_email, for #744 2019-05-25 01:01:02 -04:00
Jay Turner
72d35232a1
Fix key errors
KeyError: 'verboseescalation' comes up if the key isn't defined.
2019-02-03 18:03:27 +00:00
Jay Turner
d3c4d14a40
AttributeError: 'Command' object has no attribute 'option_list'
There is a bug in the command in which option_list doesn't exist and thus, cannot be added to.
2019-02-03 17:59:17 +00:00
Garret Wassermann
2cf1a32a10 Fix deprecated escape sequence warning for Py3.7, ignore W503,504 2018-05-10 01:42:09 -04:00
Patrick Mithamo
d372e337c6 Fix imaplib 'IMAP' module reference to 'IMAP4'
On IMAP login error: 'imaplib' has no 'IMAP' member; maybe 'IMAP4'
2018-03-29 01:51:24 +03:00
Garret Wassermann
fef08082de Fix PEP8 errors in get_email 2018-03-04 02:14:39 -05:00
Garret Wassermann
283f5e9cec More bugs processing mail under python 3, on behalf of @spamandeggs for #590 2018-03-03 19:32:47 -05:00
Garret Wassermann
7982774ee1 Apply hotfix for get_email fails, #590 2018-02-27 20:18:51 -05:00
Garret Wassermann
55b55edb90 Fix bug in get_email where HTML tags sometimes included in text, reported in #565 2018-02-13 22:25:50 -05:00
Garret Wassermann
45115ba5c7 Actually fix #582 according to quickcheck unittests 2018-02-07 03:01:27 -05:00
Garret Wassermann
73698e8873 More testing 2018-02-07 02:53:40 -05:00
Garret Wassermann
31887504fd seperate out text for better logging of error 2018-02-07 02:46:13 -05:00
Garret Wassermann
0bddf819f7 merge upstream 2018-02-07 02:16:41 -05:00
Garret Wassermann
a10c662207 Patch for #582, POP3 processing error on py3 2018-02-07 02:14:28 -05:00
Garret Wassermann
2852e7ba28
Merge pull request #586 from aesdev/master
Fix for Email Issue while pulling CC and ValueError for public homepage
2018-01-12 13:55:01 -05:00
Dilip Dwarak
cf85c3d9ab Fixe for Email Issue while pulling CC and ValueError for public homepage 2018-01-11 14:49:21 -05:00
Garret Wassermann
5112f0dfd0 Address deprecation warnings to be compatible with Django 2.0 2017-12-28 07:23:51 -05:00
Garret Wassermann
47f92eba1e More PEP8 fixes for get_email 2017-12-06 02:59:50 -05:00
Garret Wassermann
9340e149d5 Wrap IMAP login attempt in a try except, log error if session timeout and exit script gracefully to prevent crashes, to address #568 2017-12-06 02:55:31 -05:00
Garret Wassermann
a2c10edb35 Fix bytes/str confusion in Py3 after address naked except 2017-12-06 02:28:18 -05:00
Garret Wassermann
bc0125421b Fix PEP8 errors detected by new pycodestyle script 2017-12-06 02:06:07 -05:00
Garret Wassermann
32cc5e2496 Patch for handling base64 encoding on Py 2 and 3, to address #567 2017-12-05 02:51:15 -05:00
Garret Wassermann
65c1d05eef Use BeautifulSoup to get text out of HTML-only emails, to address issue in #565 2017-10-31 03:24:04 -04:00
Garret Wassermann
8f375e1379 Address bytes/str issue with POP3 email in get_email script, to address #565 2017-10-31 01:24:26 -04:00
zodman
f06cbce07c fix the python3 2017-09-27 12:50:51 -05:00
zodman
03a57bdc5f fix get_email from gmail imap 2017-09-27 12:40:47 -05:00
Garret Wassermann
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
Will Stott
b99b55e426 Miscellaneous debug log additions. 2017-09-06 16:22:06 +01:00
Garret Wassermann
40ab600ad6 Merged in better handling of attachments, for #468 2017-08-30 15:18:22 -04:00
Garret Wassermann
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
andresf01
d1f35f1299 Only update by email 2017-07-11 11:59:56 -05:00
andresf01
7386a45784 Fixed encoding error in get_email 2017-07-11 10:09:47 -05:00
Jonas Schnelli
a40bbdbecb
Make sure binary MIME attachments will be base64 decoded 2017-06-20 08:35:43 +02:00
Garret Wassermann
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
Garret Wassermann
47f3eb8e89 PEP-8 fixes 2017-04-20 02:44:12 -04:00
Garret Wassermann
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
Garret Wassermann
8963fa694a Prevent adding Users or Queue email to the CC list 2017-04-19 23:47:58 -04:00
Garret Wassermann
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
Garret Wassermann
8e1a6b30fa Fix encoding first before splitting strings, so it works on Python 2 2017-04-16 04:59:57 -04:00
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