- /** This is a hack for UW server
- ** Sometimes a folder will have a / at the end. If that's the case,
- ** the unsubscribe doesn't work for a box named "mailbox/". We have
- ** to strip off the / at the end. There may be a better way of doing
- ** this, but this is the best I've found so far. (lme - April 26, 2000)
- **/
- if ($imap_server_type == "uw") {
- if (substr($mailbox, -1) == "/") {
- $mailbox = substr($mailbox, 0, strlen($mailbox)-1);
- }
- }
-