diff options
| author | ShengHuo ZHU | 2003-02-28 13:36:11 +0000 |
|---|---|---|
| committer | ShengHuo ZHU | 2003-02-28 13:36:11 +0000 |
| commit | f9936da658b4af808ad47466df5036cbd7d8c6af (patch) | |
| tree | b36d61decbb5b86499f33ce0c111c25bc4ae1484 | |
| parent | 1be5cb1b7988bf4568b3f7cc33a23398e0593594 (diff) | |
| download | emacs-f9936da658b4af808ad47466df5036cbd7d8c6af.tar.gz emacs-f9936da658b4af808ad47466df5036cbd7d8c6af.zip | |
* nnfolder.el (nnfolder-request-accept-article): Don't use
mail-header-unfold-field.
* imap.el (imap-ssl-open): Don't depend on ssl.el.
* nntp.el (nntp-open-ssl-stream): Don't depend on ssl.el.
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/imap.el | 31 | ||||
| -rw-r--r-- | lisp/gnus/nnfolder.el | 4 | ||||
| -rw-r--r-- | lisp/gnus/nntp.el | 25 |
4 files changed, 47 insertions, 21 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1783c51dc27..06829ca4786 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2003-02-28 ShengHuo ZHU <zsh@cs.rochester.edu> | ||
| 2 | |||
| 3 | * nnfolder.el (nnfolder-request-accept-article): Don't use | ||
| 4 | mail-header-unfold-field. | ||
| 5 | |||
| 6 | * imap.el (imap-ssl-open): Don't depend on ssl.el. | ||
| 7 | * nntp.el (nntp-open-ssl-stream): Don't depend on ssl.el. | ||
| 8 | |||
| 1 | 2003-02-18 Juanma Barranquero <lektu@terra.es> | 9 | 2003-02-18 Juanma Barranquero <lektu@terra.es> |
| 2 | 10 | ||
| 3 | * ietf-drums.el (ietf-drums-remove-whitespace): Fix character | 11 | * ietf-drums.el (ietf-drums-remove-whitespace): Fix character |
diff --git a/lisp/gnus/imap.el b/lisp/gnus/imap.el index ad26bcada84..b6cb9a7fe0b 100644 --- a/lisp/gnus/imap.el +++ b/lisp/gnus/imap.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; imap.el --- imap library | 1 | ;;; imap.el --- imap library |
| 2 | ;; Copyright (C) 1998, 1999, 2000, 2002 | 2 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 |
| 3 | ;; Free Software Foundation, Inc. | 3 | ;; Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Simon Josefsson <jas@pdc.kth.se> | 5 | ;; Author: Simon Josefsson <jas@pdc.kth.se> |
| @@ -138,7 +138,6 @@ | |||
| 138 | 138 | ||
| 139 | (eval-when-compile (require 'cl)) | 139 | (eval-when-compile (require 'cl)) |
| 140 | (eval-and-compile | 140 | (eval-and-compile |
| 141 | (autoload 'open-ssl-stream "ssl") | ||
| 142 | (autoload 'base64-decode-string "base64") | 141 | (autoload 'base64-decode-string "base64") |
| 143 | (autoload 'base64-encode-string "base64") | 142 | (autoload 'base64-encode-string "base64") |
| 144 | (autoload 'starttls-open-stream "starttls") | 143 | (autoload 'starttls-open-stream "starttls") |
| @@ -188,10 +187,10 @@ the list is tried until a successful connection is made." | |||
| 188 | :group 'imap | 187 | :group 'imap |
| 189 | :type '(repeat string)) | 188 | :type '(repeat string)) |
| 190 | 189 | ||
| 191 | (defcustom imap-ssl-program '("openssl s_client -ssl3 -connect %s:%p" | 190 | (defcustom imap-ssl-program '("openssl s_client -quiet -ssl3 -connect %s:%p" |
| 192 | "openssl s_client -ssl2 -connect %s:%p" | 191 | "openssl s_client -quiet -ssl2 -connect %s:%p" |
| 193 | "s_client -ssl3 -connect %s:%p" | 192 | "s_client -quiet -ssl3 -connect %s:%p" |
| 194 | "s_client -ssl2 -connect %s:%p") | 193 | "s_client -quiet -ssl2 -connect %s:%p") |
| 195 | "A string, or list of strings, containing commands for SSL connections. | 194 | "A string, or list of strings, containing commands for SSL connections. |
| 196 | Within a string, %s is replaced with the server address and %p with | 195 | Within a string, %s is replaced with the server address and %p with |
| 197 | port number on server. The program should accept IMAP commands on | 196 | port number on server. The program should accept IMAP commands on |
| @@ -569,18 +568,22 @@ If ARGS, PROMPT is used as an argument to `format'." | |||
| 569 | (let* ((port (or port imap-default-ssl-port)) | 568 | (let* ((port (or port imap-default-ssl-port)) |
| 570 | (coding-system-for-read imap-coding-system-for-read) | 569 | (coding-system-for-read imap-coding-system-for-read) |
| 571 | (coding-system-for-write imap-coding-system-for-write) | 570 | (coding-system-for-write imap-coding-system-for-write) |
| 572 | (ssl-program-name shell-file-name) | 571 | (process-connection-type nil) |
| 573 | (ssl-program-arguments | ||
| 574 | (list shell-command-switch | ||
| 575 | (format-spec cmd (format-spec-make | ||
| 576 | ?s server | ||
| 577 | ?p (number-to-string port))))) | ||
| 578 | process) | 572 | process) |
| 579 | (when (setq process (ignore-errors (open-ssl-stream | 573 | (when (progn |
| 580 | name buffer server port))) | 574 | (setq process (start-process |
| 575 | name buffer shell-file-name | ||
| 576 | shell-command-switch | ||
| 577 | (format-spec cmd | ||
| 578 | (format-spec-make | ||
| 579 | ?s server | ||
| 580 | ?p (number-to-string port))))) | ||
| 581 | (process-kill-without-query process) | ||
| 582 | process) | ||
| 581 | (with-current-buffer buffer | 583 | (with-current-buffer buffer |
| 582 | (goto-char (point-min)) | 584 | (goto-char (point-min)) |
| 583 | (while (and (memq (process-status process) '(open run)) | 585 | (while (and (memq (process-status process) '(open run)) |
| 586 | (set-buffer buffer) ;; XXX "blue moon" nntp.el bug | ||
| 584 | (goto-char (point-max)) | 587 | (goto-char (point-max)) |
| 585 | (forward-line -1) | 588 | (forward-line -1) |
| 586 | (not (imap-parse-greeting))) | 589 | (not (imap-parse-greeting))) |
diff --git a/lisp/gnus/nnfolder.el b/lisp/gnus/nnfolder.el index f24e5482cb2..b054d817449 100644 --- a/lisp/gnus/nnfolder.el +++ b/lisp/gnus/nnfolder.el | |||
| @@ -411,7 +411,9 @@ If nil, `nnfolder-file-coding-system' is used.") | |||
| 411 | result art-group) | 411 | result art-group) |
| 412 | (goto-char (point-min)) | 412 | (goto-char (point-min)) |
| 413 | (when (looking-at "X-From-Line: ") | 413 | (when (looking-at "X-From-Line: ") |
| 414 | (replace-match "From ")) | 414 | (replace-match "From ") |
| 415 | (while (progn (forward-line) (looking-at "[ \t]")) | ||
| 416 | (delete-char -1))) | ||
| 415 | (and | 417 | (and |
| 416 | (nnfolder-request-list) | 418 | (nnfolder-request-list) |
| 417 | (save-excursion | 419 | (save-excursion |
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index 0b939d1f40b..de2299c77f7 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; nntp.el --- nntp access for Gnus | 1 | ;;; nntp.el --- nntp access for Gnus |
| 2 | |||
| 2 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1992, 1993, 1994, 1995, 1996, | 3 | ;; Copyright (C) 1987, 1988, 1989, 1990, 1992, 1993, 1994, 1995, 1996, |
| 3 | ;; 1997, 1998, 2000, 2001, 2002 | 4 | ;; 1997, 1998, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| 4 | ;; Free Software Foundation, Inc. | ||
| 5 | 5 | ||
| 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 7 | ;; Keywords: news | 7 | ;; Keywords: news |
| @@ -223,9 +223,15 @@ noticing asynchronous data.") | |||
| 223 | (defvar nntp-async-timer nil) | 223 | (defvar nntp-async-timer nil) |
| 224 | (defvar nntp-async-process-list nil) | 224 | (defvar nntp-async-process-list nil) |
| 225 | 225 | ||
| 226 | (defvar nntp-ssl-program | ||
| 227 | "openssl s_client -quiet -ssl3 -connect %s:%p" | ||
| 228 | "A string containing commands for SSL connections. | ||
| 229 | Within a string, %s is replaced with the server address and %p with | ||
| 230 | port number on server. The program should accept IMAP commands on | ||
| 231 | stdin and return responses to stdout.") | ||
| 232 | |||
| 226 | (eval-and-compile | 233 | (eval-and-compile |
| 227 | (autoload 'mail-source-read-passwd "mail-source") | 234 | (autoload 'mail-source-read-passwd "mail-source")) |
| 228 | (autoload 'open-ssl-stream "ssl")) | ||
| 229 | 235 | ||
| 230 | 236 | ||
| 231 | 237 | ||
| @@ -921,8 +927,15 @@ password contained in '~/.nntp-authinfo'." | |||
| 921 | (open-network-stream "nntpd" buffer nntp-address nntp-port-number)) | 927 | (open-network-stream "nntpd" buffer nntp-address nntp-port-number)) |
| 922 | 928 | ||
| 923 | (defun nntp-open-ssl-stream (buffer) | 929 | (defun nntp-open-ssl-stream (buffer) |
| 924 | (let* ((ssl-program-arguments '("-connect" (concat host ":" service))) | 930 | (let* ((process-connection-type nil) |
| 925 | (proc (open-ssl-stream "nntpd" buffer nntp-address nntp-port-number))) | 931 | (proc (start-process "nntpd" buffer |
| 932 | shell-file-name | ||
| 933 | shell-command-switch | ||
| 934 | (format-spec nntp-ssl-program | ||
| 935 | (format-spec-make | ||
| 936 | ?s nntp-address | ||
| 937 | ?p nntp-port-number))))) | ||
| 938 | (process-kill-without-query proc) | ||
| 926 | (save-excursion | 939 | (save-excursion |
| 927 | (set-buffer buffer) | 940 | (set-buffer buffer) |
| 928 | (nntp-wait-for-string "^\r*20[01]") | 941 | (nntp-wait-for-string "^\r*20[01]") |