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
On Tue, 2003-10-21 at 09:44, Ryan Tucker wrote:> Does anyone have a quick and dirty script for defragmenting mailboxes?[snip]> > 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. -rtYes, the gaps in the numbering get really annoying. Unfortunately, it's a little bit risky to go moving files around without stopping asterisk first, or you might just contribute to the problem instead of helping it. (For example, if someone is leaving a message while you are renumbering the files.) I think the best long-term solution is to [ask|beg|pay|coerce|convince] someone to fix the way voicemail messages are numbered to avoid race conditions. Jared