From dcb7f45460eb51c82f13909b4138f4f1bbaade20 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Fri, 5 May 2000 15:47:03 +0000 Subject: [PATCH] fixed some bugs with sending to inbox after send. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@499 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/compose.php b/src/compose.php index 8d67a236..1e16bd23 100644 --- a/src/compose.php +++ b/src/compose.php @@ -312,9 +312,8 @@ } // function checkInput() - - - + if ($mailbox == "") + $mailbox = "INBOX"; if(isset($send)) { if (checkInput(false)) { @@ -324,7 +323,7 @@ } else { echo "\n"; $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); - displayPageHeader($color, "None"); + displayPageHeader($color, $mailbox); checkInput(true); showInputForm(); @@ -332,7 +331,7 @@ } else if ($html_addr_search_done) { echo "\n"; $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); - displayPageHeader($color, "None"); + displayPageHeader($color, $mailbox); $body = stripslashes($body); $send_to = stripslashes($send_to); @@ -360,7 +359,7 @@ } else if (isset($attach)) { echo "\n"; $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); - displayPageHeader($color, "None"); + displayPageHeader($color, $mailbox); $localfilename = md5("$attachfile, $attachfile_name, $REMOTE_IP, $REMOTE_PORT, $UNIQUE_ID, and everything else that may add entropy"); $localfilename = $localfilename; @@ -388,7 +387,7 @@ } else if (isset($do_delete)) { echo "\n"; $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); - displayPageHeader($color, "None"); + displayPageHeader($color, $mailbox); while (list($key, $localname) = each($delete)) { array_splice ($attachments, $key, 1); @@ -400,7 +399,7 @@ } else { echo "\n"; $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); - displayPageHeader($color, "None"); + displayPageHeader($color, $mailbox); $newmail = true; newMail(); -- 2.25.1