Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!samsung!emory!utkcs2!moore From: moore@cs.utk.edu (Keith Moore) Newsgroups: comp.mail.sendmail Subject: Re: How do you parse double quotes? Message-ID: <1990Jul18.170636.8340@cs.utk.edu> Date: 18 Jul 90 17:06:36 GMT References: <798@digi.lonestar.org> Distribution: usa Organization: University of Tennessee CS Department Lines: 26 In article <798@digi.lonestar.org> kcantrel@digi.lonestar.org (Keith Cantrell) asks: How do you parse double quotes? The answer is: You can't do this with sendmail. Sendmail assumes that the headers and addresses are RFC822-compliant, so anything within double quotes is treated as a single token. >So my question is: How do I match double quotes? Or better yet, what will >be a good translation rule for converting >VAX_MAIL_MACHINE!"CLUSTER_NAME::USERNAME" to VAX_MAIL_MACHINE!USERNAME, >and, which rule should I put this in? The place to do this is not in sendmail, but in the gateway between the DECnet world and the Internet world. I just added support to my DECnet mail gateway for rewrite rules based on regular expressions. With this code and some help from the domain name server, it's not too difficult to convert most DECnet mail addresses to domain addresses. I'll announce in this newsgroup when the new version of the gateway is ready for release. -- Keith Moore Internet: moore@cs.utk.edu University of Tenn. CS Dept. BITNET: moore@utkvx 107 Ayres Hall, UT Campus UT Decnet: utkcs::moore Knoxville Tennessee 37996-1301 Telephone: +1 615 974 0822