Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Hi there,
i'm fairly new to Hesk, only have been playing with it for a few days. i really like it.
Got one issue, where emails from specific sender with WAV attachment are not being fetched into hesk for some reason.
I added wav extension into allowed extension. Also when I send email with wav file to the one that is supposed to be fetched. The ticket gets created.
But for some reason, when the email arrives from specific sender - theres no sign of it in hesk. ( it is an automated email from voip provider, recorded voicemail via email)
I've checked the server logs and can't see any errors.
Hope you can help.
Specific email is not being fetched over imap
Moderator: mkoch227
Re: Specific email is not being fetched over imap
I turned debug on and tried to fetch those mails manually and this is what i get
the one with wav that i sent from my mail got fetched. But the other one from voip company did not
#!/usr/bin/php -q
Connected to the IMAP server "{outlook.office365.com:993/imap/ssl}".
Unread messages found: 2
Ticket 75E-47J-47LH created/updated.
Ticket NOT inserted - may be duplicate, blocked or an error.
Disconnected from the IMAP server.
the one with wav that i sent from my mail got fetched. But the other one from voip company did not
#!/usr/bin/php -q
Connected to the IMAP server "{outlook.office365.com:993/imap/ssl}".
Unread messages found: 2
Ticket 75E-47J-47LH created/updated.
Ticket NOT inserted - may be duplicate, blocked or an error.
Disconnected from the IMAP server.
Re: Specific email is not being fetched over imap
If the email comes from a "noreply" email address Hesk will ignore it.
To change this behavior:
1. open your "inc/pipe_functions.inc.php" file in a powerful text editor, such as Notepad++ (do not use Microsoft notepad)
2. find
3. just below that code add Change test@example.com to the "From" email address form your voip company
4. save, upload and test
To change this behavior:
1. open your "inc/pipe_functions.inc.php" file in a powerful text editor, such as Notepad++ (do not use Microsoft notepad)
2. find
Code: Select all
function hesk_isReturnedEmail($tmpvar)
{
Code: Select all
if (strtolower($tmpvar['email']) == 'test@example.com')
{
return false;
}
4. save, upload and test
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Specific email is not being fetched over imap
Thank you for your reply, i have tested it and still no ticket created.
the code looks like this now
// Try to detect "delivery failed" and "noreply" emails - ignore if detected
if ( hesk_isReturnedEmail($tmpvar) )
{
if (strtolower($tmpvar['email']) == 'noreply@****.co.uk')
{
return false;
}
return hesk_cleanExit();
}
by the way i am not using email piping, only imap fetching.
the code looks like this now
// Try to detect "delivery failed" and "noreply" emails - ignore if detected
if ( hesk_isReturnedEmail($tmpvar) )
{
if (strtolower($tmpvar['email']) == 'noreply@****.co.uk')
{
return false;
}
return hesk_cleanExit();
}
by the way i am not using email piping, only imap fetching.
Re: Specific email is not being fetched over imap
Looks to me like you modified the wrong part of the code.
See my original reply again, the modification should go below this exact code
See my original reply again, the modification should go below this exact code
Code: Select all
function hesk_isReturnedEmail($tmpvar)
{
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Specific email is not being fetched over imap
my bad, all good now. Many thanks Klemen
Re: Specific email is not being fetched over imap
The code should go into function hesk_isDoNotReplyEmail now.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Specific email is not being fetched over imap
Thanks again