mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-04 11:40:22 +00:00
(rmail-movemail-program): New variable.
(rmail-insert-inbox-text): Use it.
This commit is contained in:
parent
4c8888a0c8
commit
7456205363
@ -50,6 +50,9 @@
|
||||
; (expand-file-name "~/RMAIL")
|
||||
; "")
|
||||
|
||||
(defvar rmail-movemail-program nil
|
||||
"If non-nil, name of program for fetching new mail.")
|
||||
|
||||
;;;###autoload
|
||||
(defvar rmail-dont-reply-to-names nil "\
|
||||
*A regexp specifying names to prune of reply to messages.
|
||||
@ -856,8 +859,9 @@ argument causes us to read a file name and use that file as the inbox."
|
||||
(setq errors (generate-new-buffer " *rmail loss*"))
|
||||
(buffer-disable-undo errors)
|
||||
(call-process
|
||||
(expand-file-name "movemail" exec-directory)
|
||||
nil errors nil file tofile)
|
||||
(or rmail-movemail-program
|
||||
(expand-file-name "movemail" exec-directory))
|
||||
nil errors nil file tofile)
|
||||
(if (not (buffer-modified-p errors))
|
||||
;; No output => movemail won
|
||||
nil
|
||||
|
Loading…
Reference in New Issue
Block a user