Email import limitation

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
fm5000
Posts: 23
Joined: Fri Feb 12, 2016 7:30 am

Email import limitation

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Email import limitation

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
fm5000
Posts: 23
Joined: Fri Feb 12, 2016 7:30 am

Re: Email import limitation

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Email import limitation

Post 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

Code: Select all

// Check noreply email addresses
add

Code: Select all

return false;
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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
fm5000
Posts: 23
Joined: Fri Feb 12, 2016 7:30 am

Re: Email import limitation

Post by fm5000 »

Admin panel > Settings > Email tab > Email loops: Max hits
does the trick.

thank you :)

Regards,
Frank
fm5000
Posts: 23
Joined: Fri Feb 12, 2016 7:30 am

Re: Email import limitation

Post 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
Post Reply