aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail/sendmail.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mail/sendmail.el')
-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 52a9abefe6..4aeed5e8b9 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))))