summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-10-21 21:31:47 +0000
committerRichard M. Stallman <rms@gnu.org>1994-10-21 21:31:47 +0000
commit7652332d571603d51c0251d25b7bff8d98f9b93a (patch)
tree5e5d23bd6fe0b445b4855e64236818a7f7ca1d97 /lisp
parent7c072272356cacb12b94b26d3514aba70bd1907c (diff)
downloademacs-7652332d571603d51c0251d25b7bff8d98f9b93a.tar.gz
(sendmail-synch-aliases): Check MAILRC envvar.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/sendmail.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 52a9abefe65..4aeed5e8b9e 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -179,7 +179,7 @@ actually occur.")
"Normal hook run before sending mail, in Mail mode.")
(defun sendmail-synch-aliases ()
- (let ((modtime (nth 5 (file-attributes "~/.mailrc"))))
+ (let ((modtime (nth 5 (file-attributes (or (getenv "MAILRC") "~/.mailrc")))))
(or (equal mail-alias-modtime modtime)
(setq mail-alias-modtime modtime
mail-aliases t))))