[v-webmail] Re: Sort order of messages

  • From: "David Slagel" <davids@xxxxxxxxxxx>
  • To: <v-webmail@xxxxxxxxxxxxx>
  • Date: Thu, 5 Jun 2003 15:37:49 -0500

I don't believe there is a preference for this, but if you have access to
the source code, you can change this easily (it will be global, not just for
you).

Simply find the code below in <wherever you
installed>/htdocs/email.list.php:

/*
* Get the order_by and ascdesc variables
* either from the query string or session
* or defaults.
*/

        if(isset($HGV['order_by'])){
                $SESSION['email']['order_by'] = $HGV['order_by'];
                $order_by = $HGV['order_by'];

        }elseif(isset($SESSION['email']['order_by'])){
                $order_by = $SESSION['email']['order_by'];

        }else{
                $SESSION['email']['order_by'] = 'arrival';
                $order_by = 'arrival';
        }

        if(isset($HGV['ascdesc'])){
                $SESSION['email']['ascdesc'] = $HGV['ascdesc'];
                $ascdesc = $HGV['ascdesc'];

        }elseif(isset($SESSION['email']['ascdesc'])){
                $ascdesc = $SESSION['email']['ascdesc'];

        }else{
                $SESSION['email']['ascdesc'] = 1;
                $ascdesc = 1;
        }



And change it to:


/*
* Get the order_by and ascdesc variables
* either from the query string or session
* or defaults.
*/

        if(isset($HGV['order_by'])){
                $SESSION['email']['order_by'] = $HGV['order_by'];
                $order_by = $HGV['order_by'];

        }elseif(isset($SESSION['email']['order_by'])){
                $order_by = $SESSION['email']['order_by'];

        }else{
                $SESSION['email']['order_by'] = 'arrival';
                $order_by = 'arrival';
        }

        if(isset($HGV['ascdesc'])){
                $SESSION['email']['ascdesc'] = $HGV['ascdesc'];
                $ascdesc = $HGV['ascdesc'];

        }elseif(isset($SESSION['email']['ascdesc'])){
                $ascdesc = $SESSION['email']['ascdesc'];

        }else{
                $SESSION['email']['ascdesc'] = 0;
                $ascdesc = 0;
        }


NOTE: all that was changed was in 2 places a 1 was changed to a 0.

Good Luck,
David

-- 
V-webmail Support Mailing List (http://www.v-webmail.org)
Archives: //www.freelists.org/archives/v-webmail/
To unsubscribe, send mail to: v-webmail-request@xxxxxxxxxxxxx
  with "unsubscribe" in the subject

Other related posts: