From 884fd0768727f5eaefed251d199ef1730d3eba55 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 31 May 2017 15:10:58 +0200 Subject: [PATCH] WIP spam workflow and SpamTitian integration --- admin/inc/class.admin_mail.inc.php | 7 ++- admin/templates/default/mailaccount.xet | 10 +++-- admin/templates/default/mailwizard.folder.xet | 12 ++++++ api/setup/setup.inc.php | 3 +- api/setup/tables_current.inc.php | 4 +- api/setup/tables_update.inc.php | 43 +++++++++++++++++++ mail/lang/egw_de.lang | 5 ++- mail/lang/egw_en.lang | 11 +++-- 8 files changed, 83 insertions(+), 12 deletions(-) diff --git a/admin/inc/class.admin_mail.inc.php b/admin/inc/class.admin_mail.inc.php index 6aee26626a..0ddb756cc6 100644 --- a/admin/inc/class.admin_mail.inc.php +++ b/admin/inc/class.admin_mail.inc.php @@ -385,7 +385,8 @@ class admin_mail //_debug_array($content); $sel_options['acc_folder_sent'] = $sel_options['acc_folder_trash'] = $sel_options['acc_folder_draft'] = $sel_options['acc_folder_template'] = - $sel_options['acc_folder_junk'] = $sel_options['acc_folder_archive'] = self::mailboxes($imap, $content); + $sel_options['acc_folder_junk'] = $sel_options['acc_folder_archive'] = + $sel_options['acc_folder_ham'] = self::mailboxes($imap, $content); } catch(Exception $e) { $content['msg'] = $e->getMessage(); @@ -430,6 +431,7 @@ class admin_mail 'acc_folder_draft' => array('\\drafts', 'drafts'), 'acc_folder_template' => array('', 'templates'), 'acc_folder_junk' => array('\\junk', 'junk', 'spam'), + 'acc_folder_ham' => array('', 'ham'), 'acc_folder_archive' => array('', 'archive'), ) as $name => $common_names) { @@ -1174,7 +1176,8 @@ class admin_mail try { $sel_options['acc_folder_sent'] = $sel_options['acc_folder_trash'] = $sel_options['acc_folder_draft'] = $sel_options['acc_folder_template'] = - $sel_options['acc_folder_junk'] = $sel_options['acc_folder_archive'] = $sel_options['notify_folders'] = + $sel_options['acc_folder_junk'] = $sel_options['acc_folder_archive'] = + $sel_options['notify_folders'] = $sel_options['acc_folder_ham'] = self::mailboxes(self::imap_client ($content)); } catch(Exception $e) { diff --git a/admin/templates/default/mailaccount.xet b/admin/templates/default/mailaccount.xet index 0d53e1b514..6e13291232 100644 --- a/admin/templates/default/mailaccount.xet +++ b/admin/templates/default/mailaccount.xet @@ -147,6 +147,10 @@ + + + + @@ -237,9 +241,9 @@ - - - + + + diff --git a/admin/templates/default/mailwizard.folder.xet b/admin/templates/default/mailwizard.folder.xet index 38b78bb27a..574589944c 100644 --- a/admin/templates/default/mailwizard.folder.xet +++ b/admin/templates/default/mailwizard.folder.xet @@ -43,6 +43,18 @@ + + + + + + + + + + + +