comparison lisp/mail/rmail.el @ 91974:83fb82614615

(rmail-autodetect): Add .exe extension to movemail on Windows.
author Glenn Morris <rgm@gnu.org>
date Wed, 20 Feb 2008 05:59:41 +0000
parents f0b22bbb77fb
children 1e3a407766b9
comparison
equal deleted inserted replaced
91973:9592711aac8d 91974:83fb82614615
217 (rmail-probe rmail-movemail-program) 217 (rmail-probe rmail-movemail-program)
218 (catch 'scan 218 (catch 'scan
219 (dolist (dir (append rmail-movemail-search-path exec-path 219 (dolist (dir (append rmail-movemail-search-path exec-path
220 (list exec-directory))) 220 (list exec-directory)))
221 (when (and dir (file-accessible-directory-p dir)) 221 (when (and dir (file-accessible-directory-p dir))
222 (let ((progname (expand-file-name "movemail" dir))) 222 ;; Previously, this didn't have to work on Windows, because
223 ;; rmail-insert-inbox-text before r1.439 fell back to using
224 ;; (expand-file-name "movemail" exec-directory) and just
225 ;; assuming it would work.
226 ;; http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-02/msg00087.html
227 (let ((progname (expand-file-name
228 (concat "movemail"
229 (if (memq system-type '(ms-dos windows-nt))
230 ".exe")) dir)))
223 (when (and (not (file-directory-p progname)) 231 (when (and (not (file-directory-p progname))
224 (file-executable-p progname)) 232 (file-executable-p progname))
225 (let ((x (rmail-probe progname))) 233 (let ((x (rmail-probe progname)))
226 (when x 234 (when x
227 (setq rmail-movemail-program progname) 235 (setq rmail-movemail-program progname)