phpgroupware-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-tracker] [ 100578 ] Squirrel Mail Email Pagination Error


From: nobody
Subject: [Phpgroupware-tracker] [ 100578 ] Squirrel Mail Email Pagination Error
Date: Tue, 12 Mar 2002 14:28:49 -0500

Support Request #100578, was updated on 2002-Mar-12 19:28
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100578&group_id=509

Category: Bug Report
Status: Open
Priority: 5
Summary: Squirrel Mail Email Pagination Error

By: kellin
Date: 2002-Mar-12 19:28

Message:
Logged In: YES 
user_id=4189
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; DSEBUILD420; BCBSM; 
T312461)

Email pagination in Squirrel mail after email has been 
deleted from a group does not function correctly. The 
start message does not correctly adjust to the right 
number of messages prior to the current entry. This is 
due to a miscalculation in the method used to paginate 
email. 

The following line of code added to function 
showMessagesForMailbox() after the global declarations 
corrects this problem. It ensures that email groups 
always begin at the start of the number of messages to 
be shown per group and now some intermediate value due 
to missing messages.

This function is located 
in /phpgroupware/squirrelmail/inc/mailbox_display.php  

Line to add is:

$startMessage -= (($startMessage-1) % $show_num);

Example code follows:


        function showMessagesForMailbox
($imapConnection, $mailbox, $numMessages, 
$startMessage, $sort, $color,$show_num, $use_cache)
        {
                global $msgs, $msort;
                global $sent_folder;
                global $mailboxStatus, $username, 
$key, $imapServerAddress, $imapPort;
                global $auto_expunge;
                global $phpgw, $phpgw_info;
                $startMessage -= (($startMessage-1) % 
$show_num);


----------------------------------------------------------------------
You can respond by visiting: 
http://savannah.gnu.org/support/?func=detailsupport&support_id=100578&group_id=509



reply via email to

[Prev in Thread] Current Thread [Next in Thread]