Changeset bbce3ed in github for program/include/rcube_imap.php
- Timestamp:
- Feb 28, 2011 12:59:13 PM (2 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 5aed4e82
- Parents:
- 29c5422
- File:
-
- 1 edited
-
program/include/rcube_imap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.php
r890eae6 rbbce3ed 3322 3322 3323 3323 /** 3324 * Returns the namespace where the folder is in 3325 * 3326 * @param string $mbox_name Folder name 3327 * 3328 * @return string One of 'personal', 'other' or 'shared' 3329 * @access public 3330 */ 3331 function mailbox_namespace($mbox_name) 3332 { 3333 if ($mbox_name == 'INBOX') { 3334 return 'personal'; 3335 } 3336 3337 foreach ($this->namespace as $type => $namespace) { 3338 if (is_array($namespace)) { 3339 foreach ($namespace as $ns) { 3340 if (strlen($ns[0])) { 3341 if ((strlen($ns[0])>1 && $mbox_name == substr($ns[0], 0, -1)) 3342 || strpos($mbox_name, $ns[0]) === 0 3343 ) { 3344 return $type; 3345 } 3346 } 3347 } 3348 } 3349 } 3350 3351 return 'personal'; 3352 } 3353 3354 3355 /** 3324 3356 * Modify folder name for input/output according to root dir and namespace 3325 3357 *
Note: See TracChangeset
for help on using the changeset viewer.
