* Handles deleting messages from the trash folder without
* deleting subfolders.
*
- * @copyright 1999-2010 The SquirrelMail Project Team
+ * @copyright 1999-2013 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
/* finished globals */
+// first do a security check
+sqgetGlobalVar('smtoken', $submitted_token, SQ_GET, '');
+sm_validate_security_token($submitted_token, -1, TRUE);
+
$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
$mailbox = $trash_folder;