aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKarl Heuer1994-02-23 00:29:43 +0000
committerKarl Heuer1994-02-23 00:29:43 +0000
commit5170c9cbebb94c12aa4f61927736c6b3dfb50019 (patch)
tree637d35c12ccdff93ab051550fbe3359b705cdd11 /lisp
parent109ebdd473d797fc7d8ef4127cfc7cf9720fbbd1 (diff)
downloademacs-5170c9cbebb94c12aa4f61927736c6b3dfb50019.tar.gz
emacs-5170c9cbebb94c12aa4f61927736c6b3dfb50019.zip
(rmail-insert-inbox-text): Recognize the spool directory even if symlinks are
present.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/rmail.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 5ce007ef8f6..386d40e91de 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -751,7 +751,8 @@ argument causes us to read a file name and use that file as the inbox."
751(defun rmail-insert-inbox-text (files renamep) 751(defun rmail-insert-inbox-text (files renamep)
752 (let (file tofile delete-files movemail popmail) 752 (let (file tofile delete-files movemail popmail)
753 (while files 753 (while files
754 (setq file (expand-file-name (substitute-in-file-name (car files))) 754 (setq file (file-truename
755 (expand-file-name (substitute-in-file-name (car files))))
755 ;;>> un*x specific << 756 ;;>> un*x specific <<
756 ;; The "+" used to be "~", which is an extremely poor choice; 757 ;; The "+" used to be "~", which is an extremely poor choice;
757 ;; it might accidentally be deleted when space is low 758 ;; it might accidentally be deleted when space is low
@@ -760,7 +761,8 @@ argument causes us to read a file name and use that file as the inbox."
760 ;; If getting from mail spool directory, 761 ;; If getting from mail spool directory,
761 ;; use movemail to move rather than just renaming, 762 ;; use movemail to move rather than just renaming,
762 ;; so as to interlock with the mailer. 763 ;; so as to interlock with the mailer.
763 (setq movemail (equal (file-name-directory file) rmail-spool-directory) 764 (setq movemail (string= (file-name-directory file)
765 (file-truename rmail-spool-directory))
764 popmail (string-match "^po:" (file-name-nondirectory file))) 766 popmail (string-match "^po:" (file-name-nondirectory file)))
765 (if popmail (setq file (file-name-nondirectory file) 767 (if popmail (setq file (file-name-nondirectory file)
766 renamep t)) 768 renamep t))