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] Correct writing in hosts.hfaxd



"Dirk Salva" <dsalva@xxxxxx> wrote:

Hi,

I've an understanding-problem with registering a user with IPs in the
hosts.hfax in correct way:

Only the user foo may send faxes, and only from the internal network
and localhost. So, is the following string semantically correct?

^foo@xxxxxxxxx
and for the whole 192.168.3.xxx range:
^foo@xxxxxxxxx

_or_

^foo@127\.0\.0\.1
^foo@192\.168\.3
?!?

What is correct?

If you escape the period with a backslash as in "\." then it matches only a period. If you don't escape it, it's a regular expression operator that basically means "any character". Both will work for you in this case, but the escaped form is formally more of an exact match, and could be considered a better way to write it.


-Darren


____________________ 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