updated docs
[squirrelmail.git] / functions / imap.php
index 44c63bdae089d7aabb7b09edc59e79245224451b..824501ce3a4352b770a9df654186cf6eba7e015c 100644 (file)
@@ -1,10 +1,18 @@
-<?
+<?php
    /**  This just includes the different sections of the imap functions.
     **  They have been organized into these sections for simplicity sake.
+    **
+    **  $Id$
     **/
+
+   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");
+   include ('../functions/' . $imap_backend . '_mailbox.php');
+   include ('../functions/' . $imap_backend . '_messages.php');
+   include ('../functions/' . $imap_backend . '_general.php');
+   include ('../functions/' . $imap_backend . '_search.php');
 ?>
-