home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / mail / sendmail / 2150 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.8 KB  |  45 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!gatech!psuvax1!leps5.phys.psu.edu!kenh
  3. From: kenh@leps5.phys.psu.edu (Ken Hornstein)
  4. Subject: Re: How To Remove Double-Quotes From Addresses???
  5. Message-ID: <BtnupH.BDp@cs.psu.edu>
  6. Keywords: sendmail sendmail.cf help quotes
  7. Sender: news@cs.psu.edu (Usenet)
  8. Nntp-Posting-Host: leps5.phys.psu.edu
  9. Organization: Penn State, Laboratory for Elementary Particle Science
  10. References: <1992Aug26.204126.18609@tron.bwi.wec.com>
  11. Date: Thu, 27 Aug 1992 21:08:05 GMT
  12. Lines: 31
  13.  
  14. In article <1992Aug26.204126.18609@tron.bwi.wec.com> krenz@pql840.bwi.wec.com (Randy Krenz) writes:
  15. >Hello SendMail Guru's
  16. >
  17. >I am doing some work on sendmail.cf on a Dec machine running 4.2 Ultrix.
  18. >I am interested in being able to remove double-quotes from an address.
  19. >For example, I want to have the following:
  20. >
  21. >nodename1::"nodename2::user"    =>    nodename1::nodename2::user
  22.  
  23. Have you looked at IDA sendmail?  There is an excellent example of how to do
  24. this in there.  I run it on our Ultrix 4.0 machine as a mail gateway between
  25. our VAXes running DECnet and the Internet.  In case you're interested, here's
  26. the revelant section:
  27.  
  28. R$+!.$+            $1^.$2            fix mangled Xerox dList
  29. ->RIN%$+        leps5::$1        A f*cking hack
  30. R$+::$B::$+        $B::$2            Shorten decnet route thru us
  31. R$-::$-            $1::$2?$(@$&Q$2$&Q$)    Is this decnet quoted 822?
  32. R$-::$-?""$+@$+""    @$1.dnet:$3@$4        Convert quoted to source route.
  33. R$-::$-?$+        $1::$2            Else restore
  34. R$+::$+            $1.dnet!$2        Convert DECNET to bang path.
  35. R$+!:$+@$+        $1!$3!$2        scrambled source route
  36. R$+!:$+            $1!$2            mangled VAX/VMS address
  37.  
  38. The line marked with a arrow is my own addition.
  39.  
  40. However, there is no guarantee this will work without IDA sendmail (I know
  41. the $( $) won't work, the $&Q probably won't work eiher).  I highly recommond
  42. getting IDA; it's a _lot_ better than Ultrix's sendmail.
  43.  
  44. --Ken
  45.