Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!texbell!texsun!digi.lonestar.org From: kcantrel@digi.lonestar.org (Keith Cantrell) Newsgroups: comp.mail.sendmail Subject: How do you parse double quotes? Message-ID: <798@digi.lonestar.org> Date: 17 Jul 90 22:44:55 GMT Sender: kcantrel@digi.lonestar.org Distribution: usa Organization: DSC Communications, Plano Tx. Lines: 32 Vital information: sendmail version 5.61 with IDA enhancements I am trying to handle mail from our VMS VAX and I am running into a little problem. The problem is if a user mails from a machine that is not the one that executes SMTP, the sender (both envelope and headers) are of the form: VAX_MAIL_MACHINE!"CLUSTER_NAME::USERNAME" (with the double quotes!). It does not pose a problems to our mailer, but when we pass the message to other mailers in the network, a lot of them barf on calculating the return path. I tried to write a rule that would match $+!"$+::$+" but sendmail apparently handles double quotes differently than I would expect (ie. first of all it did not match, secondly it said it was trying to match: -----trying rule: $+ ! "^Q::^Q" 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? Thanks in advance, Keith Cantrell ----------------------------------------------------------------------- Keith Cantrell Phones: hm: 214-492-1088 Apollo Computer wk: 214-519-2399 @ DSC A Subsidiary of Hewlett-Packard USMAIL: EMAIL: 2100 Sonata Ln kcantrel@digi.lonestar.org Carrollton TX 75007 or ...!texbell!digi!kcantrel -----------------------------------------------------------------------