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

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.