From 182a695a1cea4ac52a98c56f42e03269a7c47ac5 Mon Sep 17 00:00:00 2001 From: gernot Date: Sun, 18 Jan 2004 09:14:13 +0000 Subject: [PATCH] 2004-01-18 Gernot Hillier * 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 --- ChangeLog | 3 +++ scripts/cs_helpers.pyin | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e892acb..d2bba35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2004-01-18 Gernot Hillier + * scripts/cs_helpers.pyin (sendMIMEMail): remove space in sox call + 2004-01-17 Gernot Hillier * scripts/cs_helpers.pyin (escape,getAudio,uniqueName,sendMIMEMail, sendSimpleMail,sayNumber), scripts/idle.py (idle,sendfax,movejob), diff --git a/scripts/cs_helpers.pyin b/scripts/cs_helpers.pyin index 1540ea8..bf2e991 100644 --- a/scripts/cs_helpers.pyin +++ b/scripts/cs_helpers.pyin @@ -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))