Displaying 2 results from an estimated 2 matches for "partfilenam".
Did you mean:
  partfilename
  
2023 Oct 10
1
Deleting voicemail by program
.../null); do       # the
redirect supresses msg when dir empty
   if [ $(stat --format=%s ${file/.txt/.wav}) -lt ${MINSIZE} ]; then
     rm ${file/.txt/.*}
     let delcnt++
   fi
   lastfile=${file}
 done
 if [ $delcnt -gt 0 ]; then echo "$delcnt short messages deleted from
${msgdir}"; fi
 partfilename=${lastfile/*\/msg/}                              # get number
from file name
 highest=${partfilename/.txt/}
 while [[ $highest = 0* ]]; do highest=${highest#0}; done      # bash does
not like leading zeros
 if [ ${#highest} -eq 0 ]; then highest=0; fi                  # ...or
blanks for math
 real...
2023 Oct 09
3
Deleting voicemail by program
Hi all,
I need to be able to delete a voicemail message using a program.  
Is is sufficient to simply delete the .wav and .txt files in the spool directory?  
Or do I need to also renumber the remaining files?
For example, let say a given mailbox has 20 messages in it and I want to 
delete message number 5.  Can I just delete the 2 files and expect that 
asterisk will renumber them?  Or do I