Hylafax Mailing List Archives

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

Re: List of Outstanding Patches



On Tue, 23 Sep 1997, Phil Watkinson wrote:

>  Apr  97   faxrm ??          add -a parameter          Jonathan Chen

[snip]
>  I can find references to, but not the actual patch itself, for the
>  faxrm -a feature.

Here's an updated copy. The changes to the online documentation have
yet to be made . For those new to the list, the -a feature allows the
fax-adminstrator to remove a fax; on verification of a password
against the hosts file.
--
Jonathan Chen                          e-mail : jonc@pinnacle.co.nz
  Pinnacle Software Ltd                Voice  : +64.9.415.4460
  Auckland, New Zealand                Fax    : +64.9.415.4250

--------------------------------------------------------------------
*** faxrm.c++.old	Wed Nov 27 12:21:45 1996
--- faxrm.c++	Wed Sep 24 12:07:25 1997
***************
*** 56,63 ****
  
      fxBool jobs = TRUE;
      fxBool docs = FALSE;
!     while ((c = getopt(argc, argv, "h:dv")) != -1)
  	switch (c) {
  	case 'd':			// treat args as document names
  	    jobs = FALSE;
  	    docs = TRUE;
--- 56,68 ----
  
      fxBool jobs = TRUE;
      fxBool docs = FALSE;
!     fxBool useadmin = FALSE;
! 
!     while ((c = getopt(argc, argv, "ah:dv")) != -1)
  	switch (c) {
+ 	case 'a':
+ 	    useadmin = TRUE;
+ 	    break;
  	case 'd':			// treat args as document names
  	    jobs = FALSE;
  	    docs = TRUE;
***************
*** 75,81 ****
  	usage();
      fxStr emsg;
      if (callServer(emsg)) {
! 	if (login(NULL, emsg)) {
  	    for (; optind < argc; optind++) {
  		const char* id = argv[optind];
  		if (jobs) {
--- 80,88 ----
  	usage();
      fxStr emsg;
      if (callServer(emsg)) {
! 	if (login(NULL, emsg) &&
! 	    (!useadmin || admin (NULL, emsg))) {
! 
  	    for (; optind < argc; optind++) {
  		const char* id = argv[optind];
  		if (jobs) {
***************
*** 125,131 ****
  void
  faxRmApp::usage()
  {
!     fxFatal("usage: faxrm [-h server-host] [-dv] id...");
  }
  
  int
--- 132,138 ----
  void
  faxRmApp::usage()
  {
!     fxFatal("usage: faxrm [-h server-host] [-adv] id...");
  }
  
  int



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