From 586285d0d48b4ba8dab87219196c26e9b338e58c Mon Sep 17 00:00:00 2001 From: Steven Ngesera Date: Sat, 5 Oct 2024 00:45:25 +0200 Subject: [PATCH 1/4] [ENH] Implement Expose IMAP capabilities for sharing folders --- modules/imap/functions.php | 16 +++++++++++++--- modules/imap/handler_modules.php | 1 + modules/imap/output_modules.php | 3 ++- modules/imap/site.css | 19 +++++++++++++++++++ 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/modules/imap/functions.php b/modules/imap/functions.php index 02ee8b9053..e5367a18b9 100644 --- a/modules/imap/functions.php +++ b/modules/imap/functions.php @@ -102,6 +102,12 @@ function prepare_imap_message_list($msgs, $mod, $type) { $mod->out('formatted_message_list', $res); }} +if (!hm_exists('open_share_folder_modal')) { +function open_share_folder_modal($folder, $id) { + +} +} + /** * Build HTML for a list of IMAP folders * @subpackage imap/functions @@ -111,7 +117,7 @@ function prepare_imap_message_list($msgs, $mod, $type) { * @return string */ if (!hm_exists('format_imap_folder_section')) { -function format_imap_folder_section($folders, $id, $output_mod, $with_input = false) { +function format_imap_folder_section($folders, $id, $output_mod, $with_input = false, $can_share_folders = false) { $results = '