Skip to content

#1639 mailconverter custom actions

With this modification it's possible to add custom actions to mail converter just like custom workflow function! New action would be displayed along with default actions.

Now this functionality handles cases if module doesn't exist or is disabled and check function path to be reachable

Follow this example:

require_once('modules/Settings/MailConverter/handlers/MailScannerEntityMethodManager.inc'); $emm = new MailScannerEntityMethodManager($adb); $moduleName='HelpDesk'; $methodName='createticketcustom'; $functionName='createticketcustom_helpdesk'; $functionPath='modules/yourmodule/yourmoduleHandler.php'; $emm->removeEntityMethod($moduleName, $methodName); $emm->addEntityMethod($moduleName, $methodName, $functionPath, $functionName);

Merge request reports