summaryrefslogtreecommitdiff
path: root/lisp/gnus/mail-source.el
diff options
context:
space:
mode:
authorKatsumi Yamaoka <yamaoka@jpl.org>2013-04-26 10:36:36 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2013-04-26 10:36:36 +0000
commit03fdf5caa8e0aca20dc5b84d69067cf4bc6b6a07 (patch)
treedc9d138ff588c1a9793e9da1d334723e3eb3aa7d /lisp/gnus/mail-source.el
parent9b7382d618a088e71c0a4b4cc2eebb5a17e3bf6f (diff)
downloademacs-03fdf5caa8e0aca20dc5b84d69067cf4bc6b6a07.tar.gz
lisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Fix last change
Diffstat (limited to 'lisp/gnus/mail-source.el')
-rw-r--r--lisp/gnus/mail-source.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el
index ff432fc39d8..ce1cb6c89c8 100644
--- a/lisp/gnus/mail-source.el
+++ b/lisp/gnus/mail-source.el
@@ -809,8 +809,10 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile)
prescript-delay)
(let ((from (format "%s:%s:%s" server user port))
(mail-source-string (format "pop:%s@%s" user server))
- (process-environment (append (list (concat "MAILHOST=" server))
- process-environment))
+ (process-environment (if server
+ (append (list (concat "MAILHOST=" server))
+ process-environment)
+ process-environment))
result)
(when (eq authentication 'password)
(setq password
@@ -877,8 +879,10 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile)
(mail-source-bind (pop source)
(let ((from (format "%s:%s:%s" server user port))
(mail-source-string (format "pop:%s@%s" user server))
- (process-environment (append (list (concat "MAILHOST=" server))
- process-environment))
+ (process-environment (if server
+ (append (list (concat "MAILHOST=" server))
+ process-environment)
+ process-environment))
result)
(when (eq authentication 'password)
(setq password