Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!ukc!icdoc!sot-ecs!tjc From: tjc@ecs.soton.ac.uk (Tim Chown) Newsgroups: comp.mail.elm Subject: expanding reply address in 2.3 Message-ID: <2856@ecs.soton.ac.uk> Date: 5 Jun 90 15:09:51 GMT Organization: University of Southampton, UK Lines: 39 I posted recently asking why when generating a reply address elm 2.3 expanded a local to: recipient to recipient@fullhostname, when elm 2.2 didn't do this and direct mail (via 'm') to a local user didn't get expanded either. I got no reply on this group (though people mailed me to say they had the same "problem"). The relevant code is in returnadd.c, at around line 330: /* * 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 } I'm confused as to why a bare name can't be left, and if it can't, then why isn't the bare name expanded when mailing using the 'm' option for "direct" mail. Is the kludge needed ? Anyway, I've commented out the whole #ifdef .. #endif in the above code and I seem to have the 2.2 functionality again. Will I get horrible side-effects ? Cheers, Tim Chown T.Chown@ecs.soton.ac.uk