summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2008-02-20 06:00:13 +0000
committerGlenn Morris <rgm@gnu.org>2008-02-20 06:00:13 +0000
commit6052846bdd817ea512afd3eb52bb2d6aa4689d6f (patch)
treef1de4468fe3c69c7bf7e1e38dc29a307c88a419d /lisp/mail
parent719cb5080d3fb15574b0b741613d14b93322d26a (diff)
downloademacs-6052846bdd817ea512afd3eb52bb2d6aa4689d6f.tar.gz
(rmail-autodetect): Add .exe extension to movemail on Windows.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmail.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 5f8815bc787..e36b9885841 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -219,7 +219,15 @@ Otherwise, look for `movemail' in the directories in
(dolist (dir (append rmail-movemail-search-path exec-path
(list exec-directory)))
(when (and dir (file-accessible-directory-p dir))
- (let ((progname (expand-file-name "movemail" dir)))
+ ;; Previously, this didn't have to work on Windows, because
+ ;; rmail-insert-inbox-text before r1.439 fell back to using
+ ;; (expand-file-name "movemail" exec-directory) and just
+ ;; assuming it would work.
+ ;; http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-02/msg00087.html
+ (let ((progname (expand-file-name
+ (concat "movemail"
+ (if (memq system-type '(ms-dos windows-nt))
+ ".exe")) dir)))
(when (and (not (file-directory-p progname))
(file-executable-p progname))
(let ((x (rmail-probe progname)))