Discussion:
[hylafax-users] routing inbound faxes to folders on the server
(too old to reply)
Alejandro Brust
2005-08-24 20:49:32 UTC
Permalink
Hello sorry about my english,
I would like to know if there is any way to route incoming faxes to userŽs folder on the server. I can see only one on all software-clients.
I got sending incoming faxes by email to users looking the phone number of the caller(FaxDispatch) but it still appearing to all users in clients sofware(whfc),
I mean, after sending the email to de user (of SENDTO= in FaxDispatch file) it isnt erased from the common folder.

thanks!!
Pedro
2005-08-24 21:13:00 UTC
Permalink
--- Alejandro Brust
Post by Alejandro Brust
Hello sorry about my english,
I would like to know if there is any way to route
incoming faxes to user´s folder on the server. I
can see only one on all software-clients.
I got sending incoming faxes by email to users
looking the phone number of the caller(FaxDispatch)
but it still appearing to all users in clients
sofware(whfc),
I mean, after sending the email to de user (of
SENDTO= in FaxDispatch file) it isnt erased from the
common folder.
You can change income job permissions in your modem
config.ttyXX file, say, 600. You send the fax by email
to the intended user and no one has access to recvq
folder.
Post by Alejandro Brust
thanks!!
Pedro

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-***@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail ***@ifax.com.*
Alejandro Brust
2005-08-25 12:35:30 UTC
Permalink
Hi Pedro is ok, but what about the other incoming faxes(the publics ones).
Actually i was looking for "per user folder" and one public to everybody, is
it possible? i was using fax2send and it was possible.......

please answr me.

----- Original Message -----
From: "Pedro" <***@yahoo.com>
To: <hylafax-***@hylafax.org>
Sent: Wednesday, August 24, 2005 6:12 PM
Subject: Re: [hylafax-users] routing inbound faxes to folders on the server
Post by Pedro
--- Alejandro Brust
Post by Alejandro Brust
Hello sorry about my english,
I would like to know if there is any way to route
incoming faxes to user´s folder on the server. I
can see only one on all software-clients.
I got sending incoming faxes by email to users
looking the phone number of the caller(FaxDispatch)
but it still appearing to all users in clients
sofware(whfc),
I mean, after sending the email to de user (of
SENDTO= in FaxDispatch file) it isnt erased from the
common folder.
You can change income job permissions in your modem
config.ttyXX file, say, 600. You send the fax by email
to the intended user and no one has access to recvq
folder.
Post by Alejandro Brust
thanks!!
Pedro
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
____________________ HylaFAX(tm) Users Mailing List
_______________________
Post by Pedro
To subscribe/unsubscribe, click
http://lists.hylafax.org/cgi-bin/lsg2.cgi
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-***@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail ***@ifax.com.*
Pedro
2005-08-25 13:15:18 UTC
Permalink
--- Alejandro Brust
Post by Alejandro Brust
Hi Pedro is ok, but what about the other incoming
faxes(the publics ones).
Actually i was looking for "per user folder" and one
public to everybody, is
it possible? i was using fax2send and it was
possible.......
Yes, it's possible, just add some code into faxrcvd to
do that. For example, if the fax is "public" just
store a copy in a folder with public acess. For a user
you can simple send it by email.
Post by Alejandro Brust
please answr me.
----- Original Message -----
Sent: Wednesday, August 24, 2005 6:12 PM
Subject: Re: [hylafax-users] routing inbound faxes
to folders on the server
Post by Pedro
--- Alejandro Brust
Post by Alejandro Brust
Hello sorry about my english,
I would like to know if there is any way to
route
Post by Pedro
Post by Alejandro Brust
incoming faxes to user´s folder on the
server. I
Post by Pedro
Post by Alejandro Brust
can see only one on all software-clients.
I got sending incoming faxes by email to users
looking the phone number of the
caller(FaxDispatch)
Post by Pedro
Post by Alejandro Brust
but it still appearing to all users in clients
sofware(whfc),
I mean, after sending the email to de user (of
SENDTO= in FaxDispatch file) it isnt erased from
the
Post by Pedro
Post by Alejandro Brust
common folder.
You can change income job permissions in your
modem
Post by Pedro
config.ttyXX file, say, 600. You send the fax by
email
Post by Pedro
to the intended user and no one has access to
recvq
Post by Pedro
folder.
Post by Alejandro Brust
thanks!!
Pedro
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
Post by Pedro
http://mail.yahoo.com
____________________ HylaFAX(tm) Users Mailing
List
_______________________
Post by Pedro
To subscribe/unsubscribe, click
http://lists.hylafax.org/cgi-bin/lsg2.cgi
Post by Pedro
On UNIX: mail -s unsubscribe
/dev/null
Post by Pedro
*To learn about commercial HylaFAX(tm) support,
____________________ HylaFAX(tm) Users Mailing List
_______________________
To subscribe/unsubscribe, click
http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe
*To learn about commercial HylaFAX(tm) support,
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-***@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail ***@ifax.com.*
Sam
2005-08-26 14:00:50 UTC
Permalink
One problem I've been having with that idea is that FaxDispatch/faxrcvd s
eems
to copy the file immediately. Hence the copied version would be the
initially created .tiff (let's say 8k instead 124k or whatever the final
size
might be).

