Matthew Jordan d9274dbf65 Update init.d scripts to handle stderr; readd splash screen for remote consoles před 12 roky
..
README.messages-expire 70a40d92e3 před 19 roky
agents.php 70a40d92e3 před 19 roky
ast_grab_core 1dac1e7a71 Update references to bugs.digium.com and reviewboard.digium.com to the new URLs. před 15 roky
ast_tls_cert a412e11dcd ast_tls_cert script: Better response for various exit conditions to openssl před 12 roky
astcli 22bd436795 Don't hang if the command is blank před 16 roky
asterisk.ldap-schema 32b93becc7 Schema file additions před 15 roky
asterisk.ldif 8207fe84ee Merged revisions 292787 via svnmerge from před 14 roky
asterisk.logrotate 0052625a98 Build the logrotate script according to paths před 16 roky
astgenkey 70a40d92e3 před 19 roky
astgenkey.8 dd228677cd fix hyphen vs. minus in man pages před 15 roky
autosupport 95b3923343 autosupport: fix bashism před 12 roky
autosupport.8 1454b219f5 Update autosupport script and man page před 13 roky
dbsep.cgi 0427ee67e8 Update query should be an UPDATE, not a SELECT. před 15 roky
file.convert.sh ef038ffeb4 Prompt conversion script před 13 roky
get_ilbc_source.sh 108796c57c Include iLBC source code for distribution with Asterisk před 13 roky
get_mp3_source.sh b4e16ccf65 Merged revisions 290026 via svnmerge from před 14 roky
import-cdr-csv-mysql.pl 2b511e2db3 Add a cdr_csv to MySQL import script to contrib/scripts. před 14 roky
install_prereq d00eddaebd Update install_prereq script to include missing GSM library for debian amd move SQLite3. před 13 roky
live_ast f14bd84b73 live_ast: valgrind: run asterisk under valgrind před 13 roky
loadtest.tcl 8490690e0d Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow. před 16 roky
lookup.agi 70a40d92e3 před 19 roky
managerproxy.pl 4256c4e143 Small typo fix před 19 roky
messages-expire.pl 70a40d92e3 před 19 roky
qview.pl 70a40d92e3 před 19 roky
retrieve_extensions_from_mysql.pl 70a40d92e3 před 19 roky
retrieve_extensions_from_sql.pl 70a40d92e3 před 19 roky
retrieve_sip_conf_from_mysql.pl 70a40d92e3 před 19 roky
safe_asterisk d9274dbf65 Update init.d scripts to handle stderr; readd splash screen for remote consoles před 12 roky
safe_asterisk.8 dd228677cd fix hyphen vs. minus in man pages před 15 roky
safe_asterisk_restart 11880d84de use pkill instead of killall to be more portable před 16 roky
sip_nat_settings 71a9f76023 Add a script to find out the correct settings for Asterisk behind NAT před 16 roky
valgrind_compare e71fc6f9b2 Multiple revisions 350127-350128 před 13 roky
vmail.cgi f4cda51598 Merged revisions 143736 via svnmerge from před 16 roky
voicemailpwcheck.py 86e726885b Add example script for use with the externpasscheck voicemail.conf option. před 14 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.