- allow multiple mail addresses to be set as fax_email or voice_email

git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@86 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
gernot 2003-04-10 20:54:44 +00:00
parent ed1b038847
commit 49c8d9a178
5 changed files with 29 additions and 26 deletions

5
NEWS
View File

@ -3,7 +3,10 @@
* scripts: fixed a bug in idle.py which caused a fax send delay of one
hour when daylight saving time is in effect
* scripts: attachments to sent e-mails now get a valid filename
* scripts: attachments to sent e-mails now get a valid filename
* scripts: the *_email settings from fax.conf and answering_machine.conf
now allow to set multiple addresses to send the mails to
0.4.1a (tag CAPISUITE_041a):
============================

View File

@ -760,10 +760,10 @@ make install</screen>
</varlistentry>
<varlistentry id="fax_email">
<term><option>fax_email=""</option></term>
<listitem><para>If given, this string indicates an email-address where the received faxes and
voice calls will be sent to. If it is empty, they will be sent to the user account on the
system &cs; is running on. The address is also used to send status reports
for sent fax jobs to. If you don't want emails to be sent at all, use the
<listitem><para>If given, this string indicates email-addresses where the received faxes will
be sent to. More addresses are separated by commas. If it is empty, they will be sent
to the user account on the system &cs; is running on. The address is also used to send
status reports for sent fax jobs to. If you don't want emails to be sent at all, use the
action option (see <xref linkend="fax_action"/>).</para>
<para>This option is optional. If not given, the mail is sent to the system account.</para>
</listitem>
@ -906,11 +906,10 @@ make install</screen>
</varlistentry>
<varlistentry id="voice_email">
<term><option>voice_email=""</option></term>
<listitem><para>If given, this string indicates an email-address where the received faxes and
<listitem><para>If given, this string indicates email-addresses where the received faxes and
voice calls will be sent to. If it is empty, they will be sent to the user account on the
system &cs; is running on. The address is also used to send status reports
for sent fax jobs to. If you don't want emails to be sent at all, use the
action option (see <xref linkend="voice_action"/>).</para>
system &cs; is running on. More addresses are separated by commas. If you don't want emails
to be sent at all, use the action option (see <xref linkend="voice_action"/>).</para>
<para>This option is optional. If not set, the calls are mailed to the system account.</para>
</listitem>
</varlistentry>

View File

@ -1,4 +1,4 @@
# $Id: answering_machine.confin,v 1.3 2003/03/20 08:56:21 gernot Exp $
# $Id: answering_machine.confin,v 1.4 2003/04/10 20:54:44 gernot Exp $
#
# This is the configuration file for the answering machine scripts distributed
# with CapiSuite
@ -93,19 +93,18 @@ record_silence_timeout="5"
#
# Additionally, the following options are possible:
#
# voice_numbers="<num1>,<num2>" (optional, if not set this user can't receive)
# voice_numbers="<num1>,<num2>,..." (optional, if not set this user can't receive)
#
# This list contains the numbers on which this user wants to receive incoming
# voice calls. The values are separated by commas. You can also use the special
# entry "*" which stands for accepting ALL incoming calls (use with care!).
#
# voice_email="name@domain.de" (optional, defaults to empty string)
# voice_email="<mailaddress1>,<mailaddress2>,..." (optional, defaults to empty string)
#
# If given, this string indicates an email-address where the received faxes
# If given, this string indicates email-addresses where the received faxes
# and voice calls will be sent to. If it is empty, the recorded calls and
# faxes will be sent to the user on the current system. It's also used to
# send status reports for sent fax jobs to. If you don't want to get emails,
# see the "action" option below
# faxes will be sent to the user on the current system. If you don't want to
# get emails, see the "action" option below
#
# pin="<PIN number>" (optional, defaults to empty)
#

View File

@ -2,7 +2,7 @@
# -----------------------------------------------------------
# copyright : (C) 2002 by Gernot Hillier
# email : gernot@hillier.de
# version : $Revision: 1.4 $
# version : $Revision: 1.5 $
#
# 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
@ -197,7 +197,7 @@ def sendMIMEMail(mail_from,mail_to,mail_subject,mail_type,text,attachment):
textpart = email.MIMEText.MIMEText(text)
msg.attach(textpart)
sendmail = popen2.Popen3("sendmail -f "+mail_from+" "+mail_to)
sendmail = popen2.Popen3("sendmail -t -f "+mail_from)
if (sendmail.poll()!=-1):
capisuite.error("Error while calling sendmail. Not installed?\n")
return
@ -228,7 +228,7 @@ def sendSimpleMail(mail_from,mail_to,mail_subject,text):
msg['From'] = mail_from
msg['To'] = mail_to
sendmail = popen2.Popen3("sendmail -f "+mail_from+" "+mail_to)
sendmail = popen2.Popen3("sendmail -t -f "+mail_from)
if (sendmail.poll()!=-1):
capisuite.error("Error while calling sendmail. Not installed?\n")
return
@ -309,6 +309,9 @@ def sayNumber(call,number,curr_user,config):
capisuite.audio_send(call,getAudio(config,curr_user,i+".la"),1)
# $Log: cs_helpers.pyin,v $
# Revision 1.5 2003/04/10 20:54:44 gernot
# - allow multiple mail addresses to be set as fax_email or voice_email
#
# Revision 1.4 2003/04/08 07:59:56 gernot
# - replace some wrong space indentations by tabs...
#

View File

@ -1,4 +1,4 @@
# $Id: fax.confin,v 1.4 2003/03/20 09:12:42 gernot Exp $
# $Id: fax.confin,v 1.5 2003/04/10 20:54:44 gernot Exp $
#
# This is the fax configuration file for the scripts distributed with CapiSuite
#
@ -128,12 +128,11 @@ fax_headline="Sent by CapiSuite (www.CapiSuite.de)"
# You can also use the special entry "*" which stands for accepting ALL
# incoming calls as fax (use with care!)
#
# fax_email="name@domain.de" (optional, defaults to empty string)
# If given, this string indicates an email-address where the received faxes
# and voice calls will be sent to. If it is empty, the recorded calls and
# faxes will be sent to the user on the current system. It's also used to
# send status reports for sent fax jobs to. If you don't want to get emails,
# see the "action" option below
# fax_email="<mailaddress1>,<mailaddress2>,..." (optional, defaults to empty string)
# If given, this string indicates email-addresses where the received faxes
# will be sent to. If it is empty, they will be sent to the user on the current
# system. They're also used to send status reports for sent fax jobs to. If you
# don't want to get emails, see the "action" option below
#
# fax_action="<action>" (MANDATORY)
# Here you can define what action will be taken when a fax is received.