Path: utzoo!attcan!uunet!bfmny0!tneff From: tneff@bfmny0.BFM.COM (Tom Neff) Newsgroups: comp.mail.uucp Subject: Re: Using SMTP and smail Message-ID: <15889@bfmny0.BFM.COM> Date: 27 Sep 90 09:31:06 GMT References: <1588@chinacat.Unicom.COM> <1990Sep26.202956.11734@chinet.chi.il.us> Reply-To: tneff@bfmny0.BFM.COM (Tom Neff) Lines: 19 In article <1990Sep26.202956.11734@chinet.chi.il.us> les@chinet.chi.il.us (Leslie Mikesell) writes: >Is it safe to let a shell script handle arbitrary addresses passed by >smail 2.5 or can you get shell metacharacters in there with the right >quoting? It's safe in the sense that the script will inherit the right addresses, however quirky, since smail2 uses execvp() to start the deliverer. (If it used execlp() and made the shell parse its own arguments, there would be trouble.) But it certainly is responsibility of the routing or delivering shell script to keep things "honest" afterwards, by enclosing variable names in quotes etc. to protect spaces. I have done this with Deliver (the perfect companion package to smail2) and it works OK. -- You are sunlight and I, moon | Joined by the gods of fortune | Midnight and high noon | Sharing the sky | Tom Neff We have been blessed, you and I | tneff@bfmny0.bfm.com