*/
public function __construct()
{
- IMP::initialize();
-
$this->active = $GLOBALS['prefs']->getValue('delete_attachments_monthly');
if ($this->active &&
$GLOBALS['prefs']->isLocked('delete_attachments_monthly')) {
*/
public function execute()
{
+ IMP::initialize();
+
/* Find the UNIX timestamp of the last second that we will not
* purge. */
$del_time = gmmktime(0, 0, 0, date('n') - $GLOBALS['prefs']->getValue('delete_attachments_monthly_keep'), 1, date('Y'));
*/
public function __construct()
{
- IMP::initialize();
-
$this->active = $GLOBALS['prefs']->getValue('delete_sentmail_monthly');
if ($this->active &&
$GLOBALS['prefs']->isLocked('delete_sentmail_monthly')) {
*/
public function execute()
{
+ IMP::initialize();
+
/* Get list of all folders, parse through and get the list of all
old sent-mail folders. Then sort this array according to
the date. */
*/
public function __construct()
{
- IMP::initialize();
-
$this->active = $GLOBALS['prefs']->getValue('purge_sentmail');
if ($this->active) {
$this->interval = $GLOBALS['prefs']->getValue('purge_sentmail_interval');
*/
public function execute()
{
+ IMP::initialize();
+
$imp_folder = IMP_Folder::singleton();
$imp_message = IMP_Message::singleton();
*/
public function describe()
{
+ IMP::initialize();
+
$mbox_list = array_map(array('IMP', 'displayFolder'), $this->_getFolders());
return sprintf(_("All messages in the folder(s) \"%s\" older than %s days will be permanently deleted."),
*/
public function __construct()
{
- IMP::initialize();
-
$this->active = $GLOBALS['prefs']->getValue('purge_spam');
if ($this->active) {
$this->interval = $GLOBALS['prefs']->getValue('purge_spam_interval');
*/
public function execute()
{
+ IMP::initialize();
+
/* If there is no Spam folder set, just return. */
$spam_folder = IMP::folderPref($GLOBALS['prefs']->getValue('spam_folder'), true);
if (!$spam_folder) {
*/
public function describe()
{
+ IMP::initialize();
+
return sprintf(_("All messages in your \"%s\" folder older than %s days will be permanently deleted."),
IMP::displayFolder(IMP::folderPref($GLOBALS['prefs']->getValue('spam_folder'), true)),
$GLOBALS['prefs']->getValue('purge_spam_keep'));
*/
public function __construct()
{
- IMP::initialize();
-
$this->active = $GLOBALS['prefs']->getValue('purge_trash');
if ($this->active) {
$this->interval = $GLOBALS['prefs']->getValue('purge_trash_interval');
*/
public function execute()
{
+ IMP::initialize();
+
/* If we aren't using a Trash folder or if there is no Trash
folder set, just return. */
$trash_folder = IMP::folderPref($GLOBALS['prefs']->getValue('trash_folder'), true);
*/
public function describe()
{
+ IMP::initialize();
+
return sprintf(_("All messages in your \"%s\" folder older than %s days will be permanently deleted."),
IMP::displayFolder(IMP::folderPref($GLOBALS['prefs']->getValue('trash_folder'), true)),
$GLOBALS['prefs']->getValue('purge_trash_keep'));
*/
public function __construct()
{
- IMP::initialize();
-
$this->active = $GLOBALS['prefs']->getValue('rename_sentmail_monthly');
if ($this->active &&
$GLOBALS['prefs']->isLocked('rename_sentmail_monthly')) {
*/
public function execute()
{
+ IMP::initialize();
+
$success = true;
$identity = Identity::singleton(array('imp', 'imp'));
*/
public function describe()
{
+ IMP::initialize();
+
$identity = Identity::singleton(array('imp', 'imp'));
$new_folders = $old_folders = array();