Screen shots

Junk Email Filter

Security Notice
Phishing campain
Version 1.4.15
Security Upgrade
Plugins - Empty Trash
Category: Message & Folder Manipulation

NOTE: See Proon Automatic Folder Pruning plugin, which does everything this plugin does and more.

This plugin automatically empty users' trash folders periodically. The system administrator can configure the trash to be emptied for users based on number of logins or number of days since last login, and have the trash emptied either upon login or logout.

Note that the settings used in this plugin will affect all users on your system (but only those who use SquirrelMail).

Version 2.0
by Paul Lesniewski on Apr 16, 2011
Please support this plugin's development: Donate to this author
[ empty_trash-2.0-1.2.2.tar.gz tarball (8034 d/l) Help ]
Requires: SquirrelMail 1.2.2+


  • No longer relies on JavaScript to empty the trash folder
  • Added configuration option that specifies that the trash folder should be emptied upon logout.
  • Rewrote several pieces of code, fixing efficiency issues and old, out-of-date code.
  • Allow configuration file to be stored in main SquirrelMail configuration directory if desired.

Older versions

Version 1.4
by Paul Lesniewski on Mar 12, 2005
[ empty_trash-1.4-1.2.2.tar.gz tarball (27901 d/l) Help ]
Requires: SquirrelMail >= 1.2.2

  • Fix for when user does not use trash folder

Version 1.3
by Paul Lesniewski on Jul 27, 2004
[ empty_trash-1.3-1.2.2.tar.gz tarball (8855 d/l) Help ]
Requires: SquirrelMail >= 1.2.2

  • Created config file to allow administrative control over deletion criteria.
  • Fixed time-based criteria to measure days instead of weeks (which had an inadvertent bug)

Version 1.2
by Derek Battams on Jul 4, 2003
[ empty_trash-1.2-1.2.2.tar.gz tarball (17979 d/l) Help ]
Requires: SquirrelMail >= 1.2.2

Description: Modified to comply with the new SM plugin specs.

Version 1.1
by Derek Battams on Nov 3, 2002
[ empty_trash.1.1-1.2.2.tar.gz tarball (9510 d/l) Help ]
Requires: SquirrelMail >= 1.2.2


Corrected a bug where a multiple function definition would occur if the SM installation used the database backend for user preferences. Audited the code for SM >= 1.2.8 compatibility.

2003-05-19: I just tested this plugin with SM 1.4.0 and PHP 4.3.1 and everything appeared to work as expected. I have had reports of people having problems with this plugin and PHP 4.3.x. I'm not seeing any such problems. If you are having problems please contact me (see README for contact info) with as much detail as possible. For now, I'm listing this plugin as compatible with SM 1.4/PHP 4.3.x.

Version 1.0
by Derek Battams on Apr 17, 2002
[ This version is not available. You might be able to get it by asking on the "squirrelmail-plugins" mailing list or by contacting the author. ]
Requires: SquirrelMail >= 1.2.2

Description: Original version.

If you have problems with the download or decompressing...
Internet Explorer
Right-click on the file, then select "Save Target As"
Firefox, Mozilla, Netscape
Right-click on the file, then select "Save Link As"
Right-click on the file, then select "Save Link Document As"
Lynx and Links
Press "d" on the link to download the file directly.
  • Untarring problems: Your browser might have un-gzipped it for you automatically. Try just "tar xvf" instead of "tar xvfz". Also, the plugins archive isn't gzipped (it is a tarball of .tar.gz files)
  • Macintosh users: Just hold down your mouse button to get the menu instead of right-clicking.
  • If all else fails, seek our help
© 1999-2016 by The SquirrelMail Project Team