aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-05 18:33:10 +0000
committerRichard M. Stallman1994-07-05 18:33:10 +0000
commit7a41a2e2b86d612bc8e9e9be716330c900e73105 (patch)
tree85c4a2638782bbe297f9dfdf38d6c8937374383b
parente4fbad4b57b0a1a6c0a674a6eca236bc768615de (diff)
downloademacs-7a41a2e2b86d612bc8e9e9be716330c900e73105.tar.gz
emacs-7a41a2e2b86d612bc8e9e9be716330c900e73105.zip
(rmail-spool-directory): Use /var/mail if it exists.
-rw-r--r--lisp/paths.el15
1 files changed, 4 insertions, 11 deletions
diff --git a/lisp/paths.el b/lisp/paths.el
index 268bdc48ab0..9b63d59063d 100644
--- a/lisp/paths.el
+++ b/lisp/paths.el
@@ -91,20 +91,13 @@ Will use `gnus-startup-file'-SERVER instead if exists.")
91(defconst rmail-spool-directory 91(defconst rmail-spool-directory
92 (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration) 92 (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
93 "/usr/spool/mail/") 93 "/usr/spool/mail/")
94 ;; SVR4 is said to use /var/mail, and make /usr/mail a link to that; 94 ;; SVR4 and recent BSD are said to use this.
95 ;; but since I'm not sure it's generally true, calling file-exists-p 95 ;; Rather than trying to know precisely which systems use it,
96 ;; prevents lossage if it isn't true. -- rms. 96 ;; let's assume this dir is never used for anything else.
97 ((and (string-match "^[^-]+-[^-]+-sysv4" system-configuration) 97 ((file-exists-p "/var/mail")
98 (file-exists-p "/var/mail"))
99 "/var/mail/")
100 ;; BSD386 is said to use /var/mail.
101 ((and (string-match "^[^-]+-[^-]+-bsd386" system-configuration)
102 (file-exists-p "/var/mail"))
103 "/var/mail/") 98 "/var/mail/")
104 ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix)) 99 ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
105 "/usr/mail/") 100 "/usr/mail/")
106 ((eq system-type 'netbsd)
107 "/var/mail/")
108 (t "/usr/spool/mail/")) 101 (t "/usr/spool/mail/"))
109 "Name of directory used by system mailer for delivering new mail. 102 "Name of directory used by system mailer for delivering new mail.
110Its name should end with a slash.") 103Its name should end with a slash.")