HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] A method for resending a 'Done' Job



I have just started using HylaFAX 4.1 on Suse 7.2
It is working perfectly but after a bulk fax to 800 different numbers I found that less than 20% were sent - after the default sendfax kill time (-k) of 3 hours, the remaining were moved to the doneq and an email notification was sent.

faxqclean was disabled first to make sure the full status information was available - this also prevented document files from being deleted out of docq.

In future I will specify a kill time, the following procedure seemed to reliably put the jobs back into the sendq.
NOTE: faxalter is not able to resend a done job.

This script creates a file listing all job files from the doneq where no pages have been sent.

#grep -e npages:0 /var/spool/hylafax/doneq/q* \
        | cut -d : -f 1 \
        | sed -n -e "{ s/.*\/\(q[[:digit:]]*\)/\1/g; p; }" \
        >redolist

Adjusting the tts, killtime and setting state to 5 from 7 prepares an individual job for being put back into the sendq.

To automatically fix:-
 (tts, killtime will need to be adjusted)

----- redo.sh
#!/bin/bash
#
cat >redo.sed <<EOF
/state:/ s/7/5/
/tts:/ c \
tts:1005302934
/killtime:/ c \
killtime:1005907674
EOF

for i in `cat redolist`; do
        cat /var/spool/hylafax/doneq/$i \
                | sed -f redo.sed \
                > /tmp/$i
        chown uucp.uucp /tmp/$i
        rm /var/spool/hylafax/doneq/$i
        mv /tmp/$i /var/spool/hylafax/sendq
done

NOTE: faxq does not process jobs that are directly modified in this way - simply restart it.

Hope this helps.




____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions