Fix sorting messages by size on servers without SORT capability (#1489981)

pull/201/head
Aleksander Machniak 10 years ago
parent ac0ec6d546
commit 4922e55d58

@ -57,6 +57,7 @@ CHANGELOG Roundcube Webmail
- Fix Delete button state after deleting identity/response (#1489972) - Fix Delete button state after deleting identity/response (#1489972)
- Fix bug where contacts with no email address were listed on compose addressbook (#1489970) - Fix bug where contacts with no email address were listed on compose addressbook (#1489970)
- Fix images import from various vCard formats (#1489977) - Fix images import from various vCard formats (#1489977)
- Fix sorting messages by size on servers without SORT capability (#1489981)
RELEASE 1.0.1 RELEASE 1.0.1
------------- -------------

@ -1916,8 +1916,8 @@ class rcube_imap_generic
$result[$id] = ''; $result[$id] = '';
} }
} else if ($mode == 2) { } else if ($mode == 2) {
if (preg_match('/(UID|RFC822\.SIZE) ([0-9]+)/', $line, $matches)) { if (preg_match('/' . $index_field . ' ([0-9]+)/', $line, $matches)) {
$result[$id] = trim($matches[2]); $result[$id] = trim($matches[1]);
} else { } else {
$result[$id] = 0; $result[$id] = 0;
} }

Loading…
Cancel
Save