diff options
| author | Lars Magne Ingebrigtsen | 2010-09-05 23:27:15 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-05 23:27:15 +0000 |
| commit | b1a069e6885b7fb600364fd0ebc9cda3b851bbc7 (patch) | |
| tree | 18604f5522ee31481a3a0ec479f0def59fef32bf | |
| parent | 0c6dfaf849773197aa8299e2b576f79317d747d1 (diff) | |
| download | emacs-b1a069e6885b7fb600364fd0ebc9cda3b851bbc7.tar.gz emacs-b1a069e6885b7fb600364fd0ebc9cda3b851bbc7.zip | |
nnimap.el (nnimap-open-connection): Look for the "imaps" entry in the .authinfo if we're using ssl connection.
| -rw-r--r-- | lisp/gnus/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index cc489021f64..979734107aa 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * nnimap.el (nnimap-open-connection): Look for the "imaps" entry in the | ||
| 4 | .authinfo if we're using ssl connection. | ||
| 5 | |||
| 3 | * nnvirtual.el (nnvirtual-create-mapping): Use the active info we | 6 | * nnvirtual.el (nnvirtual-create-mapping): Use the active info we |
| 4 | already have if we're in a main Gnus `g' run. | 7 | already have if we're in a main Gnus `g' run. |
| 5 | 8 | ||
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 73242fbf325..3d415e71a2a 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -832,9 +832,13 @@ If EXAMINE is non-nil the group is selected read-only." | |||
| 832 | (let* ((list (progn (gnus-message 7 "Parsing authinfo file `%s'." | 832 | (let* ((list (progn (gnus-message 7 "Parsing authinfo file `%s'." |
| 833 | nnimap-authinfo-file) | 833 | nnimap-authinfo-file) |
| 834 | (netrc-parse nnimap-authinfo-file))) | 834 | (netrc-parse nnimap-authinfo-file))) |
| 835 | (port (if nnimap-server-port | 835 | (port (cond |
| 836 | (int-to-string nnimap-server-port) | 836 | (nnimap-server-port |
| 837 | "imap")) | 837 | (int-to-string nnimap-server-port)) |
| 838 | ((eq nnimap-stream 'ssl) | ||
| 839 | "imaps") | ||
| 840 | (t | ||
| 841 | "imap"))) | ||
| 838 | (auth-info | 842 | (auth-info |
| 839 | (auth-source-user-or-password '("login" "password") server port)) | 843 | (auth-source-user-or-password '("login" "password") server port)) |
| 840 | (auth-user (nth 0 auth-info)) | 844 | (auth-user (nth 0 auth-info)) |