summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap_generic.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-04 18:09:26 +0000
committeralecpl <alec@alec.pl>2010-10-04 18:09:26 +0000
commit103ddcde87f77da28fa2c1f7942763db1c65b34a (patch)
tree24f868e6d441590ddb0e65bec0685ae889d57f2b /program/include/rcube_imap_generic.php
parent9cc93aea7cda73d102c0a0045c66a5360da24b79 (diff)
- Minimize FETCH response for messages listing (when caching is disabled)
Diffstat (limited to 'program/include/rcube_imap_generic.php')
-rw-r--r--program/include/rcube_imap_generic.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index 95e1180c5..f2a09ad66 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -1059,7 +1059,7 @@ class rcube_imap_generic
$message_set = $this->compressMessageSet($message_set);
if ($add)
- $add = ' '.strtoupper(trim($add));
+ $add = ' '.trim($add);
/* FETCH uid, size, flags and headers */
$key = 'FH12';
@@ -1067,12 +1067,8 @@ class rcube_imap_generic
$request .= "(UID RFC822.SIZE FLAGS INTERNALDATE ";
if ($bodystr)
$request .= "BODYSTRUCTURE ";
- $request .= "BODY.PEEK[HEADER.FIELDS ";
- $request .= "(DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC ";
- $request .= "CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID ";
- $request .= "REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY ";
- $request .= "X-DRAFT-INFO LIST-POST MAIL-FOLLOWUP-TO MAIL-REPLY-TO ";
- $request .= "RETURN-PATH".$add.")])";
+ $request .= "BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE ";
+ $request .= "LIST-POST DISPOSITION-NOTIFICATION-TO".$add.")])";
if (!$this->putLine($request)) {
return false;