From 9ad17edb68a98127276477e2337c52996b6e821c Mon Sep 17 00:00:00 2001 From: cigamit Date: Fri, 1 Aug 2003 02:30:03 +0000 Subject: [PATCH] Add "attachments_bottom" hook to allow manipulating the attachments or to add to the attachments (Download All plugin) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5488 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 2 ++ doc/plugin.txt | 1 + functions/mime.php | 3 +++ 3 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 04d91cec..87bd53c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -67,6 +67,8 @@ Version 1.5.0 -- CVS - Add support for Mail-Followup-To header. - Add a confirmation for the user that their mail has been sent. - Fixed issue with forwarding emails having a ) appended to the end. + - Add "attachments_bottom" hook to allow manipulating/adding to the attachments + ************************************** *** SquirrelMail Stable Series 1.4 *** diff --git a/doc/plugin.txt b/doc/plugin.txt index 86713f20..7acbc5be 100644 --- a/doc/plugin.txt +++ b/doc/plugin.txt @@ -203,6 +203,7 @@ but may be out of date soon thereafter. You never know. ;-) mailbox_display_buttons functions/mailbox_display.php do_hook message_body functions/mime.php do_hook ^ attachment $type0/$type1 functions/mime.php do_hook + attachments_bottom functions/mime.php hook_func generic_header functions/page_header.php do_hook menuline functions/page_header.php do_hook internal_link functions/page_header.php hook_func diff --git a/functions/mime.php b/functions/mime.php index f3dc3ad4..20d476e7 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -534,6 +534,9 @@ function formatAttachments($message, $exclude_id, $mailbox, $id) { unset($links); $attachments .= "\n"; } + $attachmentadd = do_hook_function('attachments_bottom',$attachments); + if ($attachmentadd != '') + $attachments = $attachmentadd; return $attachments; } -- 2.25.1