Bugfix of 810047
[squirrelmail.git] / src / right_main.php
index eb5730d6b603db2f009ad6066443c3a7490ee5a8..7223cacf8a9f1cf3ae42d778247080076a9466cd 100644 (file)
@@ -53,6 +53,7 @@ sqgetGlobalVar('lastTargetMailbox', $lastTargetMailbox, SQ_SESSION);
 sqgetGlobalVar('numMessages'      , $numMessages,       SQ_SESSION);
 sqgetGlobalVar('session',           $session,           SQ_GET);
 sqgetGlobalVar('note',              $note,              SQ_GET);
+sqgetGlobalVar('mail_sent',         $mail_sent,         SQ_GET);
 sqgetGlobalVar('use_mailbox_cache', $use_mailbox_cache, SQ_GET);
 
 if ( sqgetGlobalVar('startMessage', $temp) ) {
@@ -154,6 +155,11 @@ if ($composenew) {
     displayPageHeader($color, $mailbox);
 }
 do_hook('right_main_after_header');
+
+/* display a message to the user that their mail has been sent */
+if (isset($mail_sent) && $mail_sent == 'yes') {
+    $note = _("Your Message has been sent.");
+}
 if (isset($note)) {
     echo html_tag( 'div', '<b>' . $note .'</b>', 'center' ) . "<br>\n";
 }
@@ -161,6 +167,7 @@ if (isset($note)) {
 if ( sqgetGlobalVar('just_logged_in', $just_logged_in, SQ_SESSION) ) {
     if ($just_logged_in == true) {
         $just_logged_in = false;
+        sqsession_register($just_logged_in, 'just_logged_in');
 
         if (strlen(trim($motd)) > 0) {
             echo html_tag( 'table',