Browse Source

fixed uw bug with folder deleting with a delimeter at the end

Luke Ehresman 25 years ago
parent
commit
533ab75f54
2 changed files with 9 additions and 4 deletions
  1. 3 3
      BUG
  2. 6 1
      functions/imap_mailbox.php

+ 3 - 3
BUG

@@ -1,9 +1,6 @@
 Known BUGS to be fixed before 0.4pre1:
 Known BUGS to be fixed before 0.4pre1:
 
 
   -    LDAP preferences in conf.pl are not working.
   -    LDAP preferences in conf.pl are not working.
-  -    Next/Previous while viewing a message should take into account 
-       the way that the mailbox is sorted.  Right now, it just does it 
-		 by the next message id.
   -    If a new message comes in while still browsing cached message 
   -    If a new message comes in while still browsing cached message 
        list, the space is allocated, but it is blank.
        list, the space is allocated, but it is blank.
 (lme)  I'm not convinced that the cache gets deleted all the time.  I'll 
 (lme)  I'm not convinced that the cache gets deleted all the time.  I'll 
@@ -15,6 +12,9 @@ Known BUGS to be fixed before 0.4pre1:
 
 
 
 
 --SQUASHED--
 --SQUASHED--
+(lme)  Next/Previous while viewing a message should take into account 
+       the way that the mailbox is sorted.  Right now, it just does it 
+		 by the next message id.
 (lme)  Special folders don't get listed at the top of folder list
 (lme)  Special folders don't get listed at the top of folder list
 (lme)  The icon for message sorting doesn't always stay.  It usually 
 (lme)  The icon for message sorting doesn't always stay.  It usually 
        reverts back to the date.
        reverts back to the date.

+ 6 - 1
functions/imap_mailbox.php

@@ -118,7 +118,12 @@
          if ($flags) {
          if ($flags) {
             $boxes[$g]["flags"] = explode(" ", $flags);
             $boxes[$g]["flags"] = explode(" ", $flags);
          }
          }
-
+			for ($i=0; $i < count($boxes[$g]["flags"]); $i++) {
+				if ($boxes[$g]["flags"][$i] == "noselect") {
+					$boxes[$g]["unformatted-dm"] = $boxes[$g]["unformatted-dm"].$dm;
+					echo $boxes[$g]["unformatted-dm"]." - debug<br>";
+				}
+			}
       }
       }
       return $boxes;
       return $boxes;
    }
    }