Changeset 08ffd939 in github for program/include/rcmail.php


Ignore:
Timestamp:
Dec 29, 2011 4:35:01 AM (17 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
a61ccea
Parents:
81c2ce9
Message:
  • Add separate pagesize setting for mail messages and contacts (#1488269)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcmail.php

    ra90ad28 r08ffd939  
    599599 
    600600    // enable caching of imap data 
    601     $imap_cache = $this->config->get('imap_cache'); 
     601    $imap_cache     = $this->config->get('imap_cache'); 
    602602    $messages_cache = $this->config->get('messages_cache'); 
    603603    // for backward compatybility 
     
    606606        $messages_cache = true; 
    607607    } 
     608 
    608609    if ($imap_cache) 
    609610        $this->imap->set_caching($imap_cache); 
     
    612613 
    613614    // set pagesize from config 
    614     $this->imap->set_pagesize($this->config->get('pagesize', 50)); 
    615  
    616     // Setting root and delimiter before establishing the connection 
    617     // can save time detecting them using NAMESPACE and LIST 
     615    $pagesize = $this->config->get('mail_pagesize'); 
     616    if (!$pagesize) { 
     617        $pagesize = $this->config->get('pagesize', 50); 
     618    } 
     619    $this->imap->set_pagesize($pagesize); 
     620 
     621    // set connection options 
    618622    $options = array( 
    619623      'auth_type'   => $this->config->get('imap_auth_type', 'check'), 
Note: See TracChangeset for help on using the changeset viewer.