From b57c4e6369e6c5aec7600475bc5df86f216b649b Mon Sep 17 00:00:00 2001 From: gustavf Date: Mon, 21 Feb 2000 12:33:14 +0000 Subject: [PATCH] Fixed a problem with signatures getting added all the time when attaching files. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@231 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 3 --- src/compose.php | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index 58f9db79..6c810193 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -6,9 +6,6 @@ **/ - /* These next 2 functions are stub functions for implementations of - attachments */ - // Returns true only if this message is multipart function isMultipart () { global $attachments; diff --git a/src/compose.php b/src/compose.php index 6e73f0b1..8f7044b3 100644 --- a/src/compose.php +++ b/src/compose.php @@ -134,7 +134,7 @@ function showInputForm () { global $send_to, $send_to_cc, $reply_subj, $forward_subj, $body, $passed_body, $color, $use_signature, $signature, $editor_size, - $attachments, $subject; + $attachments, $subject, $newmail; echo "\n
\n"; @@ -202,8 +202,8 @@ echo " \n"; echo " \n"; - if ($use_signature == true) - echo "   
"; + if ($use_signature == true && $newmail == true) + echo "   
"; else echo "   
\n"; echo " \n"; @@ -308,7 +308,7 @@ showInputForm(); } else { - Newmail(); + $newmail = true; showInputForm(); } ?> -- 2.25.1