Yu.ding c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
..
sip_to_pjsip c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
README.messages-expire c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
agents.php c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
ast_coredumper c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
ast_grab_core c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
ast_logescalator c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
ast_loggrabber c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
ast_tls_cert c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
astcli c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
asterisk.ldap-schema c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
asterisk.ldif c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
asterisk.logrotate c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
astgenkey c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
astgenkey.8 c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
astversion c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
autosupport c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
autosupport.8 c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
clang-scan-build c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
dahdi_span_config_hook c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
dbsep.cgi c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
file.convert.sh c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
get_ilbc_source.sh c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
get_mp3_source.sh c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
get_swagger_ui.sh c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
import-cdr-csv-mysql.pl c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
install_prereq c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
live_ast c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
loadtest.tcl c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
lookup.agi c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
managerproxy.pl c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
messages-expire.pl c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
qview.pl c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
refcounter.py c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
retrieve_extensions_from_mysql.pl c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
retrieve_extensions_from_sql.pl c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
retrieve_sip_conf_from_mysql.pl c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
safe_asterisk c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
safe_asterisk.8 c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
safe_asterisk_restart c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
sip_nat_settings c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
valgrind_compare c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
vmail.cgi c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ
voicemailpwcheck.py c509ce44e2 提交CooCenter使用的asterisk源码 5 gadi atpakaļ

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.