Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!att!cbfsb!cbnewsc!cbnews!cbnewsm!cbnewsl!cbnewsk!cbnewsj!ker From: ker@cbnewsj.att.com (kenneth.roser) Newsgroups: comp.mail.elm Subject: Re: Use of USE_EMBEDDED_ADDRESSES Message-ID: <1990Nov20.222827.26746@cbnewsj.att.com> Date: 20 Nov 90 22:28:27 GMT References: <1990Nov20.140205.9824@cbnewsj.att.com> Distribution: usa Organization: AT&T Bell Laboratories Lines: 38 In article <1990Nov20.140205.9824@cbnewsj.att.com>, ker@cbnewsj.att.com (kenneth.roser) writes: > > I've recently recompiled ELM to not USE_EMBEDDED_ADDRESSES for > replying to mail. I needed to this because the "From:" line > often contained a persons name (J.K.Doe) that was not replyable to. > This newly configured version now uses the address from the "From" > line for replys. > What I didn't mention in the original posting is that the name on the "From:" line was being treated as a local login name (because there were no @ % or ! characters in it) and the domain was tacked on to it. Everything would have been okay if the name was untouched because our mailer knows how to expand names in this form to valid addresses. As I see it I have two possible solutions: 1.) Comment out the code that tacks on the domain name. This might affect alias processing as the comment above it implies. 2.) In returnadd.c modify the code at line 337-339 (ELM 2.3 PL8) as follows: ORIGINAL: if (chloc(buffer, '@') < 0 && chloc(buffer, '%') < 0 && chloc(buffer, '!') < 0) { MODIFIED: if (chloc(buffer, '@') < 0 && chloc(buffer, '%') < 0 && chloc(buffer, '.') < 0 && chloc(buffer, '!') < 0) { This (untested) code would treat names like j.k.doe as non-local login names, thus preventing the addition of the domain. Any comments?