Changeset 4180 in subversion
- Timestamp:
- Nov 4, 2010 10:03:26 AM (3 years ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 2 edited
-
include/rcube_imap.php (modified) (19 diffs)
-
steps/mail/pagenav.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap.php
r4170 r4180 114 114 } 115 115 116 116 117 117 /** 118 118 * Connect to an IMAP server … … 183 183 } 184 184 185 185 186 186 /** 187 187 * Close IMAP connection … … 196 196 } 197 197 198 198 199 199 /** 200 200 * Close IMAP connection and re-connect … … 234 234 return ($this->conn) ? $this->conn->error : ''; 235 235 } 236 236 237 237 238 238 /** … … 246 246 } 247 247 248 248 249 249 /** 250 250 * Set a root folder for the IMAP connection. … … 268 268 } 269 269 270 270 271 271 /** 272 272 * Set default message charset … … 282 282 } 283 283 284 284 285 285 /** 286 286 * This list of folders will be listed above all other folders … … 300 300 } 301 301 302 302 303 303 /** 304 304 * Set internal mailbox reference. … … 322 322 } 323 323 324 324 325 /** 326 * Forces selection of a mailbox 327 * 328 * @param string $mailbox Mailbox/Folder name 329 * @access public 330 */ 331 function select_mailbox($mailbox) 332 { 333 $mailbox = $this->mod_mailbox($mailbox); 334 335 $selected = $this->conn->select($mailbox); 336 337 if ($selected && $this->mailbox != $mailbox) { 338 // clear messagecount cache for this mailbox 339 $this->_clear_messagecount($mailbox); 340 $this->mailbox = $mailbox; 341 } 342 } 343 344 325 345 /** 326 346 * Set internal list page … … 334 354 } 335 355 336 356 337 357 /** 338 358 * Set internal page size … … 346 366 } 347 367 348 368 349 369 /** 350 370 * Save a set of message ids for future message listing methods … … 373 393 } 374 394 375 395 376 396 /** 377 397 * Return the saved search set as hash array … … 389 409 } 390 410 391 411 392 412 /** 393 413 * Returns the currently used mailbox name … … 401 421 } 402 422 403 423 404 424 /** 405 425 * Returns the IMAP server's capability … … 414 434 } 415 435 416 436 417 437 /** 418 438 * Sets threading flag to the best supported THREAD algorithm … … 438 458 } 439 459 440 460 441 461 /** 442 462 * Checks the PERMANENTFLAGS capability of the current mailbox … … 454 474 } 455 475 456 476 457 477 /** 458 478 * Returns the delimiter that is used by the IMAP server for folder separation … … 472 492 } 473 493 474 494 475 495 /** 476 496 * Get message count for a specific mailbox … … 490 510 } 491 511 492 512 493 513 /** 494 514 * Private method for getting nr of messages -
trunk/roundcubemail/program/steps/mail/pagenav.inc
r4179 r4180 21 21 22 22 $uid = get_input_value('_uid', RCUBE_INPUT_GET); 23 $cnt = $IMAP->messagecount(NULL, 'ALL'); // Only messages, no threads here 23 24 // Select mailbox first, for better performance 25 $mbox_name = $IMAP->get_mailbox_name(); 26 $IMAP->select_mailbox($mbox_name); 27 28 // Get messages count (only messages, no threads here) 29 $cnt = $IMAP->messagecount(NULL, 'ALL'); 24 30 25 31 if ($_SESSION['sort_col'] == 'date' && $_SESSION['sort_order'] != 'DESC'
Note: See TracChangeset
for help on using the changeset viewer.
