Xref: utzoo gnu.emacs.help:1041 comp.emacs:9979 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!AI.MIT.EDU!yamada-sun!eric From: yamada-sun!eric@AI.MIT.EDU (Eric Hanchrow) Newsgroups: gnu.emacs.help,comp.emacs Subject: RMAIL does something I don't understand... Message-ID: <9102020215.AA26265@> Date: 2 Feb 91 02:15:15 GMT Sender: daemon@tut.cis.ohio-state.edu Followup-To: gnu.emacs.help Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 21 I've noticed that rmail determines which mailbox to read by looking at the LOGNAME environment variable. It prefers LOGNAME over USER, which means if I log in (for example) as root, and then `su' as bob, and try to read mail, I get an error to the effect that `bob' can't read `root's mail. Here's the code where it figures out who you are for the sake of reading mail: (list "~/mbox" (concat rmail-spool-directory (or (getenv "LOGNAME") (getenv "USER") (user-login-name)))) Were I running things, I would check in the exact opposite order. My question is: does anybody know the reasoning behind this code? ------------------------------------------------------------------------ |Eric Hanchrow sun.com!nosun!yamada-sun!eric | |Phase III Logic, Inc. cse.ogi.edu!yamada-sun!eric | |1600 N.W. 167th Place Beaverton, OR 97006-4800 USA | |Voice: (503)-645-0313 Fax: (503)-645-0207 as of 4-Oct-89| --------------Crackling-noises-OK--do-not-correct!----------------------