Any ideas on how to circumvent this issue?
Post by Pedro
--- Alejandro Brust
Post by Alejandro Brust
Hi Pedro is ok, but what about the other incoming
faxes(the publics ones).
Actually i was looking for "per user folder" and one
public to everybody, is
it possible? i was using fax2send and it was
possible.......
Yes, it's possible, just add some code into faxrcvd to
do that. For example, if the fax is "public" just
store a copy in a folder with public acess. For a user
you can simple send it by email.
Post by Alejandro Brust
please answr me.
----- Original Message -----
Sent: Wednesday, August 24, 2005 6:12 PM
Subject: Re: [hylafax-users] routing inbound faxes
to folders on the server
Post by Pedro
--- Alejandro Brust
Post by Alejandro Brust
Hello sorry about my english,
I would like to know if there is any way to
route
Post by Pedro
Post by Alejandro Brust
incoming faxes to user´s folder on the
server. I
Post by Pedro
Post by Alejandro Brust
can see only one on all software-clients.
I got sending incoming faxes by email to users
looking the phone number of the
caller(FaxDispatch)
Post by Pedro
Post by Alejandro Brust
but it still appearing to all users in clients
sofware(whfc),
I mean, after sending the email to de user (of
SENDTO= in FaxDispatch file) it isnt erased from
the
Post by Pedro
Post by Alejandro Brust
common folder.
You can change income job permissions in your
modem
Post by Pedro
config.ttyXX file, say, 600. You send the fax by
email
Post by Pedro
to the intended user and no one has access to
recvq
Post by Pedro
folder.
Post by Alejandro Brust
thanks!!
Pedro
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
Post by Pedro
http://mail.yahoo.com
____________________ HylaFAX(tm) Users Mailing
List
_______________________
Post by Pedro
To subscribe/unsubscribe, click
http://lists.hylafax.org/cgi-bin/lsg2.cgi
Post by Pedro
On UNIX: mail -s unsubscribe
/dev/null
Post by Pedro
*To learn about commercial HylaFAX(tm) support,
____________________ HylaFAX(tm) Users Mailing List
_______________________
To subscribe/unsubscribe, click
http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe
*To learn about commercial HylaFAX(tm) support,
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
____________________ HylaFAX(tm) Users Mailing List ___________________
____
Post by Pedro
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2
cgi
null
____________________ HylaFAX(tm) Users Mailing List _____________________
__
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.c
gi
On UNIX: mail -s unsubscribe hylafax-users-***@hylafax.org < /dev/nu
ll
*To learn about commercial HylaFAX(tm) support, mail ***@ifax.com.*
Lee Howard
2005-08-26 14:11:05 UTC
Permalink
One problem I've been having with that idea is that FaxDispatch/faxrcvd seems
to copy the file immediately. Hence the copied version would be the
initially created .tiff (let's say 8k instead 124k or whatever the final size
might be).
Any ideas on how to circumvent this issue?
faxrcvd isn't called until the fax is complete. The TIFF file should
not be 8K.

