Hylafax Mailing List Archives

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

Re: [hylafax-users] FaxNotify question - any way to get username?



David Brodbeck wrote:

Are any variables available to FaxNotify other than "WHY"? Specifically, is
there some way I can find out the submitting username in FaxNotify? I'd
like to set RETURNFILETYPE on a user-by-user basis.



In 4.2.0 and later (although I wouldn't recommend trying this with anything earlier than 4.2.1) you can just refer to the qfile entry as a variable, like this:


 if [ "$owner" = "root" ]; then
   RETURNFILETYPE=tif;
 else
   RETURNFILETYPE=pdf;
 fi

The contents of the queue file are already parsed and waiting. No need to reparse the queue file.

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-request@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services