X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=9db99ae3e7567a60df463cdcdc60fc472b15579b;hp=6f608f26a590772a65841622d0fdbf588d3448e0;hb=a15b73a49b070358cf1e8ec699911df67e58ef9e;hpb=4cf438432a1f2bfdba752e075ec6458ec3e290ba diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index 6f608f26..9db99ae3 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,85 +1,64 @@ display('footer.tpl'); + exit; } -printf( $out_string, htmlspecialchars($send_to) ); +$out_string = sprintf($out_string, '"' . htmlspecialchars($send_to) . '"'); +$idents = get_identities(); +$fieldsdescr = listcommands_fieldsdescr(); +$fielddescr = $fieldsdescr[$action]; -echo '
'; +$oTemplate->assign('out_string', $out_string); +$oTemplate->assign('fielddescr', $fielddescr); +$oTemplate->assign('send_to', $send_to); +$oTemplate->assign('subject', $subject); +$oTemplate->assign('body', $body); +$oTemplate->assign('mailbox', $mailbox); +$oTemplate->assign('idents', $idents); -/* - * 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"; -} -echo html_tag('p', '', 'center' ) . _("From:") . ' '; - -$idents = getPref($data_dir, $username, 'identities'); -if ($idents != '' && $idents > 1) { - echo ' ' . "\n" ; - -} else { - echo $defaultmail; -} +$oTemplate->display('plugins/listcommands/mailout.tpl'); +$oTemplate->display('footer.tpl'); -echo '
' -. '' -. '' -. '' -. '' -. '

' -. '

'; -?>