[ont.uucp] Smail 2.5 patch

dan@maccs.dcss.mcmaster.ca (Dan Trottier) (11/13/89)

This is an unofficial patch to smail 2.5. It allows smail to try the hostname
as entered before trying any conversions.

Example:

   old smail:    host.sub.domain
         try:    .host.sub.domain
         try:    host.sub.domain
         try:    .sub.domain
         try:    sub.domain
                 etc

   new smail:    host.sub.domain
         try:    host.sub.domain  \____   These two have been reversed
         try:    .host.sub.domain /
         try:    .sub.domain         <--  from this point down the behaviour
         try:    sub.domain               is the same.
                 etc


I've been running this for about 8 months without any problems. I cannot
guarantee that you will have the same results nor will take responsibility
for any loss mail that results from applying this patch. 

*** old_resolve.c	Wed May 24 09:27:54 1989
--- resolve.c	Wed May 24 09:26:44 1989
***************
*** 238,246 ****
  */
  	for(step = 0; (step < domains); step++) {
                  
! 	    if((getpath(domainv[step]-1, path, cost) == EX_OK)    /* w/ dot */
!                || (getpath(domainv[step]  , path, cost) == EX_OK))/* no dot */
  		break;
  	}
  
  	if(step == domains) {
--- 238,249 ----
  */
  	for(step = 0; (step < domains); step++) {
                  
! 	    if( (step != 0) 
!                && (((getpath(domainv[step]-1, path, cost) == EX_OK) /* w/ dot */
!                || (getpath(domainv[step]  , path, cost) == EX_OK))))/* no dot */
  		break;
+               else if (getpath(domainv[step], path, cost) == EX_OK) /* no dot */
+                 break;
  	}
  
  	if(step == domains) {

--- end ---
-- 
Dan Trottier                                       dan@maccs.dcss.McMaster.CA
Dept of Computer Science                       ...!uunet!utai!utgpu!maccs!dan
McMaster University                                      (416) 525-9140 x3444