Accept spaces in Filenames

callerid
Gandalf 2021-04-07 19:09:47 +02:00
parent f1c73851a6
commit 93e37156d8
2 changed files with 6 additions and 6 deletions

View File

@ -8,18 +8,18 @@ If you use Letterheads Address database, uncomment the last line of that file an
## Usage
`./fax.sh <letter.pdf> <recipient>`
With a german fax number `<recipient>`
with a german fax number `<recipient>`
`./fax.sh <letter.pdf> -handle <handle>`
Asks Letterhead's address database for <handle>'s fax number.
asks Letterhead's address database for <handle>'s fax number.
`$ ./fax.sh -help`
Print usage Message and exit
` ./fax.sh -help`
prints usage Message and exits
sipgate doesn't accept pdf files larger than 30 pages or 10MB.
~~For now, `<recipient>` has to be numbers-only, starting with `+49`. It is planned to parse different number formats.~~ Should be done.
Spaces in filename seem to make trouble at the moment - avoid them.
~~Spaces in filename seem to make trouble at the moment - avoid them.~~ Spaces in filenames are difficult. No guarantee, but should be handled now.
`status.sh` shows ID, Date and Status of the last ten fax set from this device.

2
fax.sh
View File

@ -64,7 +64,7 @@ then
exit 2
fi
#Needs to be base64 encoded:
CONTENT=$(base64 $FILE -w 0)
CONTENT=$(base64 "$FILE" -w 0)
if [ -z "$CONTENT" ];
then
echo "Encoding failed"