103,6 → 103,7 |
eval $($DMS_BIN/rubrica alias "$Numero_Fax") |
[ "$DEBUG" = "yes" ] && $DMS_BIN/rubrica alias "$Numero_Fax" |
[ -z "$RubrMAIL" -o "$RubrMAIL" = "-" ] && RubrMAIL="$MAILTO" |
[ "$RubrMAIL" = "-" ] && RubrMAIL="" |
# abbiamo: RubrALIAS RubrNUM RubrNOME RubrMAIL RubrIN RubrOUT RubrID RubrLISTA |
# se Lista RubrALIAS=RubrID abbiamo una lista di distribuzione ... |
# salto se il numero non è indicato (è il caso anche delle liste) |
239,13 → 240,15 |
fi |
else |
# invio del documento via fax |
/opt/dms/bin/su1 dms.sendfax "$RubrNUM" $TempDir/fax/* |
/opt/dms/bin/su1 dms.sendfax "$RubrNUM" $TempDir/fax/* |
# verifica risultato della trasmissione |
stato=$? |
[ -n "$DEBUG" ] && echo "stato trasmissione = $stato" |
# individuo l'identificativo del destinatario |
NUM="$(echo "$RubrNUM" | /usr/bin/tr -d '[A-z/\\ \-\+.,_:]')" |
_Identificativo_Fax="$(cat $DMS_VAR/log/sendto_$NUM.log | grep "fax_id:.*found")" |
# salvo log nella cartella cache del documento |
mv $DMS_VAR/log/sendto_$NUM.log $TempDir/sendfax.log |
_Identificativo_Fax="$(cat $TempDir/sendfax.log | grep "fax_id:.*found")" |
_Identificativo_Fax="${_Identificativo_Fax%%found*}" |
_Identificativo_Fax="${_Identificativo_Fax#*\"}" |
_Identificativo_Fax="_${_Identificativo_Fax%\"*}_" |