/**
* Message and Spam Filter Plugin
*
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This plugin filters your inbox into different folders based upon given
function start_filters() {
global $mailbox, $imapServerAddress, $imapPort, $imap,
$imap_general, $filters, $imap_stream, $imapConnection,
- $UseSeparateImapConnection, $AllowSpamFilters, $_SESSION, $_COOKIE;
+ $UseSeparateImapConnection, $AllowSpamFilters;
- $username = $_SESSION['username'];
- $key = $_COOKIE['key'];
+ sqgetGlobalVar('username', $username, SQ_SESSION);
+ sqgetGlobalVar('key', $key, SQ_COOKIE);
# if ($mailbox == 'INBOX') {
// Detect if we have already connected to IMAP or not.