Page 1 of 1

POP3 Fetching

Posted: Tue Jan 08, 2013 12:38 pm
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

Re: POP3 Fetching

Posted: Tue Jan 08, 2013 5:01 pm
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.

Re: POP3 Fetching

Posted: Wed Jan 09, 2013 1:01 pm
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?

Re: POP3 Fetching

Posted: Wed Jan 09, 2013 6:39 pm
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.