EDIT: Below are instructions that allowed me to fetch mail from multiple inboxes into specified categories.
Hi! Right, I almost managed to figure out that to achieve multi-inbox downloads but I have some problem with password, as I am unable to specify it and when I execute the script, it says
Code: Select all
Error: Password error: Authentication failed
. I understand that this is getting the password from the admin panel because I didn't specify it in the PHP file. How do you specify it?
So far I've this is what I figured out...
First you need to skip checking whether POP3 is ON or OFF in Admin Panel
in /inc/mail/hesk_pop3.php
find:
Code: Select all
// Is this feature enabled?
if (empty($hesk_settings['pop3']))
{
die($hesklang['pfd']);
}
change to:
Code: Select all
// Is this feature enabled?
// if (empty($hesk_settings['pop3']))
// {
// die($hesklang['pfd']);
//}
in /inc/mail/hesk_pop3.php
Find:
Code: Select all
require(HESK_PATH . 'hesk_settings.inc.php');
Underneath add (remember to put your own details there):
Code: Select all
$hesk_settings['pop3_host_name']='mail.server.com';
$hesk_settings['pop3_host_port']=110;
$hesk_settings['pop3_tls']=0;
$hesk_settings['pop3_user']='user@server.com';
$hesk_settings['pop3_password']='password';
in /inc/mail/hesk_pop3.php
find:
Code: Select all
define('HESK_PATH', dirname(dirname(dirname(__FILE__))) . '/');
underneath add:
in /inc/pipe_functions.inc.php
find:
change to:
Now you're all set up

To add new inbox for HESK to check and create tasks from that inbox into specified category just make a copy of /inc/mail/hesk_pop3.php and edit the target category ID in define('CATEGORY',
1);
Next define the details required to connect to the mailbox (the code added below require(HESK_PATH . 'hesk_settings.inc.php');
Then just call this file via browser or CRON.
thanks and regards, grand