Changeset 5046 in subversion
- Timestamp:
- Aug 11, 2011 4:32:04 AM (22 months ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap_generic.php (modified) (34 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r5041 r5046 2 2 =========================== 3 3 4 - Added IMAP ENABLE (RFC5161) support 4 5 - Add newlines between organization, department, jobtitle (#1488028) 5 6 - Recalculate date when replying to a message and localize the cite header (#1487675) -
trunk/roundcubemail/program/include/rcube_imap_generic.php
r4914 r5046 875 875 * 876 876 * @return boolean True on success, false on error 877 * @access public878 877 */ 879 878 function select($mailbox) … … 930 929 * 931 930 * @return array Status item-value hash 932 * @access public933 931 * @since 0.5-beta 934 932 */ … … 984 982 * 985 983 * @return boolean True on success, False on error 986 * @access public987 984 */ 988 985 function expunge($mailbox, $messages=NULL) … … 1017 1014 * 1018 1015 * @return boolean True on success, False on error 1019 * @access public1020 1016 * @since 0.5 1021 1017 */ … … 1038 1034 * 1039 1035 * @return boolean True on success, False on error 1040 * @access public1041 1036 */ 1042 1037 function subscribe($mailbox) … … 1054 1049 * 1055 1050 * @return boolean True on success, False on error 1056 * @access public1057 1051 */ 1058 1052 function unsubscribe($mailbox) … … 1070 1064 * 1071 1065 * @return boolean True on success, False on error 1072 * @access public1073 1066 */ 1074 1067 function deleteFolder($mailbox) … … 1086 1079 * 1087 1080 * @return boolean True on success, False on error 1088 * @access public1089 1081 */ 1090 1082 function clearFolder($mailbox) … … 1111 1103 * 1112 1104 * @return int Number of messages, False on error 1113 * @access public1114 1105 */ 1115 1106 function countMessages($mailbox, $refresh = false) … … 1144 1135 * 1145 1136 * @return int Number of messages, False on error 1146 * @access public1147 1137 */ 1148 1138 function countRecent($mailbox) … … 1167 1157 * 1168 1158 * @return int Number of messages, False on error 1169 * @access public1170 1159 */ 1171 1160 function countUnseen($mailbox) … … 1198 1187 * 1199 1188 * @return array Server identification information key/value hash 1200 * @access public1201 1189 * @since 0.6 1202 1190 */ … … 1223 1211 $result[$items[$i]] = $items[$i+1]; 1224 1212 } 1213 1214 return $result; 1215 } 1216 1217 return false; 1218 } 1219 1220 /** 1221 * Executes ENABLE command (RFC5161) 1222 * 1223 * @param mixed $extension Extension name to enable (or array of names) 1224 * 1225 * @return array|bool List of enabled extensions, False on error 1226 * @since 0.6 1227 */ 1228 function enable($extension) 1229 { 1230 if (empty($extension)) 1231 return false; 1232 1233 if (!$this->hasCapability('ENABLE')) 1234 return false; 1235 1236 if (!is_array($extension)) 1237 $extension = array($extension); 1238 1239 list($code, $response) = $this->execute('ENABLE', $extension); 1240 1241 if ($code == self::ERROR_OK && preg_match('/\* ENABLED /i', $response)) { 1242 $response = substr($response, 10); // remove prefix "* ENABLED " 1243 $result = (array) $this->tokenizeResponse($response); 1225 1244 1226 1245 return $result; … … 1467 1486 * 1468 1487 * @return int Message sequence identifier 1469 * @access public1470 1488 */ 1471 1489 function UID2ID($mailbox, $uid) … … 1487 1505 * 1488 1506 * @return int Message unique identifier 1489 * @access public1490 1507 */ 1491 1508 function ID2UID($mailbox, $id) … … 2111 2128 * @return array List of mailboxes or hash of options if $status_opts argument 2112 2129 * is non-empty. 2113 * @access public2114 2130 */ 2115 2131 function listMailboxes($ref, $mailbox, $status_opts=array(), $select_opts=array()) … … 2127 2143 * @return array List of mailboxes or hash of options if $status_opts argument 2128 2144 * is non-empty. 2129 * @access public2130 2145 */ 2131 2146 function listSubscribed($ref, $mailbox, $status_opts=array()) … … 2147 2162 * @return array List of mailboxes or hash of options if $status_ops argument 2148 2163 * is non-empty. 2149 * @access private2150 2164 */ 2151 2165 private function _listMailboxes($ref, $mailbox, $subscribed=false, … … 2655 2669 * @return boolean True on success, False on failure 2656 2670 * 2657 * @access public2658 2671 * @since 0.5-beta 2659 2672 */ … … 2679 2692 * @return boolean True on success, False on failure 2680 2693 * 2681 * @access public2682 2694 * @since 0.5-beta 2683 2695 */ … … 2697 2709 * 2698 2710 * @return array User-rights array on success, NULL on error 2699 * @access public2700 2711 * @since 0.5-beta 2701 2712 */ … … 2738 2749 * 2739 2750 * @return array List of user rights 2740 * @access public2741 2751 * @since 0.5-beta 2742 2752 */ … … 2770 2780 * 2771 2781 * @return array MYRIGHTS response on success, NULL on error 2772 * @access public2773 2782 * @since 0.5-beta 2774 2783 */ … … 2797 2806 * 2798 2807 * @return boolean True on success, False on failure 2799 * @access public2800 2808 * @since 0.5-beta 2801 2809 */ … … 2827 2835 * @return boolean True on success, False on failure 2828 2836 * 2829 * @access public2830 2837 * @since 0.5-beta 2831 2838 */ … … 2857 2864 * @return array GETMETADATA result on success, NULL on error 2858 2865 * 2859 * @access public2860 2866 * @since 0.5-beta 2861 2867 */ … … 2949 2955 * 2950 2956 * @return boolean True on success, False on failure 2951 * @access public2952 2957 * @since 0.5-beta 2953 2958 */ … … 2981 2986 * @return boolean True on success, False on failure 2982 2987 * 2983 * @access public2984 2988 * @since 0.5-beta 2985 2989 */ … … 3003 3007 * @return array Annotations result on success, NULL on error 3004 3008 * 3005 * @access public3006 3009 * @since 0.5-beta 3007 3010 */ … … 3091 3094 * 3092 3095 * @return string Command identifier 3093 * @access public3094 3096 * @since 0.5-beta 3095 3097 */ … … 3110 3112 * 3111 3113 * @return mixed Response code or list of response code and data 3112 * @access public3113 3114 * @since 0.5-beta 3114 3115 */ … … 3168 3169 * 3169 3170 * @return mixed Tokens array or string if $num=1 3170 * @access public3171 3171 * @since 0.5-beta 3172 3172 */ … … 3343 3343 * @param boolean $debug New value for the debugging flag. 3344 3344 * 3345 * @access public3346 3345 * @since 0.5-stable 3347 3346 */ … … 3357 3356 * @param string $message Debug mesage text. 3358 3357 * 3359 * @access private3360 3358 * @since 0.5-stable 3361 3359 */
Note: See TracChangeset
for help on using the changeset viewer.
