diff options
| author | Katsumi Yamaoka | 2013-04-26 10:22:07 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-04-26 10:22:07 +0000 |
| commit | 9b7382d618a088e71c0a4b4cc2eebb5a17e3bf6f (patch) | |
| tree | c1c5fd106ac1c19376572b097c65e94b15fc4f11 | |
| parent | 967f2fbb34913c250fc10160953338037b18ac7b (diff) | |
| download | emacs-9b7382d618a088e71c0a4b4cc2eebb5a17e3bf6f.tar.gz emacs-9b7382d618a088e71c0a4b4cc2eebb5a17e3bf6f.zip | |
lisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Don't set the MAILHOST environment variable permanently (Bug#14271)
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mail-source.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1384df85ca3..e10dd1e94c7 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-04-26 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * mail-source.el (mail-source-fetch-pop, mail-source-check-pop): | ||
| 4 | Don't set the MAILHOST environment variable permanently (Bug#14271). | ||
| 5 | |||
| 1 | 2013-04-26 Glenn Morris <rgm@gnu.org> | 6 | 2013-04-26 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * message.el (message-bury): Revert 2013-03-18 change. (Bug#14117) | 8 | * message.el (message-bury): Revert 2013-03-18 change. (Bug#14117) |
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index 9cc2e6ac09c..ff432fc39d8 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -809,6 +809,8 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) | |||
| 809 | prescript-delay) | 809 | prescript-delay) |
| 810 | (let ((from (format "%s:%s:%s" server user port)) | 810 | (let ((from (format "%s:%s:%s" server user port)) |
| 811 | (mail-source-string (format "pop:%s@%s" user server)) | 811 | (mail-source-string (format "pop:%s@%s" user server)) |
| 812 | (process-environment (append (list (concat "MAILHOST=" server)) | ||
| 813 | process-environment)) | ||
| 812 | result) | 814 | result) |
| 813 | (when (eq authentication 'password) | 815 | (when (eq authentication 'password) |
| 814 | (setq password | 816 | (setq password |
| @@ -816,8 +818,6 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) | |||
| 816 | (cdr (assoc from mail-source-password-cache)) | 818 | (cdr (assoc from mail-source-password-cache)) |
| 817 | (read-passwd | 819 | (read-passwd |
| 818 | (format "Password for %s at %s: " user server))))) | 820 | (format "Password for %s at %s: " user server))))) |
| 819 | (when server | ||
| 820 | (setenv "MAILHOST" server)) | ||
| 821 | (setq result | 821 | (setq result |
| 822 | (cond | 822 | (cond |
| 823 | (program | 823 | (program |
| @@ -877,6 +877,8 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) | |||
| 877 | (mail-source-bind (pop source) | 877 | (mail-source-bind (pop source) |
| 878 | (let ((from (format "%s:%s:%s" server user port)) | 878 | (let ((from (format "%s:%s:%s" server user port)) |
| 879 | (mail-source-string (format "pop:%s@%s" user server)) | 879 | (mail-source-string (format "pop:%s@%s" user server)) |
| 880 | (process-environment (append (list (concat "MAILHOST=" server)) | ||
| 881 | process-environment)) | ||
| 880 | result) | 882 | result) |
| 881 | (when (eq authentication 'password) | 883 | (when (eq authentication 'password) |
| 882 | (setq password | 884 | (setq password |
| @@ -886,8 +888,6 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) | |||
| 886 | (format "Password for %s at %s: " user server)))) | 888 | (format "Password for %s at %s: " user server)))) |
| 887 | (unless (assoc from mail-source-password-cache) | 889 | (unless (assoc from mail-source-password-cache) |
| 888 | (push (cons from password) mail-source-password-cache))) | 890 | (push (cons from password) mail-source-password-cache))) |
| 889 | (when server | ||
| 890 | (setenv "MAILHOST" server)) | ||
| 891 | (setq result | 891 | (setq result |
| 892 | (cond | 892 | (cond |
| 893 | ;; No easy way to check whether mail is waiting for these. | 893 | ;; No easy way to check whether mail is waiting for these. |