Add "attachments_bottom" hook to allow manipulating the attachments
authorcigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 1 Aug 2003 02:30:03 +0000 (02:30 +0000)
committercigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 1 Aug 2003 02:30:03 +0000 (02:30 +0000)
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
doc/plugin.txt
functions/mime.php

index 04d91cecc8f3eb0d93008eb5cde9edc9aee03ac4..87bd53c2ae21c98071f679f86f9f8e3114e59de2 100644 (file)
--- 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 ***
index 86713f20b144b252ac8c03411486537266d416b1..7acbc5beb497b9008a91d27ae0b06d16eceb8e32 100644 (file)
@@ -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
index f3dc3ad46c4fd27ea98d735e0ce9f8496dc5b0c7..20d476e700796d428407c9770850967502b6bd17 100644 (file)
@@ -534,6 +534,9 @@ function formatAttachments($message, $exclude_id, $mailbox, $id) {
         unset($links);
         $attachments .= "</TD></TR>\n";
     }
+    $attachmentadd = do_hook_function('attachments_bottom',$attachments);
+    if ($attachmentadd != '')
+        $attachments = $attachmentadd;
     return $attachments;
 }