Changeset 4485 for branches/2.2.0.1/expressoMail1_2
- Timestamp:
- 05/24/11 10:52:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/expressoMail1_2/inc/class.imap_functions.inc.php
r4478 r4485 3519 3519 $elem = $this->get_msg_detail($new_search,$name_box,$mbox_stream); 3520 3520 $elem['boxname'] = mb_convert_encoding( $name_box, "ISO_8859-1", "UTF7-IMAP" ); 3521 $elem['uid'] = $new_search; 3521 $elem['uid'] = $new_search; 3522 /* compare dates in ordering */ 3523 $elem['udatecomp'] = substr ($elem['udate'], -4) ."-". substr ($elem['udate'], 3, 2) ."-". substr ($elem['udate'], 0, 2); 3522 3524 $retorno[] = $elem; 3523 3525 } … … 3563 3565 $elem = $this->get_msg_detail($new_search,$name_box,$mbox_stream); 3564 3566 $elem['boxname'] = mb_convert_encoding( $name_box, "ISO_8859-1", "UTF7-IMAP" ); 3565 $elem['uid'] = $new_search; 3567 $elem['uid'] = $new_search; 3568 /* compare dates in ordering */ 3569 $elem['udatecomp'] = substr ($elem['udate'], -4) ."-". substr ($elem['udate'], 3, 2) ."-". substr ($elem['udate'], 0, 2); 3566 3570 $retorno[] = $elem; 3567 3571 } … … 3579 3583 3580 3584 /* Comparison functions, descendent is ascendent with parms inverted */ 3581 function SORTDATE($a, $b){ return ($a['udate '] < $b['udate']); }3585 function SORTDATE($a, $b){ return ($a['udatecomp'] < $b['udatecomp']); } 3582 3586 function SORTDATE_REVERSE($b, $a) { return SORTDATE($a,$b); } 3583 3587
Note: See TracChangeset
for help on using the changeset viewer.