Hope you will be fine. Now what to do now is when voice mail is received by send mail then using procmail extaract the voicemail from the whole email, rename it to msgNNNN.wav, then create a normal text file and named it to msgNNNN.txt and it cantain the relevant material means when i call to Asterisk to record a voice message for extension 206 it stores the msg0000.txt file with the info.
; Message Information file
origdate=Fri Oct 31 08:46:27 PM PKT 2008
So now if i send my voice mail to extension 220 i have to create a text file with the same info as above file contain but for extension 220, and then send it to INBOX folder. So this means that now i require another script that can do this thing.
Do you know such kind of script that can do it