Skip to content

Commit

Permalink
support archiving of faxes sent and received
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsetsystems committed Mar 29, 2007
1 parent 82b569c commit 6b04d0a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions interface/fax/fax_dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function mergeTiffs() {

// Send the fax as the cover page followed by the selected pages.
$info_msg .= mergeTiffs();
$tmp0 = exec("sendfax -n $form_finemode -d " .
$tmp0 = exec("sendfax -A -n $form_finemode -d " .
escapeshellarg($form_fax) . " $tmpfn2 '$faxcache/temp.tif'",
$tmp1, $tmp2);
if ($tmp2) {
Expand All @@ -194,8 +194,13 @@ function mergeTiffs() {
}

if ($_POST['form_cb_delete'] && !$info_msg) {
// Delete the tiff file.
unlink($filepath);

// Delete the tiff file, with archiving if desired.
if ($GLOBALS['hylafax_archdir'] && $mode == 'fax') {
rename($filepath, $GLOBALS['hylafax_archdir'] . '/' . $filename);
} else {
unlink($filepath);
}

// Erase its cache.
if (is_dir($faxcache)) {
Expand Down

0 comments on commit 6b04d0a

Please sign in to comment.