Commit Graph

90 Commits

Author SHA1 Message Date
a056e4d0a8 add unit test for get_ticket_id_from_slug and alt queue processing for get_email 2025-07-07 21:42:20 +00:00
50fd6a07e8 Allow checking for ticket IDs in all queues regardless of email submission settings
This change allows Django Helpdesk to locate existing tickets in any queue that
has email configured, even if that queue doesn't accept new ticket submissions.
2025-07-07 21:42:20 +00:00
c4dfe9e536 Fix ticket ID matching across multiple queues 2025-07-07 21:42:20 +00:00
9595d528fe Migrate to modern Python logger API
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-05-12 23:41:44 -07:00
6cb157e176 Migrate to modern Python logger API
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-05-12 15:23:04 -07:00
c713e3ea16 Formatting fixes 2025-05-09 20:02:57 +02:00
1757166638 Unit test multiple user IDs associated with the same email address. 2025-05-09 19:46:15 +02:00
21b0be1b36 Tests for emails with attachment and no content part or attachment and
empty content part.
2025-04-02 10:16:02 +01:00
75bd375c6b Fix formatting errors after doing app wide instead of only the heldesk
folder
2025-04-01 11:09:34 +01:00
432fe3c5e7 Fix linting errors 2025-03-29 11:58:32 +00:00
6c43d4c685 Fix error when preventing creating ticket from email when setting is
True.

Standardise to use of helpdesk_settings as done in all other packages
using the helpdesk settings file.
2025-03-29 11:38:33 +00:00
091670179b run ruff formatter 2025-03-22 15:29:19 -10:00
3dcbdad638 Fix: helpdesk settings are imported as settings 2024-06-07 18:04:05 +02:00
cc1b125d53 Disable email attachment processing and email saving if attachments are not enabled.
Caution: untested
2024-06-06 15:58:27 +02:00
8541acd49d Updated comment 2024-04-17 10:21:02 +00:00
2fc95d165a new_ticket_done signal emitted through email 2024-04-17 10:19:50 +00:00
c6cad5f702 Removed unused webhooks import 2024-04-16 08:52:22 +00:00
c0ee8e0847 Use update_ticket mechanism in email.py 2024-04-16 08:49:11 +00:00
e708281dcd Implement webhooks. Fixes #264 2023-12-02 20:57:21 +00:00
e4da2797b9 Fix missing f-string operator.
Add queue name to info log.
2023-10-26 21:31:53 +01:00
e040bcac77 Add missing capture of exception to variable. 2023-10-25 17:15:45 +01:00
bc7e189a5c Remove check for info being enabled 2023-10-24 14:24:10 +01:00
2c9e251113 Fix order of imports 2023-10-24 14:20:09 +01:00
a7863b5f27 Fix formatting 2023-10-24 14:08:40 +01:00
8849943d33 Add logging to stdout when enabled to facilitate debugging issues. 2023-10-24 13:50:23 +01:00
405efcc33b Delete emails immediately to prevent duplicate ticket problems
Right now if there is an exception in this loop due to a single messed up
email (perhapse an invalid email address), the loop will fail without deleting
the already processed emails. In a few hours you can end up with hundreds of
duplicate tickets. This way, the already processed emails will be deleted and
not processed again.
2023-10-14 18:48:02 +02:00
e90739a07a Fix formatting issues 2023-10-10 14:08:57 +01:00
8006826ddf Process email content first then focus on attachments.
Use the EmailMessage class for enhanced processing.
2023-10-10 13:41:28 +01:00
9bbe1945b0 Fix format errors 2023-07-23 06:31:29 +01:00
2e5697c11a Completely rework the email parsing.
Fixes a number of hacks that have accumulated and makes it is more
easily understood and easier to enhance in the future.
2023-07-23 06:12:32 +01:00
707cc6761b Implement a recursive multipart parser to cater for attachments that
have embedded attachments.
2023-07-16 14:55:18 +01:00
c23c8e5be6 Add user defined IMAP Debug Level and improved exception message 2023-04-19 20:07:43 +10:00
a8fbeaa140 Fix OAuth tests 2023-04-19 15:22:35 +10:00
012cc7041a Fix OAuth tests 2023-04-19 15:12:13 +10:00
101326c987 Use settings instead of django_settings 2023-04-17 20:08:56 +10:00
c29996df94 Resorted imports for pep8 2023-04-17 13:15:47 +10:00
9192779889 Add IMAP OAUTH Mail Box Type 2023-04-15 22:11:41 +10:00
d7ebc8e1c2 Revert "Add IMAP OAUTH Mail Box Type"
This reverts commit d57f11f40a.
2023-04-15 21:56:05 +10:00
d57f11f40a Add IMAP OAUTH Mail Box Type 2023-04-15 21:52:44 +10:00
287024acd1 Use updated_submitter email template in send for updated ticket 2023-03-28 19:45:54 +10:00
8cb3d43311 Use simpler conversion to string 2023-03-25 13:25:22 +00:00
4cd66d7e0c Fix import format fail 2023-03-25 13:21:38 +00:00
cdbd531931 Ensure multipart attachments are saved 2023-03-25 13:06:03 +00:00
7f8e996668 Fix missing param in call 2023-03-10 22:11:34 +00:00
aad73a5d90 Fix format errors 2023-03-10 22:06:14 +00:00
b3edba3fc5 Fix #1054 2022-10-09 23:05:16 +02:00
9e3a3abcf1 Fix import sorting 2022-09-08 23:40:49 +01:00
8d7ba415fa Fix formatting per flake8 2022-09-08 22:11:24 +01:00
eca2255f56 Test for filename using diaretics 2022-09-08 10:05:09 +01:00
572ffd5acf Handle ignored emails explicitly using exceptions.
Support the flag on IgnoreEmail model to control deleting the email if
ignored.
2022-09-06 19:40:35 +01:00