Closes bug #479899
[squirrelmail.git] / functions / imap.php
index 6ec0025efc49d783cd5c287c124a01bb8293a9b4..fc65a68163ef76c96bec0d4378fa09cec282b246 100644 (file)
@@ -1,11 +1,18 @@
 <?php
    /**  This just includes the different sections of the imap functions.
     **  They have been organized into these sections for simplicity sake.
+    **
+    **  $Id$
     **/
 
-   $imap_php = true;
+   if (defined ('imap_php'))
+      return; 
+   define ('imap_php', true); 
+
+   $imap_backend = 'imap';
    
-   include ("../functions/imap_mailbox.php");
-   include ("../functions/imap_messages.php");
-   include ("../functions/imap_general.php");
-?>
+   require_once('../functions/' . $imap_backend . '_mailbox.php');
+   require_once('../functions/' . $imap_backend . '_messages.php');
+   require_once('../functions/' . $imap_backend . '_general.php');
+   require_once('../functions/' . $imap_backend . '_search.php');
+?>
\ No newline at end of file