Page 1 of 1

Notifications

Posted: Thu Jul 31, 2014 3:57 pm
by ruffmeister
is there a way to turn off email notifications on a new PIPED email only from POP3?

Re: Notifications

Posted: Fri Aug 01, 2014 8:10 am
by Klemen
Haven't tested it, but something like this might work:

1. in hesk_pop3.php add

Code: Select all

define('POP3',1);
somewhere at the top (for example after other "define(" lines).

2. in inc/pipe_functions.inc.php change

Code: Select all

hesk_notifyCustomer();
to

Code: Select all

if ( ! defined('POP3') ) 
{
hesk_notifyCustomer();
}
This will not send email notifications to the customer. If you want to turn off notifications for staff as well, wrap the same if statement around

Code: Select all

	if ($tmpvar['owner'] && $autoassign_owner['notify_assigned'])
	{
		hesk_notifyAssignedStaff($autoassign_owner, 'ticket_assigned_to_you');
	}
	// --> No autoassign, find and notify appropriate staff
	elseif ( ! $tmpvar['owner'] )
	{
		hesk_notifyStaff('new_ticket_staff', " `notify_new_unassigned` = '1' ");
	}
so it becomes

Code: Select all

if ( ! defined('POP3') )
{
	if ($tmpvar['owner'] && $autoassign_owner['notify_assigned'])
	{
		hesk_notifyAssignedStaff($autoassign_owner, 'ticket_assigned_to_you');
	}
	// --> No autoassign, find and notify appropriate staff
	elseif ( ! $tmpvar['owner'] )
	{
		hesk_notifyStaff('new_ticket_staff', " `notify_new_unassigned` = '1' ");
	}
}