plugin depends on imap function. init.php changes removed imap functions
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 15 May 2006 18:37:29 +0000 (18:37 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 15 May 2006 18:37:29 +0000 (18:37 +0000)
from webmail.php

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11143 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/filters/filters.php

index 727b45b..a9a89c9 100644 (file)
@@ -25,6 +25,12 @@ global $UseSeparateImapConnection,
     $SpamFilters_DNScache, $SpamFilters_BulkQuery, $SpamFilters_SharedCache,
     $SpamFilters_CacheTTL;
 
     $SpamFilters_DNScache, $SpamFilters_BulkQuery, $SpamFilters_SharedCache,
     $SpamFilters_CacheTTL;
 
+/**
+ * load required functions. Plugin depends on IMAP functions and they are not 
+ * loaded in src/webmail.php
+ */
+include_once (SM_PATH . 'functions/imap.php');
+
 /** load default config */
 if (file_exists(SM_PATH . 'plugins/filters/config_default.php')) {
     include_once (SM_PATH . 'plugins/filters/config_default.php');
 /** load default config */
 if (file_exists(SM_PATH . 'plugins/filters/config_default.php')) {
     include_once (SM_PATH . 'plugins/filters/config_default.php');