Bring defaults for the folder selection pref in line.
[squirrelmail.git] / plugins / message_details / message_details_bottom.php
index b6d897c2f9c451f605ffccb1d2d9a8ad1827b39f..2a2a87c391a9cdf565c4ee368e70122a0fb54be6 100644 (file)
@@ -7,7 +7,7 @@
  *
  * @author Marc Groot Koerkamp
  * @copyright © 2002 Marc Groot Koerkamp, The Netherlands
- * @copyright © 2002-2006 The SquirrelMail Project Team
+ * @copyright © 2002-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -107,12 +107,10 @@ function CalcEntity($entString, $direction) {
  * @access public
  */
 function get_message_details($mailbox, $passed_id, $stripHTML=FALSE) {
-    global $imapServerAddress, $imapPort, $color,$msgd_8bit_in_hex;
+    global $imapServerAddress, $imapPort, $color,$msgd_8bit_in_hex, $username;
 
     $returnValue = '';
 
-    sqgetGlobalVar('username', $username, SQ_SESSION);
-
     $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
     $read = sqimap_mailbox_select($imapConnection, $mailbox);
     $body = sqimap_run_command($imapConnection, "FETCH $passed_id RFC822",true, $response, $readmessage, TRUE);
@@ -368,4 +366,4 @@ ECHO;
     }
     return $returnValue;
 }
-?>
\ No newline at end of file
+?>