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