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

    BleachBit
    Copyright (C) 2008-2018 Andrew Ziem
    https://www.bleachbit.org

    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="thunderbird">
  <label>Thunderbird</label>
  <description>Email client</description>
  <running type="exe">thunderbird.exe</running>
  <running type="exe">thunderbird-bin</running>
  <option id="cache">
    <label>Cache</label>
    <description>Delete the web cache, which reduces time to display revisited pages</description>
    <action command="delete" search="walk.all" path="$localappdata\Thunderbird\Profiles\????????.default\Cache\"/>
    <action command="delete" search="walk.all" path="~/.thunderbird/default/????????.slt/Cache/"/>
    <!-- Ubuntu 10.04 Thunderbird 3 has ~/.thunderbird/????????.default/Cache/ -->
    <action command="delete" search="glob" path="~/.thunderbird/????????.default/Cache/*"/>
    <!-- openSUSE 11.3 Thunderbird 3 has ~/.thunderbird/Profiles/????????.default/Cache/ -->
    <action command="delete" search="glob" path="~/.thunderbird/Profiles/????????.default/Cache/*"/>
  </option>
  <option id="cookies">
    <label>Cookies</label>
    <description>Delete cookies, which contain information such as web site preferences, authentication, and tracking identification</description>
    <action command="delete" search="glob" path="$APPDATA\Thunderbird\Profiles\????????.default\cookies.sqlite"/>
    <action command="delete" search="glob" path="~/.thunderbird/default/????????.slt/cookies.sqlite"/>
    <!-- Ubuntu 10.04 Thunderbird 3 has ~/.thunderbird/????????.default/ -->
    <action command="delete" search="glob" path="~/.thunderbird/????????.default/cookies.sqlite"/>
    <!-- openSUSE 11.3 Thunderbird 3 has ~/.thunderbird/Profiles/????????.default/ -->
    <action command="delete" search="glob" path="~/.thunderbird/Profiles/????????.default/cookies.sqlite"/>
  </option>
  <option id="index">
    <label>Index</label>
    <description>Delete the files</description>
    <action command="delete" search="walk.files" path="$APPDATA\Thunderbird\Profiles\????????.default" regex="\.msf$"/>
    <!-- Ubuntu 10.04 Thunderbird 3 has ~/.thunderbird/????????.default/ -->
    <!-- openSUSE 11.3 Thunderbird 3 has ~/.thunderbird/Profiles/????????.default/ -->
    <!-- Fedora 16 Thunderbird 17 has ~/.thunderbird/default/ -->
    <action command="delete" search="walk.files" path="~/.thunderbird/" regex="\.msf$"/>
  </option>
  <option id="passwords">
    <label>Passwords</label>
    <description>A database of usernames and passwords as well as a list of sites that should not store passwords</description>
    <warning>This option will delete your saved passwords.</warning>
    <action command="delete" search="glob" path="$APPDATA\Thunderbird\Profiles\????????.default\signons.sqlite"/>
    <!-- Fedora 11 Thunderbird 3.0 has ~/.thunderbird/default/????????.slt/ -->
    <action command="delete" search="glob" path="~/.thunderbird/default/????????.slt/signons.sqlite"/>
    <action command="delete" search="glob" path="~/.thunderbird/default/????????.slt/signons.txt"/>
    <action command="delete" search="glob" path="~/.thunderbird/default/????????.slt/signons3.txt"/>
    <!-- Ubuntu 9.10 Thunderbird 2.0 has ~/.mozilla-thunderbird/????????.default/ -->
    <action command="delete" search="file" path="~/.mozilla-thunderbird/????????.default/signons.txt"/>
    <!-- Ubuntu 10.04 Thunderbird 3 has ~/.thunderbird/????????.default/ -->
    <action command="delete" search="glob" path="~/.thunderbird/????????.default/signons.sqlite"/>
    <!-- openSUSE 11.3 Thunderbird 3 has ~/.thunderbird/Profiles/????????.default/ -->
    <action command="delete" search="glob" path="~/.thunderbird/Profiles/????????.default/signons.sqlite"/>
  </option>
  <option id="vacuum">
    <label>Vacuum</label>
    <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
    <action command="sqlite.vacuum" search="glob" path="$APPDATA\Thunderbird\Profiles\????????.default\*.sqlite"/>
    <action command="sqlite.vacuum" search="glob" path="~/.thunderbird/default/????????.slt/*.sqlite"/>
    <!-- Ubuntu 10.04 Thunderbird 3 has ~/.thunderbird/????????.default/ -->
    <action command="sqlite.vacuum" search="glob" path="~/.thunderbird/????????.default/*.sqlite"/>
    <!-- openSUSE 11.3 Thunderbird 3 has ~/.thunderbird/Profiles/????????.default/ -->
    <action command="sqlite.vacuum" search="glob" path="~/.thunderbird/Profiles/????????.default/*.sqlite"/>
  </option>
</cleaner>
