Tz tz tz André.... (that costs a beer)
It is very simple, alle already existing cases are routed to the case owner.
New cases are created in module /modules/InboundEmail/InboundEmail.php in function handleCreateCase($email,$userid)
If you want to assign all new cases to a predefined Userid you cann add a line after the function header like this:
PHP Code:
function handleCreateCase($email, $userId) {
global $current_user, $mod_strings, $current_language;
//neu Line:
$userid='846b2689-69d8-e65e-1fe7-4857a95f8466';
//
$mod_strings = return_module_language($current_language, "Emails");
The function handleCreateCase itself is called from the scheduler module /modules/Scheduler/_AddJobsHere.php where the userid is determined by certain load-sharing algorithms. Instead of changing InboundEmail.php you could even change the call from
PHP Code:
$ieX->handleCreateCase($ieX->email, $userId);
to
PHP Code:
$userId='846b2689-69d8-e65e-1fe7-4857a95f8466';
$ieX->handleCreateCase($ieX->email, $userId);
'846b2689-69d8-e65e-1fe7-4857a95f8466' is only an example, I am really sure you have no such userid in your system yet.
Bookmarks