I am able to see the poling interval of 10 minutes. After a restart of trudesk the mails are synced OK for the first interval. Further checks see the logs updating with “Processed x mail > Ticket” but no new tickets are actually raised.
If Create Account is not enabled under MailCheck settings, the from address must match a trudesk user email address. If it is enabled, an account will get created for the user with the from address as the username.
If for any reason the parser fails to parse the body of the email, it will mark the email as read and drop processing it. (I do not see this as the case if the first interval is processing the mail)
There were some event leaks prior to v1.0.5, some of these changes may cause the issues you’re experiencing. I will try to reproduce tonight and push a fix if need be.
I have confirmed it is working correctly with an on-premise exchange server and zoho mail. What mail provider are you using, so I can test with that as well?
hi i am facing the same issue on Raspberry PI3, Nodejs v10.15.3
I ve debuged the mailCheck.js
and discovered that
129 …mailCheck.Imap.on(‘end’, function () …
and
203 f.on(‘end’, function () {
are never called.
So with this patch it s ok now :
i replaced the line 197 : mailCheck.messages.push(message)
With
if (_.size(results) === mailCheck.messages.length){
handleMessages(mailCheck.messages)
mailCheck.Imap.destroy()
}
it s possible you get also this kind of error :
TCP.onStreamRead (internal/stream_base_commons.js:94:17), code=DEPTH_ZERO_SELF_SIGNED_CERT,
because your imap server use a self signed cert
There is a lot of discussion about this solution, but for me it s ok :
insert after line 30 mailCheck.inbox = []
process.env.NODE_TLS_REJECT_UNAUTHORIZED = “0”;
I am having an issue on postfix, where the e-mail comes in gets deleted by TD log message shows up that it created a ticket ( it did not create a ticket ) and it also did not create an account even though it is configured to do so.
Hotmail IMAP (office365) configuration is used for mail check. Incoming Email address is already mapped to an Agent.
-> It checks fmand detects an email
-> Deleted it from server
-> sudden exception while parsing
-> trudesk restarts
This is a fresh installation using the install script on a ubuntu 18.04
I tried to enable/disable “Create Account” option and restart Trudesk but same thing happens. I see that the email was marked as read. So probably, the parser fails for some reason
I’m having the same problem, “Processed 1 Mail > Ticket” but no ticket gets created, all options turned on, minimum length of issue and set to 0, public tickets enabled. I see imap emails getting deleted but I get nothing for tickets or user account creation.