<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2014 Andrew Ziem
    http://bleachbit.sourceforge.net

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-->
<cleaner id="deepscan">
  <label translate="true">Deep scan</label>
  <option id="backup">
    <label>Backup files</label>
    <description>Delete the backup files</description>
    <warning>Inspect the preview for any files you want to keep.</warning>
    <action command="delete" search="deep" regex="\.[Bb][Aa][Kk]$" cache="false"/>
    <action command="delete" search="deep" regex="[a-zA-Z]{1,4}~$" cache="false"/>
  </option>
  <option id="ds_store">
    <label translate="false">.DS_Store</label>
    <description>Delete the files</description>
    <warning>This option is slow.</warning>
    <action command="delete" search="deep" cache="false" regex="^\.DS_Store$"/>
  </option>
  <option id="thumbs_db">
    <label translate="false">Thumbs.db</label>
    <description>Delete the files</description>
    <warning>This option is slow.</warning>
    <action command="delete" search="deep" regex="^Thumbs\.db$" cache="false"/>
    <action command="delete" search="deep" regex="^Thumbs\.db:encryptable$" cache="false"/>
  </option>
  <option id="tmp">
    <label>Temporary files</label>
    <description>Delete the temporary files</description>
    <warning>This option is slow.</warning>
    <!-- http://support.microsoft.com/kb/211632 -->
    <action command="delete" search="deep" cache="false" regex="^~wr[a-z][0-9]{4}\.tmp$"/>
    <!-- http://support.microsoft.com/kb/826810 -->
    <action command="delete" search="deep" cache="false" regex="^ppt[0-9]{4}\.tmp$"/>
  </option>
</cleaner>
