X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fmailout.php;h=dd9e5de180ee7a551e8ab7891cf0628cd5a41c17;hp=666f96ee7cdb5c64e38d2215dd99b3b6d6b04784;hb=769a819ddfb1917b473e2b36f86f7c5b99b14600;hpb=b1379bdf5bd35c0d816bc0eedad43341403ba73f diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index 666f96ee..dd9e5de1 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -1,94 +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