--- wmbiff.c.orig	Thu Nov 18 06:06:26 1999
+++ wmbiff.c	Tue Dec 28 16:21:04 1999
@@ -79,13 +79,18 @@
 {
   int	i,j;
   char	config_file[512];
-
+  char * mbx;
+  int start = 0;
   // Some defaults, if config file unavailable
-  strcpy(mbox[0].label,"Spool");
-  strcpy(mbox[0].path, getenv("MAIL"));
-  mbox[0].notify[0]=0;
-  mbox[0].action[0]=0;
-  for(i=1; i<5; i++) {
+  mbx = getenv("MAIL");
+  if (mbx) {
+    strcpy(mbox[0].label,"Spool");
+    strcpy(mbox[0].path, mbx);
+    mbox[0].notify[0]=0;
+    mbox[0].action[0]=0;
+    start = 1;
+  }
+  for(i=start; i<5; i++) {
     mbox[i].label[0]=0;
     mbox[i].path[0]=0;
     mbox[i].notify[0]=0;
