Brent,
[squirrelmail.git] / plugins / filters / setup.php
index 19057390d102dac1e6551769ba14f81f16ab9c69..5169dba936ad64800e46c0b881926aa8231f3f79 100644 (file)
@@ -1,28 +1,29 @@
 <?php
 <?php
-   /*
-    *  Message and Spam Filter Plugin
-    *  By Luke Ehresman <luke@squirrelmail.org>
-    *     Tyler Akins
-    *     Brent Bice
-    *  (c) 2000 (GNU GPL - see ../../COPYING)
-    *
-    *  This plugin filters your inbox into different folders based upon given
-    *  criteria.  It is most useful for people who are subscibed to mailing lists
-    *  to help organize their messages.  The argument stands that filtering is
-    *  not the place of the client, which is why this has been made a plugin for
-    *  SquirrelMail.  You may be better off using products such as Sieve or
-    *  Procmail to do your filtering so it happens even when SquirrelMail isn't
-    *  running.
-    *
-    *  If you need help with this, or see improvements that can be made, please
-    *  email me directly at the address above.  I definately welcome suggestions
-    *  and comments.  This plugin, as is the case with all SquirrelMail plugins,
-    *  is not directly supported by the developers.  Please come to me off the
-    *  mailing list if you have trouble with it.
-    *
-    *  Also view plugins/README.plugins for more information.
-    *
-    */
+   /**
+    **  Message and Spam Filter Plugin
+    **
+    **  Copyright (c) 1999-2001 The Squirrelmail Development Team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    **  This plugin filters your inbox into different folders based upon given
+    **  criteria.  It is most useful for people who are subscibed to mailing lists
+    **  to help organize their messages.  The argument stands that filtering is
+    **  not the place of the client, which is why this has been made a plugin for
+    **  SquirrelMail.  You may be better off using products such as Sieve or
+    **  Procmail to do your filtering so it happens even when SquirrelMail isn't
+    **  running.
+    **
+    **  If you need help with this, or see improvements that can be made, please
+    **  email me directly at the address above.  I definately welcome suggestions
+    **  and comments.  This plugin, as is the case with all SquirrelMail plugins,
+    **  is not directly supported by the developers.  Please come to me off the
+    **  mailing list if you have trouble with it.
+    **
+    **  Also view plugins/README.plugins for more information.
+    **
+    **  $Id$
+    **
+    **/
 
    // Set this to true if you have problems -- check the README file
    // Note:  This doesn't work all of the time (No idea why)
 
    // Set this to true if you have problems -- check the README file
    // Note:  This doesn't work all of the time (No idea why)
       $squirrelmail_plugin_hooks['left_main_before']['filters'] = 'start_filters';
       if ($mailbox == 'INBOX')
          $squirrelmail_plugin_hooks["right_main_after_header"]['filters'] = 'start_filters';
       $squirrelmail_plugin_hooks['left_main_before']['filters'] = 'start_filters';
       if ($mailbox == 'INBOX')
          $squirrelmail_plugin_hooks["right_main_after_header"]['filters'] = 'start_filters';
-      $squirrelmail_plugin_hooks['options_register']['filters'] = 'squirrelmail_plugin_register';
+      $squirrelmail_plugin_hooks['optpage_register_block']['filters'] = 'squirrelmail_plugin_optpage_register_block';
    }
 
    }
 
-   function squirrelmail_plugin_register() {
-      global $optionpages;
+   function squirrelmail_plugin_optpage_register_block() {
+      global $optpage_blocks;
 
 
-      $optionpages[] = array(
+      $optpage_blocks[] = array(
          'name' => _("Message Filters"),
          'url'  => '../plugins/filters/options.php',
          'desc' => _("Filtering enables messages with different criteria to be automatically filtered into different folders for easier organization."),
          'js'   => false
       );
    }
          'name' => _("Message Filters"),
          'url'  => '../plugins/filters/options.php',
          'desc' => _("Filtering enables messages with different criteria to be automatically filtered into different folders for easier organization."),
          'js'   => false
       );
    }
-?>
\ No newline at end of file
+?>