Hesk 2.4 - Pop3 Fetching

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
GEEKYGUYS
Posts: 2
Joined: Mon Aug 13, 2012 7:24 am

Hesk 2.4 - Pop3 Fetching

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

Re: Hesk 2.4 - Pop3 Fetching

Post by Klemen »

Turn Debug mode to ON in HESK settings then run the test again - what does it say?
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
GEEKYGUYS
Posts: 2
Joined: Mon Aug 13, 2012 7:24 am

Re: Hesk 2.4 - Pop3 Fetching

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

Re: Hesk 2.4 - Pop3 Fetching

Post 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');
}
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
bubaweb
Posts: 6
Joined: Fri Aug 17, 2012 2:13 pm

Re: Hesk 2.4 - Pop3 Fetching

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

Re: Hesk 2.4 - Pop3 Fetching

Post by Klemen »

Did you turn debug mode ON?
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
bubaweb
Posts: 6
Joined: Fri Aug 17, 2012 2:13 pm

Re: Hesk 2.4 - Pop3 Fetching

Post by bubaweb »

Klemen wrote:Did you turn debug mode ON?
try in help section, but didnt find how
...can u give me how
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Hesk 2.4 - Pop3 Fetching

Post 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.
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
bubaweb
Posts: 6
Joined: Fri Aug 17, 2012 2:13 pm

Re: Hesk 2.4 - Pop3 Fetching

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

Re: Hesk 2.4 - Pop3 Fetching

Post 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.
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
bubaweb
Posts: 6
Joined: Fri Aug 17, 2012 2:13 pm

Re: Hesk 2.4 - Pop3 Fetching

Post 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');

bubaweb
Posts: 6
Joined: Fri Aug 17, 2012 2:13 pm

Re: Hesk 2.4 - Pop3 Fetching

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

Re: Hesk 2.4 - Pop3 Fetching

Post 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?
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
bubaweb
Posts: 6
Joined: Fri Aug 17, 2012 2:13 pm

Re: Hesk 2.4 - Pop3 Fetching

Post 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
kidrobot2k4
Posts: 4
Joined: Wed Aug 15, 2012 5:13 pm

Re: Hesk 2.4 - Pop3 Fetching

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