[v-webmail] Re: Sort order of messages

  • From: "Gary Richardson" <gpr@xxxxxxxx>
  • To: v-webmail@xxxxxxxxxxxxx
  • Date: Fri, 6 Jun 2003 08:28:24 -0400

Hi David,

Thanks for the info. I had found that file between the time I sent my email
and read yours. I was hoping to find a way to set this via one of the
local.*.php files in the config directory. That way I wouldn't have to worry
about any future upgrades overwriting the email.list.php file (and my change).

But for now I've changed the email.list.php file and it's working as I want it
to.

Thanks!

-Gary


"David Slagel" <davids@xxxxxxxxxxx> wrote:

> 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: