diff --git a/.devilbox/www/htdocs/mail.php b/.devilbox/www/htdocs/mail.php index 4db0e9b7..ad67e8ab 100644 --- a/.devilbox/www/htdocs/mail.php +++ b/.devilbox/www/htdocs/mail.php @@ -30,7 +30,7 @@ require $LIB_DIR . DIRECTORY_SEPARATOR . 'Sort.php'; // Sort/Order settings $defaultSort = array('sort' => 'date', 'order' => 'DESC'); -$allowedSorts = array('date', 'subject', 'x-original-to'); +$allowedSorts = array('date', 'subject', 'x-original-to', 'from'); $allowedOrders = array('ASC', 'DESC'); $GET_sortKeys = array('sort' => 'sort', 'order' => 'order'); @@ -41,6 +41,7 @@ $order = $MySort->getOrder(); // Evaluate Sorters/Orderers $orderDate = ''; +$orderFrom = ''; $orderTo = ''; $orderSubj = ''; @@ -62,6 +63,12 @@ if ($sort == 'date') { } else { $orderTo = ' '; } +} else if ($sort == 'from') { + if ($order == 'ASC') { + $orderFrom = ' '; + } else { + $orderFrom = ' '; + } } @@ -142,6 +149,7 @@ $messages = $MyMbox->get($sortOrderArr);