From: keiichi Date: Wed, 2 Jun 1999 10:53:53 +0000 (+0000) Subject: (nnmail-move-inbox): Fix for getting local spool file. X-Git-Tag: nana-gnus-6_13_1~2 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=8fada53982b5cebf7b2a64692c8e268cd0986ad7;p=elisp%2Fgnus.git- (nnmail-move-inbox): Fix for getting local spool file. --- diff --git a/lisp/nnmail.el b/lisp/nnmail.el index 04478b0..6ae7287 100644 --- a/lisp/nnmail.el +++ b/lisp/nnmail.el @@ -696,7 +696,9 @@ If this variable is `t', do not use password cache.") (setq result 255)))) (let ((default-directory "/") (inbox-info (nnmail-parse-spool-file-name inbox))) - (setenv "MAILHOST" (nnmail-spool-mailhost inbox-info)) + (and popmail + (setenv "MAILHOST" + (nnmail-spool-mailhost inbox-info))) (setq result (apply 'call-process @@ -705,10 +707,12 @@ If this variable is `t', do not use password cache.") (expand-file-name nnmail-movemail-program exec-directory) nil errors nil - (concat "po:" (nnmail-spool-maildrop inbox-info)) + (concat (if popmail "po:" "") + (nnmail-spool-maildrop inbox-info)) tofile) - (when nnmail-internal-password - (list nnmail-internal-password))))))) + (and popmail + nnmail-internal-password + (list nnmail-internal-password))))))) (push inbox nnmail-moved-inboxes) (if (and (not (buffer-modified-p errors)) (zerop result)) @@ -740,7 +744,7 @@ If this variable is `t', do not use password cache.") (delete-region (point-min) (match-end 0))) (unless (yes-or-no-p (format "movemail: %s (%d return). Continue? " - (buffer-string))) + (buffer-string) result)) (error "%s" (buffer-string))) (setq tofile nil))) ))))