fix up quote stripping code
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 26 Mar 1993 02:56:43 +0000 (18:56 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 26 Mar 1993 02:56:43 +0000 (18:56 -0800)
SCCS-vsn: usr.sbin/sendmail/cf/m4/proto.m4 6.28

usr/src/usr.sbin/sendmail/cf/m4/proto.m4

index ab2c641..8d3503f 100644 (file)
@@ -8,7 +8,7 @@ divert(-1)
 #
 divert(0)
 
 #
 divert(0)
 
-VERSIONID(`@(#)proto.m4        6.27 (Berkeley) %G%')
+VERSIONID(`@(#)proto.m4        6.28 (Berkeley) %G%')
 
 MAILER(local)dnl
 
 
 MAILER(local)dnl
 
@@ -535,7 +535,12 @@ R$+ < @ >          $#local $: $1                   no relay or hub: local
 R$+ < @ $j  >          $#local $: $1                   we are relay/hub: local
 R$+ < @ $-:$+ >                $# $2 $@ $3 $: $1               deliver to relay/hub
 R$+ < @ $+ >           $#relay $@ $2 $: $1             deliver to relay/hub',
 R$+ < @ $j  >          $#local $: $1                   we are relay/hub: local
 R$+ < @ $-:$+ >                $# $2 $@ $3 $: $1               deliver to relay/hub
 R$+ < @ $+ >           $#relay $@ $2 $: $1             deliver to relay/hub',
-`# handle locally delivered names
+
+`# if this is quoted, strip the quotes and try again
+R$+                    $: $(dequote $1 $)              strip quotes
+R$* $=O $*             $@ $>7 $1 $2 $3                 try again
+
+# handle locally delivered names
 R$=L                   $#local $: @ $1                 special local names
 R$+                    $#local $: $1                   regular local names
 
 R$=L                   $#local $: @ $1                 special local names
 R$+                    $#local $: $1                   regular local names
 
@@ -546,11 +551,6 @@ R$+                        $#local $: $1                   regular local names
 
 S5
 
 
 S5
 
-# if this is quoted, strip the quotes and try again
-R$+.                   $1                              strip trailing dots
-R$+                    $: $(dequote $1 $)              strip quotes
-R$* $=O $*             $>7 $1 $2 $3                    try again
-
 # see if we have a relay or a hub
 R$+                    $: $1 < @ $R >
 R$+ < @ >              $: $1 < @ $H >                  no relay, try hub
 # see if we have a relay or a hub
 R$+                    $: $1 < @ $R >
 R$+ < @ >              $: $1 < @ $H >                  no relay, try hub