Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
faxcron deletes seqf files
Hi,
It seems to me that the faxcron cronjob coming with hylafax 4.1beta1
deletes the seqf file in the receive queue, if no faxes have been
received during the AGERCV period. The same is true for the log
seqf file.
Without having gone into the very very details of hylafax operation, I
would think that this is not wanted.
In reality, this might cause problems if faxes are automatically
transferred to some storage area not under hylafax control. The lost seqf
file would then lead to doubly generated filenames.
Find a patch to 4.1beta2 [the same bug (?) exists in 4.1beta1] attached.
The find command used to find old files also emits the directory
name (recvq) in the same case... this is also fixed
The patch also applies cleanly to the installed faxcron (using a command
sequence like:
patch -p2 /usr/sbin/faxcron $HOME/hylafax-4.1beta2-faxcron.patch
)
peter
*** hylafax-4.1beta2/util/faxcron.sh.in Tue Jun 29 13:55:07 1999
--- hylafax-4.1beta2/util/faxcron.sh.in-fixed Sun May 7 16:03:02 2000
***************
*** 324,328 ****
echo ""
! find log -mtime +$AGELOG -print >$JUNK
if [ -s $JUNK ]; then
echo "Purge session logs older than $AGELOG days:"
--- 324,328 ----
echo ""
! find log -not -name seqf -type f -mtime +$AGELOG -print >$JUNK
if [ -s $JUNK ]; then
echo "Purge session logs older than $AGELOG days:"
***************
*** 404,408 ****
# Purge old stuff from the receive queue.
#
! find recvq -mtime +$AGERCV -print >$JUNK
if [ -s $JUNK ]; then
echo "Purge received facsimile older than $AGERCV days:"
--- 404,408 ----
# Purge old stuff from the receive queue.
#
! find recvq -not -name seqf -type f -mtime +$AGERCV -print >$JUNK
if [ -s $JUNK ]; then
echo "Purge received facsimile older than $AGERCV days:"