Changeset d8c440c in github
- Timestamp:
- Mar 24, 2010 10:45:49 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 13540e0
- Parents:
- 02e2b43
- Files:
-
- 4 edited
-
CHANGELOG (modified) (1 diff)
-
config/main.inc.php.dist (modified) (1 diff)
-
program/include/rcmail.php (modified) (1 diff)
-
program/lib/imap.inc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rd50b857 rd8c440c 2 2 =========================== 3 3 4 - Added 'imap_force_caps' option for after-login CAPABILITY checking (#1485750) 4 5 - Password: Support dovecotpw encryption 5 6 - TinyMCE 3.3.1 -
config/main.inc.php.dist
r3e34297 rd8c440c 75 75 $rcmail_config['imap_root'] = null; 76 76 $rcmail_config['imap_delimiter'] = null; 77 78 // By default IMAP capabilities are readed after connection to IMAP server 79 // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list 80 // after login. Set to True if you've got this case. 81 $rcmail_config['imap_force_caps'] = false; 77 82 78 83 // ---------------------------------- -
program/include/rcmail.php
rf52c936f rd8c440c 427 427 'rootdir' => isset($_SESSION['imap_root']) ? $_SESSION['imap_root'] : $this->config->get('imap_root'), 428 428 'debug_mode' => (bool) $this->config->get('imap_debug', 0), 429 'force_caps' => (bool) $this->config->get('imap_force_caps'), 429 430 ); 430 431 -
program/lib/imap.inc
rcff8861 rd8c440c 390 390 } 391 391 392 function iil_C learCapability()392 function iil_C_ClearCapability($conn) 393 393 { 394 394 $conn->capability = array(); … … 551 551 $iil_errornum = 0; 552 552 553 // set some imapoptions553 // set options 554 554 if (is_array($options)) { 555 foreach($options as $optkey => $optval) { 556 if ($optkey == 'auth_method') { 557 $auth_method = strtoupper($optval); 558 } else if ($optkey == 'rootdir') { 559 $my_prefs['rootdir'] = $optval; 560 } else if ($optkey == 'delimiter') { 561 $my_prefs['delimiter'] = $optval; 562 } else if ($optkey == 'debug_mode') { 563 $my_prefs['debug_mode'] = $optval; 564 } 565 } 566 } 567 568 if (empty($auth_method)) 555 $my_prefs = $options; 556 } 557 // set auth method 558 if (!empty($my_prefs['auth_method'])) { 559 $auth_method = strtoupper($my_prefs['auth_method']); 560 } else { 569 561 $auth_method = 'CHECK'; 570 562 } 563 571 564 $message = "INITIAL: $auth_method\n"; 572 565 573 566 $result = false; 574 567 … … 580 573 $conn->user = $user; 581 574 $conn->host = $host; 582 575 583 576 if ($my_prefs['sort_field'] == 'INTERNALDATE') { 584 577 $IMAP_USE_INTERNAL_DATE = true; … … 586 579 $IMAP_USE_INTERNAL_DATE = false; 587 580 } 588 581 589 582 //check input 590 583 if (empty($host)) { … … 661 654 662 655 // Now we're authenticated, capabilities need to be reread 663 iil_C learCapability();656 iil_C_ClearCapability($conn); 664 657 } 665 658 } … … 706 699 707 700 if (is_resource($result)) { 701 if ($my_prefs['force_caps']) { 702 iil_C_ClearCapability($conn); 703 } 708 704 iil_C_Namespace($conn); 709 705 return $conn;
Note: See TracChangeset
for help on using the changeset viewer.
