- beautified index order options page
[squirrelmail.git] / src / right_main.php
index 61d08560f2130b4c63a38249c82449ee85b75fc6..6c1ca9b06cd8268b7aa472e343a5a96f80018ba1 100644 (file)
    /** If it was a successful login, lets load their preferences **/
    include("../src/load_prefs.php");
 
+   if (isset($newsort) && $newsort != $sort) {
+      setPref($data_dir, $username, "sort", $newsort);
+   }
+
    // If the page has been loaded without a specific mailbox,
    //   send them to the inbox
    if (!isset($mailbox)) {
       $mailbox = "INBOX";
-      $sort = $newsort = 6;
       $startMessage = 1;
    }