aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-03-01 23:41:53 +0000
committerMiles Bader2007-03-01 23:41:53 +0000
commit45cb30ee1effd292cb89a54e08a9bba9fb40d4c1 (patch)
treef826153590a609989e05264b517e420c2e769bce
parent848e4bca7660a5768ff63743cb5402ce7d57ad81 (diff)
downloademacs-45cb30ee1effd292cb89a54e08a9bba9fb40d4c1.tar.gz
emacs-45cb30ee1effd292cb89a54e08a9bba9fb40d4c1.zip
Merge from gnus--rel--5.10
Patches applied: * gnus--rel--5.10 (patch 203-205) - Merge from emacs--devo--0 - Update from CVS 2007-02-28 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/message.el (message-make-in-reply-to): Quote name containing non-ASCII characters. It will make the RFC2047 encoder cause an error if there are special characters. Reported by NAKAJI Hiroyuki <nakaji@kankyo-u.ac.jp>. 2007-02-27 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/nntp.el (nntp-never-echoes-commands) (nntp-open-connection-functions-never-echo-commands): New variables. (nntp-send-command): Use them. 2007-02-27 Katsumi Yamaoka <yamaoka@jpl.org> * man/gnus.texi (NNTP): Mention nntp-never-echoes-commands and nntp-open-connection-functions-never-echo-commands. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-658
-rw-r--r--lisp/gnus/ChangeLog13
-rw-r--r--lisp/gnus/message.el33
-rw-r--r--lisp/gnus/nntp.el27
-rw-r--r--man/ChangeLog5
-rw-r--r--man/gnus.texi18
5 files changed, 85 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index c6205eac0ce..d3354bd14eb 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,16 @@
12007-02-28 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * message.el (message-make-in-reply-to): Quote name containing
4 non-ASCII characters. It will make the RFC2047 encoder cause an error
5 if there are special characters. Reported by NAKAJI Hiroyuki
6 <nakaji@kankyo-u.ac.jp>.
7
82007-02-27 Katsumi Yamaoka <yamaoka@jpl.org>
9
10 * nntp.el (nntp-never-echoes-commands)
11 (nntp-open-connection-functions-never-echo-commands): New variables.
12 (nntp-send-command): Use them.
13
12007-02-15 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> 142007-02-15 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
2 15
3 * nnweb.el (nnweb-google-parse-1): Fix date parsing to also match on 16 * nnweb.el (nnweb-google-parse-1): Fix date parsing to also match on
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 0f9046756e1..55a7653dba1 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4864,13 +4864,32 @@ If NOW, use that time instead."
4864 (msg-id (mail-header-message-id message-reply-headers))) 4864 (msg-id (mail-header-message-id message-reply-headers)))
4865 (when from 4865 (when from
4866 (let ((name (mail-extract-address-components from))) 4866 (let ((name (mail-extract-address-components from)))
4867 (concat msg-id (if msg-id " (") 4867 (concat
4868 (or (car name) 4868 msg-id (if msg-id " (")
4869 (nth 1 name)) 4869 (if (car name)
4870 "'s message of \"" 4870 (if (string-match "[^\000-\177]" (car name))
4871 (if (or (not date) (string= date "")) 4871 ;; Quote a string containing non-ASCII characters.
4872 "(unknown date)" date) 4872 ;; It will make the RFC2047 encoder cause an error
4873 "\"" (if msg-id ")"))))))) 4873 ;; if there are special characters.
4874 (let ((default-enable-multibyte-characters t))
4875 (with-temp-buffer
4876 (insert (car name))
4877 (goto-char (point-min))
4878 (while (search-forward "\"" nil t)
4879 (when (prog2
4880 (backward-char)
4881 (zerop (% (skip-chars-backward "\\\\") 2))
4882 (goto-char (match-beginning 0)))
4883 (insert "\\"))
4884 (forward-char))
4885 ;; Those quotes will be removed by the RFC2047 encoder.
4886 (concat "\"" (buffer-string) "\"")))
4887 (car name))
4888 (nth 1 name))
4889 "'s message of \""
4890 (if (or (not date) (string= date ""))
4891 "(unknown date)" date)
4892 "\"" (if msg-id ")")))))))
4874 4893
4875(defun message-make-distribution () 4894(defun message-make-distribution ()
4876 "Make a Distribution header." 4895 "Make a Distribution header."
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el
index 867ea5419f2..25b924a93e7 100644
--- a/lisp/gnus/nntp.el
+++ b/lisp/gnus/nntp.el
@@ -88,6 +88,21 @@ Indirect connections:
88- `nntp-open-via-rlogin-and-telnet', 88- `nntp-open-via-rlogin-and-telnet',
89- `nntp-open-via-telnet-and-telnet'.") 89- `nntp-open-via-telnet-and-telnet'.")
90 90
91(defvoo nntp-never-echoes-commands nil
92 "*Non-nil means the nntp server never echoes commands.
93It is reported that some nntps server doesn't echo commands. So, you
94may want to set this to non-nil in the method for such a server setting
95`nntp-open-connection-function' to `nntp-open-ssl-stream' for example.
96Note that the `nntp-open-connection-functions-never-echo-commands'
97variable overrides the nil value of this variable.")
98
99(defvoo nntp-open-connection-functions-never-echo-commands
100 '(nntp-open-network-stream)
101 "*List of functions that never echo commands.
102Add or set a function which you set to `nntp-open-connection-function'
103to this list if it does not echo commands. Note that a non-nil value
104of the `nntp-never-echoes-commands' variable overrides this variable.")
105
91(defvoo nntp-pre-command nil 106(defvoo nntp-pre-command nil
92 "*Pre-command to use with the various nntp-open-via-* methods. 107 "*Pre-command to use with the various nntp-open-via-* methods.
93This is where you would put \"runsocks\" or stuff like that.") 108This is where you would put \"runsocks\" or stuff like that.")
@@ -450,11 +465,15 @@ be restored and the command retried."
450 nntp-server-buffer 465 nntp-server-buffer
451 wait-for nnheader-callback-function) 466 wait-for nnheader-callback-function)
452 ;; If nothing to wait for, still remove possibly echo'ed commands. 467 ;; If nothing to wait for, still remove possibly echo'ed commands.
453 ;; We don't have echos if nntp-open-connection-function 468 ;; We don't have echoes if `nntp-never-echoes-commands' is non-nil
454 ;; is `nntp-open-network-stream', so we skip this in that case. 469 ;; or the value of `nntp-open-connection-function' is in
470 ;; `nntp-open-connection-functions-never-echo-commands', so we
471 ;; skip this in that cases.
455 (unless (or wait-for 472 (unless (or wait-for
456 (equal nntp-open-connection-function 473 nntp-never-echoes-commands
457 'nntp-open-network-stream)) 474 (memq
475 nntp-open-connection-function
476 nntp-open-connection-functions-never-echo-commands))
458 (nntp-accept-response) 477 (nntp-accept-response)
459 (save-excursion 478 (save-excursion
460 (set-buffer buffer) 479 (set-buffer buffer)
diff --git a/man/ChangeLog b/man/ChangeLog
index c7e3da8bddd..ad357f99680 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,8 @@
12007-02-27 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus.texi (NNTP): Mention nntp-never-echoes-commands and
4 nntp-open-connection-functions-never-echo-commands.
5
12007-02-28 Thien-Thi Nguyen <ttn@gnu.org> 62007-02-28 Thien-Thi Nguyen <ttn@gnu.org>
2 7
3 * rmail.texi (Movemail): Add internal ref. 8 * rmail.texi (Movemail): Add internal ref.
diff --git a/man/gnus.texi b/man/gnus.texi
index 625549890ae..e2adfae2253 100644
--- a/man/gnus.texi
+++ b/man/gnus.texi
@@ -12942,6 +12942,24 @@ Six pre-made functions are supplied. These functions can be grouped in
12942two categories: direct connection functions (four pre-made), and 12942two categories: direct connection functions (four pre-made), and
12943indirect ones (two pre-made). 12943indirect ones (two pre-made).
12944 12944
12945@item nntp-never-echoes-commands
12946@vindex nntp-never-echoes-commands
12947Non-@code{nil} means the nntp server never echoes commands. It is
12948reported that some nntps server doesn't echo commands. So, you may want
12949to set this to non-@code{nil} in the method for such a server setting
12950@code{nntp-open-connection-function} to @code{nntp-open-ssl-stream} for
12951example. The default value is @code{nil}. Note that the
12952@code{nntp-open-connection-functions-never-echo-commands} variable
12953overrides the @code{nil} value of this variable.
12954
12955@item nntp-open-connection-functions-never-echo-commands
12956@vindex nntp-open-connection-functions-never-echo-commands
12957List of functions that never echo commands. Add or set a function which
12958you set to @code{nntp-open-connection-function} to this list if it does
12959not echo commands. Note that a non-@code{nil} value of the
12960@code{nntp-never-echoes-commands} variable overrides this variable. The
12961default value is @code{(nntp-open-network-stream)}.
12962
12945@item nntp-prepare-post-hook 12963@item nntp-prepare-post-hook
12946@vindex nntp-prepare-post-hook 12964@vindex nntp-prepare-post-hook
12947A hook run just before posting an article. If there is no 12965A hook run just before posting an article. If there is no