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 04d91ce..87bd53c 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 86713f2..7acbc5b 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 f3dc3ad..20d476e 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;
 }