HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] R: R: delete tiff after received and order by tim est amp.

On Thu, 3 Mar 2005 17:11:03 +0100, Meli Marco
<Marco.Meli@xxxxxxxxxxxxxxxxxxx> wrote:
> Ok you are right, but where can I find more information about Faxdispatch
> environment variables 
Don't know if they are detailed somewhere, however look at faxrcvd and
see when FaxDispatch get sourced; so you can do whatever you want. I't
just a way to customize faxrcvd without editing it, look at the
variabled defined at the top of faxrcvd (SENDTO, NOTOFY_FAXMASTER,

> and how can I mv the files to another folder?

at the end of your faxrcvd.custom

if [ -f $FILE ]; then  # FILE is recvq/fax000001.tif
  mv $FILE /mypath_of_backup/${MYNAME}
  or whtever you want

Personally, I would:
1) not share recvq
2) let recvq be emptied automatically by cron hylafax script
3) share with samba /path/fax
4) copy files into /path/fax
  MY_PATH=/path/fax/(date +%Y-%m-%d)
  mkdir -p $MY_PATH
  cp $FILE $MY_PATH/

make $MY_PATH readable and not writable by samba users

So you get faxes archived by day.
If you really need to do "my users delete fax and put them into their homedir"
cp $FILE /path/fax/current/     and make it writable by samba users.


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*

Project hosted by iFAX Solutions