updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / capisuite / capisuite-0.4.5-sox.patch
blobef58325ff6e904265c5e37ece9439daa232c01f8
1 diff -ur capisuite-0.4.5.orig/scripts/cs_helpers.pyin capisuite-0.4.5/scripts/cs_helpers.pyin
2 --- capisuite-0.4.5.orig/scripts/cs_helpers.pyin 2004-11-28 15:35:23.000000000 +0200
3 +++ capisuite-0.4.5/scripts/cs_helpers.pyin 2009-05-12 20:58:34.000000000 +0300
4 @@ -227,7 +227,7 @@
5 elif (mail_type=="la"): # voice file
6 # la -> wav
7 # don't use stdout as sox needs a file to be able to seek in it otherwise the header will be incomplete
8 - ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,"-w",basename+"wav")
9 + ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,"-2",basename+"wav")
10 if (ret or not os.access(basename+"wav",os.R_OK)):
11 raise "conv-error","Error while calling sox. Not installed?"
12 filepart = email.MIMEAudio.MIMEAudio(open(basename+"wav").read(),"x-wav",email.Encoders.encode_base64,name=os.path.basename(basename)+"wav")