Koozali.org: home of the SME Server

New Emails on Top

SANKAR

New Emails on Top
« on: June 30, 2001, 01:03:33 PM »
How to make the new emails appear on top of the page? Every time
the inbox is opened to check the new emails all the way down the user
has to scroll or the user can sort by date. Without doing the above said
exercise How to make new emails appear by default on top of the page?
This can be done using the templates? or any code change?
Help is appreciated!!!

Sankar

Graeme Robinson

Re: New Emails on Top
« Reply #1 on: July 02, 2001, 05:24:05 AM »
I presume you mean in IMP, Sankar?
You can jump to the last page using the arrow pointers - note you can also jump to particular pages by entering the page number and pressing enter.

Dan Brown

Re: New Emails on Top
« Reply #2 on: July 02, 2001, 05:32:45 AM »
You know the headings on the mail screen?  Date, From, Subject, etc.?  You see the little triangle buttons next to those headings?  If you click on the heading, it sorts by that field.  If you click on the triangle button, it reverses the sort order.  Unfortunately, it doesn't save those settings.

If you want to make these changes permanent, edit /home/httpd/html/horde/imp/config/mailbox.php3.  Find the section that says:

/* sort order. can be one of:
 * SORTARRIVAL
 * SORTDATE
 * SORTFROM
 * SORTSUBJECT
 * SORTSIZE
 */
$default->sort_crit = SORTARRIVAL;
$default->sort_dir  = 0; // 0 = regular direction, 1 = last/highest first

It should be obvious what to do here.  This file doesn't seem to be generated from a template, so you should be able to directly edit it.

sankar

Re: New Emails on Top
« Reply #3 on: July 02, 2001, 11:32:00 PM »
Graeme,

            Thanks for your response, but I am looking for a solution which will
be permanent. As soon as I open my Inbox I should see all my new mails
on top of the page. It looks like Dan has answered my question.

Dan,
 
      I will try it and reply to your message. Thanks for your response.