RoundCube Webmail
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.3 KiB

  1. #!/usr/bin/env php
  2. <?php
  3. /*
  4. +-----------------------------------------------------------------------+
  5. | This file is part of the Roundcube Webmail client |
  6. | |
  7. | Copyright (C) The Roundcube Dev Team |
  8. | |
  9. | Licensed under the GNU General Public License version 3 or |
  10. | any later version with exceptions for skins & plugins. |
  11. | See the README file for a full license statement. |
  12. | |
  13. | PURPOSE: |
  14. | Finally remove all db records marked as deleted some time ago |
  15. +-----------------------------------------------------------------------+
  16. | Author: Thomas Bruederli <roundcube@gmail.com> |
  17. +-----------------------------------------------------------------------+
  18. */
  19. define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/');
  20. require INSTALL_PATH . 'program/include/clisetup.php';
  21. if (!empty($_SERVER['argv'][1])) {
  22. $days = intval($_SERVER['argv'][1]);
  23. } else {
  24. $days = 7;
  25. }
  26. rcmail_utils::db_clean($days);