> But what I need is /home/{$USER}/Maildir/ in order for Mutt to
> work with Maildirs. The above /etc/login.conf parts don't do the
> trick and other occurrences of MAIL I can't find.
>
> So what gives? (IOW please help! :)
You can set MAIL via /etc/login.conf, all applications that use
either login(1) or setusercontext(3) should work.
Beware of ssh! The OpenSSH client, that is part of FreeBSD is
completey buggy here: It sets MAIL to /var/mail/$USER, this is
hardcoded. I have a dirty fix, maybe I'll clean it up and
send it as a PR or to Kris (Kris, are you still ssh maintainer?)
This whole stuff of initial user environment and friends has
to be cleaned up to be consistent for all login methods: login(1),
xdm, rsh, rlogin, ssh, telnet. I would volunteer(sic!) for a in detail
analysis of this issue if I get feedback on this. (i.e. looking for
inconsistencies, where to put on solutions (e.g. a pam module
that evals /etc/login.conf via setusercontext(3)).
To fiddle with user's .bash{rc,_profile}, .tcshrc, .whateverrc
is the wrong way. Some rc files are not evaluated for non login shells,
so you put it into .bashrc or whatever get executed for non login
shells; if you do this you parameters will be overwritten each time
you start a new shell (e.g. xterm).
The user should have a minimal reasonable environment (even without
shell rc files, if you want to go that far), that he/she may optionally
extend or adapt. /etc/login.conf, maybe in combination with pam, is
the right thing for doing this.
Bjoern
--
-----BEGIN GEEK CODE BLOCK-----
GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+
K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+
------END GEEK CODE BLOCK------
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message