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: Why is domain added to local address on reply? Message-ID: <1990Nov20.221507.26378@cbnewsj.att.com> Date: 20 Nov 90 22:15:07 GMT References: <4963@rex.cs.tulane.edu> <5269@ecs.soton.ac.uk> Distribution: usa Organization: AT&T Bell Laboratories Lines: 39 In article <5269@ecs.soton.ac.uk>, tjc@ecs.soton.ac.uk (Tim Chown) writes: > In boerio@orchestra.ecn.purdue.edu (Jeff Boerio) writes: > > >In <4963@rex.cs.tulane.edu> mb@rex.cs.tulane.edu (Mark Benard) writes: > > >>Can anyone tell me how to turn this off? Thanks. > > >I suppose you could edit the source to prevent it from doing this. I > >haven't taken the time at this point to do it. > > The "fix" is to comment out the whole #ifdef INTERNET ... #endif around > line 342-ish in src/returnadd.c, but like Jeff says it *may* have > side-effects (though we haven't experienced any here). > > Tim Is this a problem if one is using aliases as the comment above it implies: /* * KLUDGE ALERT - DANGER WILL ROBINSON * We can't just leave a bare login name as the return address, * or it will be alias-expanded. * So we qualify it with the current host name (and, maybe, domain). * Sigh. */ if (chloc(buffer, '@') < 0 && chloc(buffer, '%') < 0 && chloc(buffer, '!') < 0) { #ifdef INTERNET sprintf(buffer + strlen(buffer), "@%s", hostfullname); #else strcpy(buf, buffer); sprintf(buffer, "%s!%s", hostname, buf); #endif } Does this mean that if the local login name is the same as an alias it will be expanded by the alias code?