X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=b84c16d3d6cdbd64bd5728526f25b838a54ce641;hp=bf2b51b175f5b2256d3851ca2b293d9880401f79;hb=d95b10b37612d4ccb3712a90a3f9be85fd92910f;hpb=8d6a115b0ef06dbcf9b149ba2509208f09b3a2ab diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index bf2b51b1..b84c16d3 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,87 +1,87 @@ display('footer.tpl'); + exit; +} echo html_tag('p', '', 'left' ) . -html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" . + html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" . html_tag( 'tr', - html_tag( 'th', _("Mailinglist") . ' ' . _($action), '', $color[9] ) - ) . + html_tag( 'th', _("Mailinglist") . ': ' . $fieldsdescr[$action], '', $color[9] ) + ) . html_tag( 'tr' ) . html_tag( 'td', '', 'left' ); -switch ( $action ) { -case 'help': - $out_string = _("This will send a message to %s requesting help for this list. You will receive an emailed response at the address below."); - break; -case 'subscribe': - $out_string = _("This will send a message to %s requesting that you will be subscribed to this list. You will be subscribed with the address below."); - break; -case 'unsubscribe': - $out_string = _("This will send a message to %s requesting that you will be unsubscribed from this list. It will try to unsubscribe the adress below."); -} - -printf( $out_string, htmlspecialchars($send_to) ); +printf($out_string, '"' . htmlspecialchars($send_to) . '"'); -echo '
'; +echo addForm(SM_PATH . 'src/compose.php', 'post'); -/* - * 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. - */ +$idents = get_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 ' '; + foreach($idents as $nr=>$data) { + echo '

'; +echo '
' . + addHidden('send_to', $send_to) . + addHidden('subject', $subject) . + addHidden('body', $body) . + addHidden('mailbox', $mailbox) . + addSubmit(_("Send Mail"), 'send'); ?> +

+

\ No newline at end of file