changeset 9645:daf5fb7333c3

(sendmail-synch-aliases): Check MAILRC envvar.
author Richard M. Stallman <rms@gnu.org>
date Fri, 21 Oct 1994 21:31:47 +0000
parents 2c7688eb344e
children 0e48552225f1
files lisp/mail/sendmail.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/sendmail.el	Fri Oct 21 21:30:38 1994 +0000
+++ b/lisp/mail/sendmail.el	Fri Oct 21 21:31:47 1994 +0000
@@ -179,7 +179,7 @@
   "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))))