Add class attribute to template
[squirrelmail.git] / plugins / message_details / message_details_bottom.php
index b6d897c2f9c451f605ffccb1d2d9a8ad1827b39f..25fc00906643dbc71ad41e2199418641dbf5fbf5 100644 (file)
@@ -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
+?>