Changeset 291 in subversion
- Timestamp:
- Aug 2, 2006 6:05:42 PM (7 years ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 2 edited
-
include/rcube_imap.inc (modified) (3 diffs)
-
steps/mail/check_recent.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap.inc
r288 r291 517 517 $headers_sorted = TRUE; 518 518 } 519 // cache is dirty, sync it 520 else if ($this->caching_enabled && $cache_status==-1 && !$recursive) 521 { 522 $this->sync_header_index($mailbox); 523 return $this->_list_headers($mailbox, $page, $this->sort_field, $this->sort_order, TRUE); 524 } 519 525 else 520 526 { 521 $sorter = new rcube_header_sorter();522 523 527 // retrieve headers from IMAP 524 528 if ($this->get_capability('sort') && ($msg_index = iil_C_Sort($this->conn, $mailbox, $this->sort_field, $this->skip_deleted ? 'UNDELETED' : ''))) 525 { 526 $sorter->set_sequence_numbers($msg_index); 527 529 { 528 530 $msgs = $msg_index[$begin]; 529 531 for ($i=$begin+1; $i < $end; $i++) … … 532 534 else 533 535 { 534 $msgs = sprintf("%d:%d", $begin+1, $end); 535 } 536 537 538 // cache is dirty, sync it 539 if ($this->caching_enabled && $cache_status==-1 && !$recursive) 540 { 541 $this->sync_header_index($mailbox); 542 return $this->_list_headers($mailbox, $page, $this->sort_field, $this->sort_order, TRUE); 543 } 544 536 $msgs = sprintf("%d:%d", $begin+1, $end); 537 538 $i = 0; 539 for ($msg_seqnum = $begin; $msg_seqnum <= $end; $msg_seqnum++) 540 $msg_index[$i++] = $msg_seqnum; 541 } 542 543 // use this class for message sorting 544 $sorter = new rcube_header_sorter(); 545 $sorter->set_sequence_numbers($msg_index); 545 546 546 547 // fetch reuested headers from server … … 574 575 return array_values($a_msg_headers); 575 576 } 576 577 578 579 580 581 function gethdrids($hdr)582 {583 return $hdr->uid . ',' . $hdr->id;584 }585 586 577 587 578 -
trunk/roundcubemail/program/steps/mail/check_recent.inc
r270 r291 41 41 $a_headers = array(); 42 42 for ($i=$recent_count, $id=$count-$recent_count+1; $i>0; $i--, $id++) 43 $a_headers[] = $IMAP->get_headers($id, NULL, FALSE); 43 { 44 $header = $IMAP->get_headers($id, NULL, FALSE); 45 if ($header->recent) 46 $a_headers[] = $header; 47 } 44 48 45 49 $commands .= rcmail_js_message_list($a_headers, TRUE);
Note: See TracChangeset
for help on using the changeset viewer.
