Page 1 of 1

pipe pop3 mail

Posted: Thu Dec 11, 2014 1:38 pm
by depperdc
Script URL:
Version of script:
Hosting company: HESK version: 2.5.3
URL of phpinfo.php: 5.3.3 (MySQLi)
MySQL version: 5.1.73
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hello,
becomes us that about 0-5 mails per day is not processed using pop3 pipe function. These mails remains in folders HESK \ Attachments \
Each unprocessed mail has own folder.
Please help us with the removal of this problem, when the email is not processed. We would like to always process all emails.
thank you

Re: pipe pop3 mail

Posted: Fri Dec 12, 2014 7:30 am
by Klemen
If emails remain in attachments folder there is probably a connection error between HESK and your POP3 server (perhaps a timeout, too long script execution time, ...)?

If you turn Debug mode to ON in HESK settings and manually open the hesk_pop3.php file in your browser, what kind of message do you get?

Re: pipe pop3 mail

Posted: Mon Dec 22, 2014 10:56 am
by depperdc
Hello,
I think I wrote it wrong. Not processed about 2 emails after several hundred processed. I think these are the emails that have attachments, but not the body of email, mail body is empty.

example file is available: http://ulozto.cz/xDyZ9mxY/example-zip

Thank you

Re: pipe pop3 mail

Posted: Mon Dec 22, 2014 6:46 pm
by Klemen
This is by design, HESK requires email message or it ignores the email.

To remove this limit, open inc/pipe_functions.inc.php and change

Code: Select all

strlen($tmpvar['message']) == 0
to

Code: Select all

1 == 2

Re: pipe pop3 mail

Posted: Tue Dec 23, 2014 9:59 am
by depperdc
I sorry, but unfortunately I have not found what you write here. I attach a file inc
Here: http://ulozto.cz/x7mkToKp/inc-zip
Thank you

Re: pipe pop3 mail

Posted: Tue Dec 23, 2014 1:35 pm
by Klemen
Your inc file is from version 2.4.x not 2.5.x, you should double-check what version you have installed and make sure all the proper files are uploaded.

That said, try deleting

Code: Select all

	// Message missing? We require it!
	if ( ! $tmpvar['message'])
	{
		return NULL;
	}