POP3 Fetching

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
TimPSNC
Posts: 41
Joined: Tue Jan 08, 2013 12:33 pm

POP3 Fetching

Post by TimPSNC »

Is there a way of ensuring that emails are left when they are turned into tickets through POP3 fetching? Currently Hesk deletes the email when it fetches it, but I would like it to remain for archiving
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 Fetching

Post by Klemen »

To do that you will need to delete this code from inc/mail/hesk_pop3.php:

Code: Select all

$pop3->DeleteMessage($message);
Version 2.5 will have a settings option for this so it will be easier to control.
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
TimPSNC
Posts: 41
Joined: Tue Jan 08, 2013 12:33 pm

Re: POP3 Fetching

Post by TimPSNC »

I tried it but unless you remove the email from the inbox straight away, it keeps on creating a ticket everytime it checks the account. Is there anyway to stop this?
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 Fetching

Post by Klemen »

There is no "mark as read" POP3 command so the only way to do this if your server continues sending messages that have been retrieved with the POP3's RETR command is to store unique messages IDs in a database and track them/download only those that aren't in the database. Not something I can help code though.
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
Post Reply