My activities New request

contact atmail support

PH: +61 (7) 5357-6605

support@atmail.com

Follow

How to change the default sort behavior

Stewart -

PROBLEM
I want to change the default Atmail sort behavior.

ENVIRONMENT

  • On-Premise Server + WebMail Installations: Version 6.0 > Current Version
  • Webmail Only Installations: Version 6.0 > Current Version

CAUSE

By default Atmail 6 and 7 sorts all emails on the UID (received date) of the message to the server.

Some clients prefer to sort emails from the "date" header specified in the email, vs the received time to the mailbox.

RESOLUTION

  1. Open and edit:
    application/modules/mail/controllers/MailController.php
  2. Change:
                    if( !isset($this->session->sort) )
    {
    $this->session->sort = 'UID';
    }
  3. To:
                    if( !isset($this->session->sort) )
    {
    $this->session->sort = 'Date';
    }
  4. You can also specify the default sort behavior to Subject, From. And remember, you can change the sort order anytime via the 2-pane UI, click the message headers to sort.
Have more questions? Submit a request

Comments