Lee.

____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-***@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail ***@ifax.com.*
Sam
2005-08-26 14:27:06 UTC
Permalink
Well, i was making the changes in FaxDispatch. Since FaxDispatch is called
from within faxrcvd, it should only be excecuted once the fax is fully
received, correct?

FaxDispatch:

FILE="/var/spool/fax/recvq/"
FULLPATH="${FILE}${FILENAME}.tif"
case "$DEVICE" in
ttyACM2)
cp $FULLPATH /var/spool/fax/custom/purchasing /faxes/purchasing
rm $FULLPATH;
;;
esae
Post by Lee Howard
Post by Sam
One problem I've been having with that idea is that FaxDispatch/faxrcvd
seems to copy the file immediately. Hence the copied version would be
the initially created .tiff (let's say 8k instead 124k or whatever the
final size might be).
Any ideas on how to circumvent this issue?
faxrcvd isn't called until the fax is complete. The TIFF file should
not be 8K.
Lee.
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-***@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail ***@ifax.com.*
Lee Howard
2005-08-26 14:53:29 UTC
Permalink
Post by Sam
Well, i was making the changes in FaxDispatch. Since FaxDispatch is called
from within faxrcvd, it should only be excecuted once the fax is fully
received, correct?
Correct.

Lee.

____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-***@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail ***@ifax.com.*
Alejandro Brust
2005-08-26 16:18:32 UTC
Permalink
Hello sorry about my english, here is what I ve done but it isnt workin fine......
this piece comes from /var/spool/hylafax/bin/faxrcvd and I put MYCODE in various places of faxrecvd file

I want to move the file(fax0000001.tif) to an userfordel(wich will be shared by samba) and erase it from /var/spool/hylafax/recvq/ IF the callers number match in faxdispatch.....
if not then the file must be moved to another "public folder"
but it isnt working just the part whe the file is moved or erased...... Im not a programer sorry, I really need your help.. look


FILENAME=`echo $FILE | $SED -e 's/\.tif//' -e 's/recvq\///'`
SENDER="`$INFO $FILE | $AWK -F: '/Sender/ { print $2 }' 2>$ERRORSTO | $SED 's/^.//'`"
SUBADDR="`$INFO $FILE | $AWK -F: '/SubAddr/ { print $2 }' 2>$ERRORSTO | $SED 's/^.//'`"

#
# Apply customizations. All customizable variables should
# be set to their non-customized defaults prior to this.
#
if [ -f etc/FaxDispatch ]; then
. etc/FaxDispatch # NB: FaxDispatch sets SENDTO
fi

# BY MY "MYCODE"

echo $FILENAME.tif > .move.file; # a text file just to verify, the file is created with data
echo $SENDTO > .sendto.file; # a text file just to verify,the file is created with data
FILE=`cat .move.file`
USERFOLDER=`cat .sendto.file | sed -e 's/\@mydomain.com.ar//'` # sendto is set by faxdispatch!! and i cut @domain to set teh userfolder var
# for test
echo $FILE > FILE.txt # a text file just to verify, the file is created with data
echo $USERFOLDER > path.txt # a text file just to verify, the file is created with data
mv -v $SPOOL$FILE /home/$USERFOLDER > 1ermove.txt #tit isnt working this file is created empty
mv -v $SPOOL$FILE /home/$USERFOLDER > 2domove.txt #tit isnt working this file is created empty
# Ive tried everithing I know!!
if [ 1 = 1 ]; then
mv -v $SPOOL$FILE /home/$USERFOLDER > $FILE$SPOOL.txt # isnt working
else
echo "fallo el 1a1 del if" > if.txt
fi
/var/spool/hylafax/bin/1 > 1despuesif.txt # isnt working
rm /var/spool/hylafax/recvq/$FILE # isnt working
if I call to other script it is executed but the file isnt moved......
the file contimues normaly......

can some programer help me, is any semi-colon bad or ...

thanks

Continue reading on narkive:
Loading...