Page 1 of 1

Hesk 2.4 - Pop3 Fetching

Posted: Mon Aug 13, 2012 7:32 am
by GEEKYGUYS
Just updated to Hesk 2.4. It looks great! I am excited about the new features like merge tickets and Pop3 fetching.

I switched from Email piping to Pop3 Fetching and I am having an issue. I can send an email to the support email address. The email shows up in the support webmail account. When I open the hesk_pop3.php file in a web browser, the email is then removed from the webmail account but it never shows up in Hesk or anywhere.

Please advise. It appears to be close to working, but something isn't quite right.

Thanks in advance!

Re: Hesk 2.4 - Pop3 Fetching

Posted: Mon Aug 13, 2012 5:22 pm
by Klemen
Turn Debug mode to ON in HESK settings then run the test again - what does it say?

Re: Hesk 2.4 - Pop3 Fetching

Posted: Wed Aug 15, 2012 4:51 am
by GEEKYGUYS
Klemen PM'd me this fix for future reference... IT WORKS!!!! Thanks Klemen.

Hi,

Try this:

1. Open the hesk_pop3.php file in an editor
2. find-
stream_wrapper_register('pop3', 'pop3_stream');

3. just ABOVE that code add-
stream_wrapper_unregister('pop3');

4. save, upload and test.

Re: Hesk 2.4 - Pop3 Fetching

Posted: Wed Aug 15, 2012 7:44 am
by Klemen
Glad to hear it worked.

The problem was you already had a pop3 stream wrapper registered. The official solution will read like this (to not show warnings on sites that don't have a wrapper registered):

Code: Select all

if ( in_array('pop3', stream_get_wrappers() ) )
{
    stream_wrapper_unregister('pop3');
}

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 2:16 pm
by bubaweb
Hi all, I try with this modify:

Code: Select all

// Register the pop3 stream handler class

stream_wrapper_unregister('pop3');
stream_wrapper_register('pop3', 'pop3_stream');
but my http://www.xxx.xx//inc/mail/hesk_pop3.php dont show any error
Any suggest ?
Thx
in panel the connetcion is ok
also, the mail are still on mail server. So I dont know, maybe connection is ok, but doest reach the server by php script

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 3:04 pm
by Klemen
Did you turn debug mode ON?

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 3:17 pm
by bubaweb
Klemen wrote:Did you turn debug mode ON?
try in help section, but didnt find how
...can u give me how

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 3:28 pm
by Klemen
1. Login to admin panel
2. Go to "Settings"
3. On "Help Desk" tab under "Features" set "Debug mode" to ON
4. Save changes

Then open the hesk_pop3.php file again in the browser and let me know what it says.

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 3:41 pm
by bubaweb
Klemen wrote:1. Login to admin panel
2. Go to "Settings"
3. On "Help Desk" tab under "Features" set "Debug mode" to ON
4. Save changes

Then open the hesk_pop3.php file again in the browser and let me know what it says.

Code: Select all

Warning: stream_wrapper_register() [function.stream-wrapper-register]: Protocol pop3:// is already defined. in /home/xxx/public_html/web/yyy/inc/mail/hesk_pop3.php on line 59

Connected to the POP3 server "mail.yyy.it".

User "hd@xxx.it" logged in.

There are 3 messages in the mail box with a total of 4262 bytes.

Parsing message 1 of 3.

Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /home/xxx/public_html/web/yyy/inc/mail/email_parser.php on line 335

Warning: fopen(pop3://0/1) [function.fopen]: failed to open stream: no suitable wrapper could be found in /home/xxx/public_html/web/yyy/inc/mail/email_parser.php on line 335

Warning: feof(): supplied argument is not a valid stream resource in /home/xxx/public_html/web/yyy/inc/mail/email_parser.php on line 336

Warning: fgets(): supplied argument is not a valid stream resource in /home/xxx/public_html/web/yyy/inc/mail/email_parser.php on line 338

repeat the 3 last lines
if u need full name I will pm u them

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 3:44 pm
by Klemen
The above posted solution should fix this issue:

1. Open the hesk_pop3.php file in an editor
2. find-
stream_wrapper_register('pop3', 'pop3_stream');

3. just ABOVE that code add-
stream_wrapper_unregister('pop3');

4. save, upload and test.

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 3:49 pm
by bubaweb
Klemen wrote:The above posted solution should fix this issue:

1. Open the hesk_pop3.php file in an editor
2. find-
stream_wrapper_register('pop3', 'pop3_stream');

3. just ABOVE that code add-
stream_wrapper_unregister('pop3');

4. save, upload and test.
I did it before post here. line 114-118

Code: Select all


// Register the pop3 stream handler class

stream_wrapper_unregister('pop3');
stream_wrapper_register('pop3', 'pop3_stream');


Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 3:51 pm
by bubaweb
bubaweb wrote:
Klemen wrote:The above posted solution should fix this issue:

1. Open the hesk_pop3.php file in an editor
2. find-
stream_wrapper_register('pop3', 'pop3_stream');

3. just ABOVE that code add-
stream_wrapper_unregister('pop3');

4. save, upload and test.
I did it before post here. line 114-118

Code: Select all


// Register the pop3 stream handler class

stream_wrapper_unregister('pop3');
stream_wrapper_register('pop3', 'pop3_stream');

i'm downloading a 252Mb !!! error log
holyS°°T

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 5:18 pm
by Klemen
That code should go around line 59, why all the way down to line 114?

Can you post first 120 lines of your hesk_pop3.php file?

Re: Hesk 2.4 - Pop3 Fetching

Posted: Fri Aug 17, 2012 5:32 pm
by bubaweb
Klemen wrote:That code should go around line 59, why all the way down to line 114?

Can you post first 120 lines of your hesk_pop3.php file?
sent u 2 pm with details and link
thx in adv for support

Re: Hesk 2.4 - Pop3 Fetching

Posted: Thu Aug 23, 2012 11:36 pm
by kidrobot2k4
I already upgrade to 2.4.1 but still having issue fetch mail from pop3.
it will fetch when I ran http://domain.com/inc/mail/hesk_pop3.php, but all mail in mailbox will be gone.
can it run automatically ?