[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

minor problem with sendmail compatibility



I have encountered a small problem with the sendmail compatibility
program.  (I hope I have the latest version; I seem to have "Release
2.2", freshly FTP'd from relay.cs.toronto.edu:/pub/zmailer.tar.Z.)
It isn't willing to accept "-oem" even though that's the default
behaviour, and several user agents like to supply that.

I append a patch that will accept "-oem" silently and print the
usual warning on "-oe<anything-besides-m>".

OK,
John.

*** sendmail.c-KEEP	Tue Jul 27 20:09:32 1993
--- sendmail.c	Tue Jul 27 20:11:01 1993
***************
*** 145,150 ****
--- 145,155 ----
  			case 'i':	/* ignore dots */
  				dotiseof = 0;
  				break;
+ 			case 'e':	/* error mode */
+ 				if (optarg[1] != 'm' || optarg[2] != '\0')
+ 					goto casedefault;
+ 				break;
+ 			casedefault:
  			default:
  				(void) sprintf(ebp, " -o%s", optarg);
  				ebp += strlen(ebp);