From b8163cc40d1901a8f5f90d03a5e89878e5b94347 Mon Sep 17 00:00:00 2001 From: jbnance Date: Thu, 15 Feb 2001 18:01:20 +0000 Subject: [PATCH] Included no -- prefix support for signature. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1131 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 13 ++++++++----- src/options.php | 1 + src/options_personal.php | 15 +++++++++------ 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/compose.php b/src/compose.php index 9e60b092..0a4db331 100644 --- a/src/compose.php +++ b/src/compose.php @@ -192,10 +192,10 @@ function showInputForm () { global $send_to, $send_to_cc, $reply_subj, $forward_subj, $body, - $passed_body, $color, $use_signature, $signature, $editor_size, - $attachments, $subject, $newmail, $use_javascript_addr_book, - $send_to_bcc, $reply_id, $mailbox, $from_htmladdr_search, - $location_of_buttons; + $passed_body, $color, $use_signature, $signature, $prefix_sig, + $editor_size, $attachments, $subject, $newmail, + $use_javascript_addr_book, $send_to_bcc, $reply_id, $mailbox, + $from_htmladdr_search, $location_of_buttons; $subject = decodeHeader($subject); $reply_subj = decodeHeader($reply_subj); @@ -280,7 +280,10 @@ echo "   
\n"; echo " \n"; diff --git a/src/options.php b/src/options.php index 643f3e79..71b0e3ea 100644 --- a/src/options.php +++ b/src/options.php @@ -53,6 +53,7 @@ if (isset($email_address)) setPref($data_dir, $username, 'email_address', $email_address); if (isset($reply_to)) setPref($data_dir, $username, 'reply_to', $reply_to); setPref($data_dir, $username, 'use_signature', $usesignature); + setPref($data_dir, $username, 'prefix_sig', $prefixsig); if (isset($signature_edit)) setSig($data_dir, $username, $signature_edit); do_hook('options_personal_save'); diff --git a/src/options_personal.php b/src/options_personal.php index 415f997f..a382dad3 100644 --- a/src/options_personal.php +++ b/src/options_personal.php @@ -67,12 +67,15 @@   ' . _("Use a signature") . "?
"; - else { - echo '  '; - echo _("Use a signature?"); - echo '
'; - } + echo '  ' . _("Use a signature?") . '  '; + else + echo '  ' . _("Use a signature?") . '  '; + if ( $prefix_sig == true ) + echo '   +' . _( "Prefix signature with '--' ?" ) . '
'; + else + echo '  ' . _( " +Prefix signature with '--' ?" ) . '
'; echo "\n
"; ?> -- 2.25.1