** -> *
[squirrelmail.git] / functions / imap_mailbox.php
index 0721eae3d0a49bbfa9642f7016377c30f6d91d8a..031ccc43f498d9bf689dd688c4a4e5c9fc581047 100755 (executable)
@@ -1,15 +1,15 @@
 <?php
-   /**
-    **  imap_mailbox.php
-    **
-    **  This impliments all functions that manipulate mailboxes
-    **
-    **  $Id$
-    **/
 
-   if (defined ('imap_mailbox_php'))
-      return;
-   define ('imap_mailbox_php', true);
+   /**
+    *   imap_mailbox.php
+    *
+    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
+    *   Licensed under the GNU GPL. For full terms see the file COPYING.
+    *
+    *   This impliments all functions that manipulate mailboxes
+    *
+    *   $Id$
+    */
 
    /******************************************************************************
     **  Expunges a mailbox 
    function sqimap_mailbox_select ($imap_stream, $mailbox, $hide=true, $recent=false) {
       global $auto_expunge;
 
-      if( $mailbox == _("None") )
+      if( $mailbox == 'None' )
           return;
-      
+
       fputs ($imap_stream, sqimap_session_id() . " SELECT \"$mailbox\"\r\n");
              $read = sqimap_read_data($imap_stream, sqimap_session_id(), true, $response, $message);
       if ($recent) {
          for ($i=0; $i<count($read); $i++) {
-            if (strpos(strtolower($read[$i]), "recent")) {
-               $r = explode(" ", $read[$i]);
+            if (strpos(strtolower($read[$i]), 'recent')) {
+               $r = explode(' ', $read[$i]);
             }
          }
          return $r[1];
@@ -63,7 +63,7 @@
     ******************************************************************************/
    function sqimap_mailbox_create ($imap_stream, $mailbox, $type) {
       global $delimiter;
-      if (strtolower($type) == "noselect") {
+      if (strtolower($type) == 'noselect') {
          $mailbox = $mailbox.$delimiter;
       }
       fputs ($imap_stream, sqimap_session_id() . " CREATE \"$mailbox\"\r\n");