[Hastymail-cvs] SF.net SVN: hastymail: [371] trunk/hastymail2/lib/url_action_class.php
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2008-04-21 14:36:28
|
Revision: 371 http://hastymail.svn.sourceforge.net/hastymail/?rev=371&view=rev Author: sailfrog Date: 2008-04-21 07:36:27 -0700 (Mon, 21 Apr 2008) Log Message: ----------- slight fixes to freezing Modified Paths: -------------- trunk/hastymail2/lib/url_action_class.php Modified: trunk/hastymail2/lib/url_action_class.php =================================================================== --- trunk/hastymail2/lib/url_action_class.php 2008-04-21 14:26:49 UTC (rev 370) +++ trunk/hastymail2/lib/url_action_class.php 2008-04-21 14:36:27 UTC (rev 371) @@ -2041,6 +2041,14 @@ function perform_imap_action($action, $mailbox, $uids, $trash_folder, $destination) { global $imap; global $user; + if (isset($_SESSION['frozen_folders'][$mailbox])) { + $this->errors[] = 'This folder is currently frozen: '.$user->htmlsafe($mailbox); + return; + } + if ($destination && isset($_SESSION['frozen_folders'][$mailbox])) { + $this->errors[] = 'This folder is currently frozen'; + return; + } if ($imap->read_only) { $this->errors[] = 'Operation not permitted in read-only mode'; return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |