Page 1 of 1
Email import limitation
Posted: Thu Feb 02, 2017 10:40 am
by fm5000
Hi,
is there a limitation of importing emails from a postbox? I've send 10 emails to the mailbox and HESK imports only 5 emails; it skipps the others.
Regadrs,
Frank
--
HESK Version: 2.7.2
Mods for HESK Version: 3.0.3
PHP-Version: 5.4.45-0+deb7u2 (MySQLi)
MySQL-Version: 5.5.46-0+deb7u1
Re: Email import limitation
Posted: Thu Feb 02, 2017 11:09 am
by Klemen
Hesk will skip duplicate emails (emails with the same subject and message) and emails from a "noreply" email address.
If you turn Debug mode to ON (admin panel > settings > help desk tab > Debug mode) and run hesk_pop3.php in the browser it should give more details about what is happening.
Re: Email import limitation
Posted: Thu Feb 02, 2017 11:25 am
by fm5000
Hi Klemen,
thank you for your answer.
The debug shows me the following details:
There are 10 messages in the mail box with a total of 70000 bytes.
Parsing message 1 of 10.
Ticket Z7M-MXU-BS85 created/updated.
Parsing message 2 of 10.
Ticket 1DQ-61H-5P4G created/updated.
Parsing message 3 of 10.
Ticket 7YA-ANS-RP1R created/updated.
Parsing message 4 of 10.
Ticket 9NM-TQQ-41AW created/updated.
Parsing message 5 of 10.
Ticket QT3-7XJ-3V1H created/updated.
Parsing message 6 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.
Parsing message 7 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.
Parsing message 8 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.
Parsing message 9 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.
Parsing message 10 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.
The emails were sent from a machine with different subjects and bodies like:
subject: Test 1 body: Testmessage for Hesk No. 1
...
subject: Test 10 body: Testmessage for Hesk No. 10
We often receive messages from machines. Not with the same subject/body but with a similar. How can we prevent hesk from skipping this mails?
Best regards,
Frank
Re: Email import limitation
Posted: Thu Feb 02, 2017 11:47 am
by Klemen
Yes, it's either detected as a "noreply" email or as a duplicate email.
You can try modifying file inc/pipe_functions.inc.php:
1. backup it up
2. open it in a powerful text editor, such as the free
Notepad++
3. just ABOVE this line
add
4. save, upload and test
If that doesn't do the trick, try also Admin panel > Settings > Email tab > Email loops: Max hits
Set that to 0 and save changes.
Re: Email import limitation
Posted: Thu Feb 02, 2017 1:17 pm
by fm5000
Admin panel > Settings > Email tab > Email loops: Max hits
does the trick.
thank you
Regards,
Frank
Re: Email import limitation
Posted: Thu Jun 08, 2017 1:27 pm
by fm5000
Hi,
I have to reopen this topic.
I've set Email loops max hits to 0 and the time to 10. Also, I've inserted in pipe_functions between
function hesk_isReturnedEmail and the
// Check noreply email addresses
return false;
But the Mails will all skipped with Ticket NOT inserted - may be duplicate, blocked or an error. whether one message or 10 messages are in the inbox. The message is plain text with two attachments (screenshot with .png extension and a plaintext-log-file with .brp extension). The sender is Filename.exe
What else can I do to import this mail(s) into hesk?
Best regards ,
Frank