Happy New Year
[squirrelmail.git] / plugins / listcommands / templates / default / mailout.tpl
index 3bffe8665afcb80db168bcf7697ac71fa2af4b74..4ae67110f6aa1c1bbad734b2e7ad4098dcc34aa2 100644 (file)
@@ -10,7 +10,7 @@
   *                 configured (an array of list addresses, 
   *                 keyed by an ID number)
   *
-  * @copyright 1999-2014 The SquirrelMail Project Team
+  * @copyright 1999-2021 The SquirrelMail Project Team
   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
   * @version $Id$
   * @package plugins
@@ -41,8 +41,10 @@ extract($t);
     echo '<select name="identity" id="identity">';
     
     foreach($idents as $nr=>$data) {
-        echo '<option value="' . $nr . '">' .
-            sm_encode_html_special_chars(
+        echo '<option '
+           . ($identity == $nr ? ' selected="selected" ' : '')
+           . 'value="' . $nr . '">'
+           . sm_encode_html_special_chars(
                     $data['full_name'].' <'.
                     $data['email_address'] . '>') .
             "</option>\n";