Attachment hook has the filename sent.
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 13 Oct 2000 16:33:26 +0000 (16:33 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 13 Oct 2000 16:33:26 +0000 (16:33 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@795 7612ce4b-ef26-0410-bec9-ea0150e637f0

doc/plugin.txt
functions/mime.php

index a316b3144fc170c3a27c0eaf43aa0e9a81215a20..60a44f5ca0541373b41f4d4812ee172fd5edbb12 100644 (file)
@@ -221,8 +221,9 @@ This is a breakdown of the data passed in the array to the hook that is called:
   [4] = Mailbox name, urlencode()'d (urlMailbox)
   [5] = Entity ID inside mail message (ent)
   [6] = Default URL to go to when filename is clicked on (Alterable)
-  [7] = Sent if message was found from a search (where)
-  [8] = Sent if message was found from a search (what)
+  [7] = Filename that is displayed for the attachment
+  [8] = Sent if message was found from a search (where)
+  [9] = Sent if message was found from a search (what)
   
 To set up links for actions, you assign them like this:
   
index dd4d0eb03f41ff76421fc2383dc592be5a652ac8..81cf581cb6c17f2ca557afba60d86a5d5b0865f1 100644 (file)
                
                $HookResults = do_hook("attachment $type0/$type1", $Links,
                    $startMessage, $id, $urlMailbox, $ent, $DefaultLink, 
-                   $where, $what);
+                   $display_filename, $where, $what);
 
                $Links = $HookResults[1];
                $DefaultLink = $HookResults[6];