mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
WIP SpamTitan integration:
- Get email body and send it to spamTitan action handler
This commit is contained in:
parent
11f3719348
commit
5fb5a905e8
@ -889,12 +889,17 @@ class mail_ui
|
||||
$response = Api\Json\Response::get();
|
||||
if ($GLOBALS['egw_info']['apps']['stylite'])
|
||||
{
|
||||
$data = array_merge($_params, array(
|
||||
'userpwd' => $this->mail_bo->icServer['params']['acc_imap_password'],
|
||||
'user' => $this->mail_bo->icServer['params']['acc_imap_username'],
|
||||
'api_url' => $this->mail_bo->icServer['params']['acc_spam_api']
|
||||
$id_parts = self::splitRowID($_params['data']['row_id']);
|
||||
if ($id_parts['profileID'] && $id_parts['profileID'] != $this->mail_bo->profileID)
|
||||
{
|
||||
$this->changeProfile($id_parts['profileID']);
|
||||
}
|
||||
$_params['mailbody'] = $this->get_load_email_data($_params['data']['uid'], null, $id_parts['folder']);
|
||||
$msg[] = stylite_mail_spamtitan::execSpamTitanAction($_action, $_params, array(
|
||||
'userpwd' => $this->mail_bo->icServer->acc_imap_password,
|
||||
'user' => $this->mail_bo->icServer->acc_imap_username,
|
||||
'api_url' => $this->mail_bo->icServer->acc_spam_api
|
||||
));
|
||||
$msg[] = stylite_mail_spamtitan::execSpamTitanAction($_action, $_params, $data);
|
||||
}
|
||||
switch ($_action)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user