(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
(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))
(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)))
))))