SquirrelMail  
Donations
News
About
Support
Screen shots
Download
Plugins
Documentation
Sponsors
Bounties













Security Notice
Phishing campain
Version 1.4.15
Security Upgrade
Plugins - Proon automatic folder pruning
Category: Message & Folder Manipulation

The Proon plug-in can automatically prune any of your folders of old messages. Pruning means the deletion of messages either because they are older than a certain date or to bring a folder to within a certain total size limit or number of messages. Pruning is done at SM signon time and can also be done at a recurring time interval during a session. Proon can be used as an upwardly-compatible replacement for auto_prune_sent. This plugin definitely works with SM 1.4.4 and later, but it probably also works fine with any SM release in the 1.4.x series and maybe even earlier releases.

This plugin is up for adoption. If you want to maintain it, please mail to the plugins mailing list and state your intent.


Version 8.0.0
by Bill Carpenter on Dec 11, 2007
[ proon-8.0.0-1.4.0.tar.gz tarball (3949 d/l) Help ]
Requires: SquirrelMail 1.4.x; might work with >1.2.x (untested)

Description: SquirrelMail 1.4.x; might work with >1.2.x (untested) No locale string changes in this release.
  • BUG: Some sites couldn't find proon/form.php under some circumstances. It never happened for me locally, so I couldn't pin it down. Tim Rice sent me a patch that cures it for him, and it does no harm here.
  • MYSTERY: There is a bug reported by a few people, but which I have been unable to reproduce locally. They can manually prune folders, but the automatic pruning (either at login time or at the recurring time period) doesn't seem to ever happen. If you see this problem and can work with me to figure it out, please get in touch.

Older versions

Version 7.0.0
by Bill Carpenter on Jul 20, 2007
[ proon-7.0.0-1.4.0.tar.gz tarball (1879 d/l) Help ]
Requires: SquirrelMail 1.4.x; might work with >1.2.x (untested)

Description: No locale string changes in this release.
  • BUG: Due to a change in the SM core in 1.4.6 (related to security vulnerability CVE-2006-0188), the onetime setup stuff has been giving an error since then. I finally got around to tracking this down and recoding it. As a side-effect, proon now has its own Options subpage instead of being just a link of the Folders subpage. The hooks used by proon are also tweaked a bit for this change.
  • BUG: Quoted the constant names in define() statements for better PHP compliance. Pointed out by ajos1@


Version 7.0.1
by Bill Carpenter on Jul 20, 2007
[ proon-7.0.1-1.4.0.tar.gz tarball (1950 d/l) Help ]
Requires: SquirrelMail 1.4.x; might work with >1.2.x (untested)

Description: If you have 7.0.0 and aren't having any problems, you probably don't need to bump up to 7.0.1.
  • BUG: Missing $ on a variable name in hook.php. (Discovered just after I uploaded the previous version. Oops.)


Version 6.0.0
by Bill Carpenter on Oct 19, 2005
[ proon-6.0.0-1.4.0.tar.gz tarball (4884 d/l) Help ]
Requires: SquirrelMail 1.4.x; might work with >1.2.x (untested)

Description: No locale string changes in this release. If site preferences for pruning are important to you, you probably want to take this upgrade.
  • BUG: Site preferences for folder spans were being ignored if there was no user-specified span on a given folder. This effectively masked the site preferences feature completely for vast tracts of users. Drat!
  • BUG: User preference for unsubscribed folders would defeat site preference-based pruning of those same folders.
  • BUG: If an unsubscribed folder had no user-specified spans but did have site-preference spans, those folders showed up in the non-existent folders part of the table instead of the unsubscribed folders part.


Version 5.0.0
by Bill Carpenter on Sep 3, 2005
[ proon-5.0.0-1.4.0.tar.gz tarball (2502 d/l) Help ]
Requires: SquirrelMail 1.4.x; might work with >1.2.x (untested)

Description:
  • Sitewide preferences corresponding to user preferences. For example, Trash pruned to a certain size every couple of days. Users can do more restrictive things, but the site admin sets the floor. (site-config item "$proon_site_min_interval" is obsolete.)
  • New user option for how frequently to do login pruning if they don't want it every login. Can be, for example, every 3rd login. This, combined with site settings for the Trash folder, allows you to accomplish the essence of what the empty_trash plugin does.
  • Allow specific folders to be exempted from automatic pruning. They can still have pruning preferences set, but it takes a manual click of the "Proon now" button to make it happen.
  • Allow configuration option for using squirrel_logger instead of homebrew logging stuff. See notes in site-config.php.sample.
  • Folder Table now includes subscribed folders, unsubscribed folders, and non-existent folders. For unsubscribed and non-existent folders, they're only listed if there is at least one user preference or site preference item for them. The idea is to avoid surprising someone who starts using a folder that has one of those names.
  • proon/locale/proon.pot updated due to several UI string additions and tweaks. Matching updated cs_CZ translation.
  • BUG: Fixed a bug which sometimes forced an attempt to prune the Trash folder even if no values were given for any spans. The pruning attempt was a no-op, but it resulted in a bogus complaint that there were no span settings for the Trash folder.
  • BUG: Login-time and automatic pruning were skipping folders which only had values for the count span. Fixed.


Version 4.0.0
by Bill Carpenter on Aug 8, 2005
[ proon-4.0.0-1.4.0.tar.gz tarball (2390 d/l) Help ]
Requires: SquirrelMail 1.4.x; might work with >1.2.x (untested)

Description:
  • I18N-ize display of "INBOX" on the proon options form and in autopruning reports.
  • Better checking within the 'webmail_top' hook function to cure some login problems being reported. If you were having errors about user preferences or default_pref at login time, this probably fixes it for you.
  • Fix a glitch in disabled date/size/count. UI was showing things properly, but those factors weren't actually being ignored. Oops.
  • The occasional server is careless about reporting the READ-WRITE status of folders. Proon's check for that is a lot fancier now to account for that.
  • Czech (cs_CZ) translation by Daniel Kahoun. Also, various locale-related fix-ups in the proon code based on suggestions from him and several others on SM mailing lists.
  • Proon now looks for translations under the main SM locale directory instead of under the proon/locale directory. Translations can be done independent of the proon release cycle now.

This should stay stable for a while unless bugs are reported from the field. It's worth the upgrade from previous versions.

I accidentally left a debug print in the code, and it doesn't seem worth another version rev just to correct that. Until some future rev, please comment out the sm_print_r statement near line 209 in proon/action.php.

Version 3.0.0
by Bill Carpenter on Jul 29, 2005
[ proon.3.0.0-1.4.0.tar.gz tarball (2304 d/l) Help ]
Requires: SquirrelMail 1.4.x; might work with >1.2.x (untested)

Description:

  • Eliminate use of bin2hex since there's no official hex2bin
  • Include proon version on the link text at the bottom of the proon settings form
  • Reimplement proon_version() to dynamically read the version file


Version 2.0.0
by Bill Carpenter on Jul 28, 2005
[ proon.2.0.0-1.4.0.tar.gz tarball (2175 d/l) Help ]
Requires: SquirrelMail 1.4.x; might work with >1.2.x (untested)

Description: Everyone should upgrade
  • Corrects a bug which skipped the logon-time pruning for users without a recurring prune interval set.
  • Minor administrative cleanups.


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"
Opera
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-2010 by The SquirrelMail Project Team