summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap_generic.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-29 12:15:04 +0000
committeralecpl <alec@alec.pl>2010-09-29 12:15:04 +0000
commiteacce9b3f570f9f708df681b6551dd8f0f7e740d (patch)
treebc4a9b4fafe24ab4ae39168e3d1be862f7269a81 /program/include/rcube_imap_generic.php
parent5371dc78899b7a4c409a4db7e5775726012c8ef2 (diff)
- Messages caching: performance improvements, fixed syncing, fixes related with #1486748
Diffstat (limited to 'program/include/rcube_imap_generic.php')
-rw-r--r--program/include/rcube_imap_generic.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index b60ddc76e..160c154c1 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -1084,7 +1084,7 @@ class rcube_imap_generic
break;
if (preg_match('/^\* ([0-9]+) FETCH/', $line, $m)) {
- $id = $m[1];
+ $id = intval($m[1]);
$result[$id] = new rcube_mail_header;
$result[$id]->id = $id;
@@ -1111,9 +1111,9 @@ class rcube_imap_generic
if ($parts_count>=6) {
for ($i=0; $i<$parts_count; $i=$i+2) {
if ($a[$i] == 'UID')
- $result[$id]->uid = $a[$i+1];
+ $result[$id]->uid = intval($a[$i+1]);
else if ($a[$i] == 'RFC822.SIZE')
- $result[$id]->size = $a[$i+1];
+ $result[$id]->size = intval($a[$i+1]);
else if ($a[$i] == 'INTERNALDATE')
$time_str = $a[$i+1];
else if ($a[$i] == 'FLAGS')