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

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.