Hello,
Apologies for opening another ticket but I found something during my testing of the other ATS issues I am having and wanted to get clarification on this and avoid muddling the other open tickets.
Using a fresh installation of J4.3.2 and ATS 5.2.7 I was testing mailfetch with both IMAP and Gmail API integration.
In the testing I found that if mailfetch was configured as shown below new tickets would not be created.
Reply by email: Yes
Only for managers: Yes
Create ticket by email: Yes
According to the documentation I see below, it reads like "only for managers" applies to email replies to existing tickets. However, I have found that I must set "Only for managers" to NO in order for non-managers to be able to create a new ticket.
I have attached the debug log to confirm this is how mailfetch operates.
You can see that the second test ticket is rejected as it is a new ticket but the sender is not a manager.
In the third ticket you can see that I have set "Only for managers" to NO and new tickets are now allowed.
Just an FYI and suggestion that either:
-The documentation is updated to at "reply to and create new" where appropriate
or
-Change the behavior of mailfetch so that when "Only for managers" is YES, new tickets are allowed by non-managers but replying to existing tickets is not allowed
Thanks for your consideration!
Eric
References:
https://www.akeeba.com/documentation/ats-for-joomla/receiving-emails.html#plugins-ats-mailfetch
The plugin options Reply by emailWhen enabled allows users to reply to their tickets by email.
Only for managersWhen enabled the Reply by email feature is only available for managers (support staff)
Create ticket by emailWhen enabled allows users to create new tickets by emails. Obviously, the user needs to send the email from the email address they used to register on your site.
#Software: Joomla! 4.3.2 Stable [ Bora ] 30-May-2023 16:00 GMT #Fields: datetime priority clientip category message 2023-06-21T17:50:29+00:00 INFO 24.96.32.174 ats.emails Beginning checking for emails 2023-06-21T17:50:29+00:00 INFO 24.96.32.174 ats.emails Attempting to connect to mail server 2023-06-21T17:50:30+00:00 INFO 24.96.32.174 ats.emails Checking for unread email sent after Mon, 19 Jun 2023 17:50:30 +0000 2023-06-21T17:54:37+00:00 INFO 24.96.32.174 ats.emails Beginning checking for emails 2023-06-21T17:54:37+00:00 INFO 24.96.32.174 ats.emails Attempting to connect to mail server 2023-06-21T17:54:37+00:00 INFO 24.96.32.174 ats.emails Checking for unread email sent after Tue, 20 Jun 2023 17:50:30 +0000 2023-06-21T17:54:39+00:00 INFO 24.96.32.174 ats.emails <CA+vBaBBwiiPcrCdcaDY+fLUcCoPfTdzFxg5Pr4nXtGFm7tdrGA@mail.gmail.com>. Eric Johnson <[email protected]> — Test ticket by email 1 2023-06-21T17:54:46+00:00 INFO 24.96.32.174 ats.emails Beginning checking for emails 2023-06-21T17:54:46+00:00 INFO 24.96.32.174 ats.emails Attempting to connect to mail server 2023-06-21T17:54:46+00:00 INFO 24.96.32.174 ats.emails Checking for unread email sent after Tue, 20 Jun 2023 17:54:37 +0000 2023-06-21T17:58:08+00:00 INFO 24.96.32.174 ats.emails Beginning checking for emails 2023-06-21T17:58:08+00:00 INFO 24.96.32.174 ats.emails Attempting to connect to mail server 2023-06-21T17:58:08+00:00 INFO 24.96.32.174 ats.emails Checking for unread email sent after Tue, 20 Jun 2023 17:54:46 +0000 2023-06-21T17:58:10+00:00 INFO 24.96.32.174 ats.emails <CA+vBaBDTNR3vRyizBWqPhP6b0PuU5B=EMm8bXNJkQQqLE_PFyg@mail.gmail.com>. Eric Johnson <[email protected]> — test ticket by email 2 2023-06-21T17:58:10+00:00 DEBUG 24.96.32.174 ats.emails No TicketID found: this email is not a reply to an existing ticket 2023-06-21T17:58:10+00:00 DEBUG 24.96.32.174 ats.emails New ticket. Trying to determine category from the email address it was sent to. 2023-06-21T17:58:10+00:00 DEBUG 24.96.32.174 ats.emails Got category ID 8 2023-06-21T17:58:10+00:00 DEBUG 24.96.32.174 ats.emails Attempting to load ticket category #8 2023-06-21T17:58:10+00:00 ERROR 24.96.32.174 ats.emails Reply by Email is only allowed for category managers (staff) but the person emailing us is not a manager. 2023-06-21T17:58:10+00:00 DEBUG 24.96.32.174 ats.emails Sending the mailgateway-noaccess email and aborting. 2023-06-21T17:58:10+00:00 ERROR 24.96.32.174 ats.emails Generic checks failed for this email. Skipping this email. 2023-06-21T18:02:28+00:00 INFO 24.96.32.174 ats.emails Beginning checking for emails 2023-06-21T18:02:28+00:00 INFO 24.96.32.174 ats.emails Attempting to connect to mail server 2023-06-21T18:02:28+00:00 INFO 24.96.32.174 ats.emails Checking for unread email sent after Tue, 20 Jun 2023 17:58:08 +0000 2023-06-21T18:02:31+00:00 INFO 24.96.32.174 ats.emails <CA+vBaBCMODGOzxukt_UrWdYBjYFwDbzY3WmBh9=weL_XcjMR1A@mail.gmail.com>. Eric Johnson <[email protected]> — test ticket by email 3 2023-06-21T18:02:31+00:00 DEBUG 24.96.32.174 ats.emails No TicketID found: this email is not a reply to an existing ticket 2023-06-21T18:02:31+00:00 DEBUG 24.96.32.174 ats.emails New ticket. Trying to determine category from the email address it was sent to. 2023-06-21T18:02:31+00:00 DEBUG 24.96.32.174 ats.emails Got category ID 8 2023-06-21T18:02:31+00:00 DEBUG 24.96.32.174 ats.emails Attempting to load ticket category #8 2023-06-21T18:02:31+00:00 DEBUG 24.96.32.174 ats.emails Posting a new ticket