[10245] in Athena Bugs
Mailers can occasionally generate silly return addresses.
daemon@ATHENA.MIT.EDU (Jim Haynes)
Tue Feb 2 20:29:03 1993
From: haynes@cats.UCSC.EDU (Jim Haynes)
Date: Tue, 2 Feb 93 17:28:50 -0800
To: bugs@Athena.MIT.EDU
If the user is logged in but is not in the passwd file - I guess that
happens if the user logs in twice and logs out of the first one first -
then mailers can't find the user's name and will substitute a wired-in
one. In the case of MH this is "intruder"; we discovered this at UCSC
when someone picked "intruder" as her user name and was surprised at
getting mail from time to time as people replied to mail having
"intruder" in the From: line. jik's POP-ified Berkeley mail has a
similar action, tho I don't remember what user name it chooses.
The fix is to try a hes_getpwuid if the getpwuid fails. If they
both fail - well we know that can never happen :-)