Hi,
Thanks all for your help. I can't just set MAIL in my .bashrc, then
it's too late. Anyway, I found the solution was to change MAIL_DIR,
QMAIL_DIR, or MAIL_FILE in my /etc/login.defs. Then it is necessary to
go to /etc/pam.d/login and change the mail directory there on the line
about pam_mail.so. Anyway, the pam_mail thing is what prints out the
"No mail." or "You have mail" when you log in. So actually I commented
that out and am now looking for other solutions becuase I realized this
whole thing isn't going to work because I think it just checks for a
nonzero file, while I need something that actually looks at e-mail
headers in the file, like X-Status or something, that will tell if I've
read it or not.
So anyway, with that commented out, now I am looking at solutions
like biff, ixbiff, from, and so forth. Yes, "from" is a command I heard
about from Evan. It does almost exactly what I want, but it will tell
me total message count, not just NEW message count. Basically, I'm
thinking now about writing my own little program that will parse through
the e-mail headers in my mailbox(es) and look at the "Status" or
whatever it is that says it has been read.
Phillip
P.S. Sorry for rambling on here so much :)
On Fri, Feb 14, 2003 at 03:26:12PM -0700, Phillip Hellewell wrote:
>
> Since all my mail is going to ~/mail/IN now instead of
> /var/mail/myname, it always says "No mail." when I log in. How can I
> fix this?
>
> I know mutt has a command that does almost what I want
> (mutt -Z), but I don't want mutt to start up either, I just want it to
> say whether I have mail or not.
>
> Thanks,
> Phillip
>
>
> ____________________
> BYU Unix Users Group
> http://uug.byu.edu/
> ___________________________________________________________________
> List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list