2001-10-04 Simon Josefsson <jas@extundo.com>
authorSimon Josefsson <jas@extundo.com>
Thu, 4 Oct 2001 16:51:53 +0000 (16:51 +0000)
committerSimon Josefsson <jas@extundo.com>
Thu, 4 Oct 2001 16:51:53 +0000 (16:51 +0000)
* mail-source.el (mail-source-movemail-program): New variable.
(mail-source-movemail): Use it.  Suggested by Taylor Hutt
<thutt@thutt.vmware.com>.

lisp/ChangeLog
lisp/mail-source.el

index d336f20..9fff7bb 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-04  Simon Josefsson  <jas@extundo.com>
+
+       * mail-source.el (mail-source-movemail-program): New variable.
+       (mail-source-movemail): Use it.  Suggested by Taylor Hutt
+       <thutt@thutt.vmware.com>.
+
 2001-10-03  Simon Josefsson  <jas@extundo.com>
 
        * gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): New param.
index 3f1f220..af00b43 100644 (file)
@@ -264,6 +264,11 @@ If non-nil, this maildrop will be checked periodically for new mail."
   :group 'mail-source
   :type 'number)
 
+(defcustom mail-source-movemail-program nil
+  "If non-nil, name of program for fetching new mail."
+  :group 'mail-source
+  :type '(choice (const nil) string))
+
 ;;; Internal variables.
 
 (defvar mail-source-string ""
@@ -523,7 +528,8 @@ Pass INFO on to CALLBACK."
                       'call-process
                       (append
                        (list
-                        (expand-file-name "movemail" exec-directory)
+                        (or mail-source-movemail-program
+                            (expand-file-name "movemail" exec-directory))
                         nil errors nil from to)))))
              (when (file-exists-p to)
                (set-file-modes to mail-source-default-file-modes))