From a9e750c8b2bef162f4f2ac3cfed66778d5fcc828 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 | 17 +++++++++++++++++ mail/lang/egw_de.lang | 5 ++++- mail/lang/egw_en.lang | 11 +++++++---- 8 files changed, 57 insertions(+), 12 deletions(-) diff --git a/admin/inc/class.admin_mail.inc.php b/admin/inc/class.admin_mail.inc.php index 99bf2b0442..7348dcabe6 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) { @@ -1203,7 +1205,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 29258868d4..d546a354a4 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 896e256f9c..3710ad0351 100644 --- a/admin/templates/default/mailwizard.folder.xet +++ b/admin/templates/default/mailwizard.folder.xet @@ -43,6 +43,18 @@ + + + + + + + + + + + +