Hi.

Just an idea when we are talking about max_pagesize.

I use RoundCube for our customers and me too. Sometimes I need to print list 
of emails of particular mailbox (mainly to report incidents or simply to 
create mail digest). In this case I need set a big page size because paging 
doesn't have sense in this scenario and applying different stylesheet (I use 
webdeveloper extension for doing this).

Maybe will be nice to implement this function for other users. A proper way is 
to add a button for printing email listing, then skiping max_pagesize 
constraints and applying diferent stylesheet (below).

/* List of emails - printing */

#taskbar,
#header,
#message,
#messagetoolbar,
#quicksearchbar,
#messagecountbar,
#mailboxlist-header,
#mailboxlist-container,
#mailboxcontrols,
#listcontrols { display:none; }

#mailcontframe
{
  position:static;
  border:none;
  overflow:visible;
}

Jiri Kaderavek.

Dne pátek, 7. března 2008 Ondrej Zlosky napsal(a):
> Hi,
>
> I have just a small patch which seems reasonable to me. In 0.1stable
> release is an option to limit max_pagesize but it seems it is working only
> for new settings and users cannot save new value bigger than that. But when
> user already has bigger value in database (from older releases) then value
> max_pagesize from config file is not used.
>
> So this is my solution.
>
> --- ../webmail_01_stable/program/include/main.inc       2008-02-27 14:39:
> 22.000000000 +0100
> +++ program/include/main.inc    2008-03-07 11:28:10.000000000 +0100
> @@ -278,7 +278,11 @@
>
>    // set pagesize from config
>    if (isset($CONFIG['pagesize']))
> -    $IMAP->set_pagesize($CONFIG['pagesize']);
> +    if ($CONFIG['pagesize'] > $CONFIG['max_pagesize']) {
> +      $IMAP->set_pagesize($CONFIG['max_pagesize']);
> +    } else {
> +      $IMAP->set_pagesize($CONFIG['pagesize']);
> +    }
>    }
>
> Regards



-- 
=== WebStep, s.r.o. (Ltd.) ========= a step to the Web ======
* Address: Turgenevova 18, 61800 Brno, CZ, tax-id: CZ25528262
* Office: Mezirka 1, 60200 Brno, CZ, Tel: +420548214711
* WWW: http://www.webstep.net, mailto: [EMAIL PROTECTED]
* Jabber: [EMAIL PROTECTED], ICQ: 19526822
=== WebStep, s.r.o. (Ltd.) ========= a step to the Web ======

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to