2004-01-18 Gernot Hillier <gernot@hillier.de>
* scripts/cs_helpers.pyin (sendMIMEMail): remove space in sox call git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@210 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
parent
2327a0eb11
commit
182a695a1c
|
@ -1,3 +1,6 @@
|
|||
2004-01-18 Gernot Hillier <gernot@hillier.de>
|
||||
* scripts/cs_helpers.pyin (sendMIMEMail): remove space in sox call
|
||||
|
||||
2004-01-17 Gernot Hillier <gernot@hillier.de>
|
||||
* scripts/cs_helpers.pyin (escape,getAudio,uniqueName,sendMIMEMail,
|
||||
sendSimpleMail,sayNumber), scripts/idle.py (idle,sendfax,movejob),
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# -----------------------------------------------------------
|
||||
# copyright : (C) 2002 by Gernot Hillier
|
||||
# email : gernot@hillier.de
|
||||
# version : $Revision: 1.17 $
|
||||
# version : $Revision: 1.18 $
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -212,7 +212,7 @@ def sendMIMEMail(mail_from,mail_to,mail_subject,mail_type,text,attachment):
|
|||
elif (mail_type=="la"): # voice file
|
||||
# la -> wav
|
||||
# don't use stdout as sox needs a file to be able to seek in it otherwise the header will be incomplete
|
||||
ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,"-w ","%swav" % basename)
|
||||
ret = os.spawnlp(os.P_WAIT,"sox","sox",attachment,"-w","%swav" % basename)
|
||||
if (ret or not os.access("%swav" % basename,os.R_OK)):
|
||||
raise "conv-error","Error while calling sox. File damaged or sox not installed?"
|
||||
filepart = email.MIMEAudio.MIMEAudio(open("%swav" % basename).read(),"x-wav",email.Encoders.encode_base64,name="%swav" % os.path.basename(basename))
|
||||
|
|
Loading…
Reference in New Issue