Make sure the correct identity is used for list command mailto actions
[squirrelmail.git] / plugins / listcommands / templates / default / mailout.tpl
index 2aaa236f134915dbcf6ea4e2091e86bacf1f9354..b6ec5888930160691c9b84010d10be66c96450a2 100644 (file)
@@ -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";