2004-02-08 Gernot Hillier <gernot@hillier.de>

* scripts/capisuitefax.in: also accept PDF files


git-svn-id: https://svn.ibp.de/svn/capisuite/trunk/capisuite@227 4ebea2bb-67d4-0310-8558-a5799e421b66
This commit is contained in:
gernot 2004-02-08 21:16:57 +00:00
parent a67f0e5b9f
commit ca4f537803
3 changed files with 9 additions and 4 deletions

View File

@ -14,6 +14,7 @@
* src/modules/faxsend.{cpp,h} (mainLoop): Likewise.
* src/backend/connection.cpp (data_b3_conf): fix behaviour when
DATA_B3_CONF comes immediately after DATA_B3_REQ
* scripts/capisuitefax.in: also accept PDF files
2004-01-18 Gernot Hillier <gernot@hillier.de>
* scripts/cs_helpers.pyin (sendMIMEMail): remove space in sox call

3
NEWS
View File

@ -1,6 +1,9 @@
0.5 (CVS nn):
=============
* scripts: capisuitefax now also accepts PDF files (thx to Jochen Meyer
and Eckhard Rüggeberg for reporting)
* core: fixed a bug which could lead to a crash when some unexpected
CAPI messages arrived (thx to Karsten Keil for analyzing)

View File

@ -4,7 +4,7 @@
# ---------------------------------------------------
# copyright : (C) 2002 by Gernot Hillier
# email : gernot@hillier.de
# version : $Revision: 1.6 $
# version : $Revision: 1.7 $
#
# 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
@ -49,7 +49,7 @@ other options:
-h, --help print this usage information
-l, --list print jobs in the send queue
The given files must be in Adobe PostScript format"""
The given files must be in Adobe PostScript or PDF format"""
if (error!=""):
print
print "ERROR:",error
@ -186,8 +186,9 @@ for i in args:
filetype=t.read()
if (t.close()):
usage("can't execute \"file\"")
if (not re.search("application/postscript",filetype)):
sys.stderr.write(i+" is not a PostScript file\n")
if (not re.search("application/postscript",filetype) \
and not re.search("application/pdf",filetype)):
sys.stderr.write(i+" is not a PostScript/PDF file\n")
continue
newname=cs_helpers.uniqueName(sendq,"fax","sff")