From 27544ac49568e2702169be3ea7bacd2d857ae2aa Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 7 Jul 2003 13:57:09 +0000 Subject: [PATCH] Use new get_identities() function git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5236 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/listcommands/mailout.php | 39 +++++++++----------------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index 56b8416c..cdb024a8 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -15,6 +15,7 @@ require_once(SM_PATH . 'include/validate.php'); include_once(SM_PATH . 'functions/page_header.php'); include_once(SM_PATH . 'include/load_prefs.php'); include_once(SM_PATH . 'functions/html.php'); +require_once(SM_PATH . 'functions/identity.php'); displayPageHeader($color, $mailbox); @@ -48,40 +49,22 @@ printf( $out_string, htmlspecialchars($send_to) ); echo '
'; -/* - * Identity support (RFC 2369 sect. B.1.) - * - * I had to copy this from compose.php because there doesn't - * seem to exist a function to get the identities. - */ -$defaultmail = htmlspecialchars(getPref($data_dir, $username, 'full_name')); -$em = getPref($data_dir, $username, 'email_address'); -if ($em != '') { - $defaultmail .= htmlspecialchars(' <' . $em . '>') . "\n"; -} +$idents = get_identities(); + echo html_tag('p', '', 'center' ) . _("From:") . ' '; -$idents = getPref($data_dir, $username, 'identities'); -if ($idents != '' && $idents > 1) { - echo ' '; + foreach($idents as $nr=>$data) { + echo '