$MAIL environment gets set to /var/spool/mail instead of /var/mail when logging in via SSH.
Configure will pick it up from the build environment if the location is not found in the headers, so you can do something like: MAIL=/var/mail/`whoami` ./configure && make I'll have a look at configure and see if it can be made a bit smarter.
Created attachment 983 [details] Define $MAIL for HP-UX which is ends up in #define MAIL_DIRECTORY
Created attachment 984 [details] configure.gz: rebuilt configure from 4.2p1 Rebuilt configure for 4.2p1 with patch. If you don't have autoconf, then download, ungzip and replace configure.
Fixed in both -HEAD and the 4.2 branch. Thanks for the report.
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.