On Wed, Oct 04, 2006 at 11:58:10AM -0400, Okan Demirmen wrote:
> On Wed 2006.10.04 at 17:40 +0200, Jan Stary wrote:
> > On Oct 02 22:06:34, Gustavo Rios wrote:
> > > I am using mutt with openbsd. I am getting annoyed by a message error
> > > i got just after i start it on command line:
> > > /var/mail/grios: No such file or directory (errno = 2)
> > 
> > Note that when a new user is created via adduser(8),
> > his mailbox (/var/mail/$USER) is _not_ created.
> > 
> > > The strangest thing about it, it is that it only happens with my
> > > openbsd installed version even having the following in ~/.muttrc
> > > set mbox_type=Maildir
> > > set folder="~/.mail/"
> > 
> > Mutt tries to open $MAIL (which is obviously /var/mail/grios), not
> > "folder". The reason "it only happens with openbsd installed version"
> > is probably that obsd didn't create /var/mail/$USER (which most other
> > system do, imho). The mailbox _type_ has nothing to do with that.
> 
> not most...just because one linux distro (that i know of) does, doesn't
> mean "most" in my book.
> 

Especially if you use Maildirs in the users home directory it does not
make sense to touch /var/mail/$USER. Instead just set $MAIL and probably
$MAILDIR to $HOME/Maildir/ and mutt will happily use this as your
incomming mail folder.

In the end if you are using a MTA that delivers mail to a place different
then /var/mail/$USER you need to change $MAIL as well.
-- 
:wq Claudio

Reply via email to