*
* @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
* @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);
}
return $returnValue;
}
-?>
\ No newline at end of file
+?>