Admin Commit 26f3eab611 This commit was manufactured by cvs2svn to create branch 'v1-0'. před 20 roky
..
README.messages-expire 66be370eb6 Trivial fix for README.messages-expire před 21 roky
addmailbox ec1651f1a5 Update addmailbox script (bug #404) před 22 roky
astgenkey db0c8676cc Update astgenkey to make empty ones too před 21 roky
astgenkey.8 63529a85c9 This commit was manufactured by cvs2svn to create branch 'v1-0'. před 20 roky
astxs 2e771e3e91 fix a bug in some small changes to astxs utility před 21 roky
autosupport 87ad1c0fe2 fix misplaced shebang (bug #4643) před 20 roky
autosupport.8 26f3eab611 This commit was manufactured by cvs2svn to create branch 'v1-0'. před 20 roky
iax-friends.sql 15ed8535e3 Bug # 1503: Add Peter's fix to include "accountcode" support to MySQL based IAX-Friends před 21 roky
messages-expire.pl 87dd2ad0d2 Update messages-expire script před 21 roky
postgres_cdr.sql 2087e96b19 Add userfield to schema. Bug #833 před 21 roky
qview.pl 87df8b1ad9 Move qview to the right place před 21 roky
retrieve_extensions_from_mysql.pl 4be85f5fc9 Add the flags column so that if it's set to '1' then that record is not included in the output extensions file před 22 roky
retrieve_extensions_from_sql.pl ffd318c513 Add Peter's SQL complaint script (bug #1482) před 21 roky
retrieve_sip_conf_from_mysql.pl 0588fcb85d Add flags column so that we can exclude some records from being published in the output file před 22 roky
safe_asterisk 80eea5b4a6 Let safe_asterisk take arguments (bug #2085) před 21 roky
safe_asterisk.8 26f3eab611 This commit was manufactured by cvs2svn to create branch 'v1-0'. před 20 roky
sip-friends.sql d7340b86ee Improve SIP friends support (should address bugs #1063 & #1052) před 21 roky
vmail.cgi aabc37bb1d Support both MySQL and traditional mailboxes in vmail.cgi (bug #2297) před 21 roky
vmdb.sql 6b579e32d4 Make primary key context and voicemailbox and make the file easier on před 21 roky

README.messages-expire

messages-expire.pl

messages-expire finds messages more than X days old and deletes them.
Because the older messages will be the lower numbers in the folder (msg0000
will be older than msg0005), just deleting msg0000 will not work.
expire-messages then runs a routine that goes into every folder in every
mailbox to reorganize. If the folder contains msg0000, no action is taken.
If the folder does not, the rename routine takes the oldest message and
names it msg0000, the next oldest message and names it msg0001 and so on.

The file deletion is done by the -exec parameter to 'find'. It would be far
more efficient to take the output from 'find' and just reorganize the
directories from which we deleted a file. Something for the future...

Keep in mind that messages are deleted at the beginning of the script you
will have mailbox trouble if you check messages before the script
reorganizes your mailbox.

To use it, make sure the paths are right. Adjust $age (originally set to
31) if necessary.