]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-spool-directory): Maybe use /var/mail.
authorRichard M. Stallman <rms@gnu.org>
Sun, 22 May 1994 20:36:53 +0000 (20:36 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 22 May 1994 20:36:53 +0000 (20:36 +0000)
lisp/paths.el

index f4748f969211811c794279c9603414d47c3f1695..3cf574352ba407f756fc6946fda4f405ceaf09d5 100644 (file)
@@ -90,6 +90,12 @@ Will use `gnus-startup-file'-SERVER instead if exists.")
 (defconst rmail-spool-directory
   (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
         "/usr/spool/mail/")
+       ;; SVR4 is said to use /var/mail, and make /usr/mail a link to that;
+       ;; but since I'm not sure it's generally true, calling file-exists-p
+       ;; prevents lossage if it isn't true. -- rms.
+       ((and (string-match "^[^-]+-[^-]+-sysv4" system-configuration)
+             (file-exists-p "/var/mail"))
+        "/var/mail/")
        ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
         "/usr/mail/")
        ((eq system-type 'netbsd)