[Asterisk-Users] "Defragmenting" mailboxes

Ryan Tucker rtucker at netacc.net
Tue Oct 21 08:44:38 MST 2003


Does anyone have a quick and dirty script for defragmenting mailboxes?  
i.e.:

-rwx------    1 root     root        80553 Oct 20 16:27 msg0000.gsm
-rw-r--r--    1 root     root          218 Oct 20 16:27 msg0000.txt
-rwx------    1 root     root       781164 Oct 20 16:27 msg0000.wav
-rwx------    1 root     root        79360 Oct 20 16:27 msg0000.WAV
-rwx------    1 root     root         7260 Oct 20 17:48 msg0001.gsm
-rw-r--r--    1 root     root          225 Oct 20 17:48 msg0001.txt
-rwx------    1 root     root        70444 Oct 20 17:48 msg0001.wav
-rwx------    1 root     root         7211 Oct 20 17:48 msg0001.WAV
-rwx------    1 root     root        11220 Oct 21 08:13 msg0002.gsm
-rw-r--r--    1 root     root          224 Oct 21 08:13 msg0002.txt
-rwx------    1 root     root       108844 Oct 21 08:13 msg0002.wav
-rwx------    1 root     root        11111 Oct 21 08:13 msg0002.WAV
-rwx------    1 root     root        37092 Oct 21 10:53 msg0003.gsm
-rw-r--r--    1 root     root          226 Oct 21 10:53 msg0003.txt
-rwx------    1 root     root       359724 Oct 21 10:53 msg0003.wav
-rwx------    1 root     root        36590 Oct 21 10:53 msg0003.WAV
-rwx------    1 root     root       175791 Oct 10 14:56 msg0009.gsm
-rw-r--r--    1 root     root          227 Oct 10 14:56 msg0009.txt
-rwx------    1 root     root      1704684 Oct 10 14:56 msg0009.wav
-rwx------    1 root     root       173156 Oct 10 14:56 msg0009.WAV
-rwx------    1 root     root        65340 Oct 10 17:03 msg0010.gsm
-rw-r--r--    1 root     root          217 Oct 10 17:03 msg0010.txt
-rwx------    1 root     root       633644 Oct 10 17:03 msg0010.wav
-rwx------    1 root     root        64410 Oct 10 17:03 msg0010.WAV

Note the gap between 0003 and 0009.  This is caused by a somewhat common 
situation, and it tends to bite us somewhat often.  :-)

If not, if I get a chance, I'll whip something up.  -rt

-- 
Ryan Tucker
Network Engineer
NetAccess, Inc.
1159 Pittsford-Victor Road
Bldg. 5, Suite 140
Pittsford, New York 14534
585-419-8200
www.netacc.net



More information about the asterisk-users mailing list