aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers2012-01-30 23:30:22 +0000
committerKatsumi Yamaoka2012-01-30 23:30:22 +0000
commitba775afe0d3ba12dbb7ff94b6be0bbed9285e9d9 (patch)
treee605bd871ca95dea7189c939866710582cf695b1
parentd2859a4a2e0d19082f82fc899bb812d7ca9d1c35 (diff)
downloademacs-ba775afe0d3ba12dbb7ff94b6be0bbed9285e9d9.tar.gz
emacs-ba775afe0d3ba12dbb7ff94b6be0bbed9285e9d9.zip
Merge changes made in Gnus trunk
gnus.texi (Agent Basics): Fix outdated description of `gnus-agent-auto-agentize-methods'. rfc2047.el (rfc2047-encode-region): Allow not folding the encoded words. (rfc2047-encode-string): Ditto. (rfc2047-encode-parameter): Don't fold parameters. Some MUAs do not understand folded filename="..." parameters, for instance. gnus-agent.el (gnus-agent-auto-agentize-methods): Point to the Agent section in the manual.
-rw-r--r--doc/misc/gnus.texi5
-rw-r--r--lisp/gnus/ChangeLog11
-rw-r--r--lisp/gnus/gnus-agent.el2
-rw-r--r--lisp/gnus/rfc2047.el11
4 files changed, 20 insertions, 9 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 7728041c83b..1883975b7f6 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -18236,8 +18236,7 @@ Agent. Go to the server buffer (@kbd{^} in the group buffer) and press
18236@kbd{J a} on the server (or servers) that you wish to have covered by the 18236@kbd{J a} on the server (or servers) that you wish to have covered by the
18237Agent (@pxref{Server Agent Commands}), or @kbd{J r} on automatically 18237Agent (@pxref{Server Agent Commands}), or @kbd{J r} on automatically
18238added servers you do not wish to have covered by the Agent. By default, 18238added servers you do not wish to have covered by the Agent. By default,
18239all @code{nntp} and @code{nnimap} servers in @code{gnus-select-method} and 18239no servers are agentized.
18240@code{gnus-secondary-select-methods} are agentized.
18241 18240
18242@item 18241@item
18243Decide on download policy. It's fairly simple once you decide whether 18242Decide on download policy. It's fairly simple once you decide whether
@@ -19263,7 +19262,7 @@ to agentize remote back ends. The auto-agentizing has the same effect
19263as running @kbd{J a} on the servers (@pxref{Server Agent Commands}). 19262as running @kbd{J a} on the servers (@pxref{Server Agent Commands}).
19264If the file exist, you must manage the servers manually by adding or 19263If the file exist, you must manage the servers manually by adding or
19265removing them, this variable is only applicable the first time you 19264removing them, this variable is only applicable the first time you
19266start Gnus. The default is @samp{(nntp nnimap)}. 19265start Gnus. The default is @samp{nil}.
19267 19266
19268@end table 19267@end table
19269 19268
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 93ceeebf0c1..1d99418ed21 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,16 @@
12012-01-30 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change)
2
3 * gnus-agent.el (gnus-agent-auto-agentize-methods): Point to the Agent
4 section in the manual.
5
12012-01-30 Lars Ingebrigtsen <larsi@gnus.org> 62012-01-30 Lars Ingebrigtsen <larsi@gnus.org>
2 7
8 * rfc2047.el (rfc2047-encode-region): Allow not folding the encoded
9 words.
10 (rfc2047-encode-string): Ditto.
11 (rfc2047-encode-parameter): Don't fold parameters. Some MUAs do not
12 understand folded filename="..." parameters, for instance.
13
3 * nnimap.el (nnimap-wait-for-response): Include the imap server name in 14 * nnimap.el (nnimap-wait-for-response): Include the imap server name in
4 the message for greater debuggability. 15 the message for greater debuggability.
5 16
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index 70772bb1d0d..d7308758862 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -186,7 +186,7 @@ When found, offer to remove them."
186(defcustom gnus-agent-auto-agentize-methods nil 186(defcustom gnus-agent-auto-agentize-methods nil
187 "Initially, all servers from these methods are agentized. 187 "Initially, all servers from these methods are agentized.
188The user may remove or add servers using the Server buffer. 188The user may remove or add servers using the Server buffer.
189See Info node `(gnus)Server Buffer'." 189See Info nodes `(gnus)Server Buffer', `(gnus)Agent Variables'."
190 :version "22.1" 190 :version "22.1"
191 :type '(repeat symbol) 191 :type '(repeat symbol)
192 :group 'gnus-agent) 192 :group 'gnus-agent)
diff --git a/lisp/gnus/rfc2047.el b/lisp/gnus/rfc2047.el
index a275df7701b..e881256f386 100644
--- a/lisp/gnus/rfc2047.el
+++ b/lisp/gnus/rfc2047.el
@@ -362,7 +362,7 @@ The buffer may be narrowed."
362 (modify-syntax-entry ?@ "." table) 362 (modify-syntax-entry ?@ "." table)
363 table)) 363 table))
364 364
365(defun rfc2047-encode-region (b e) 365(defun rfc2047-encode-region (b e &optional dont-fold)
366 "Encode words in region B to E that need encoding. 366 "Encode words in region B to E that need encoding.
367By default, the region is treated as containing RFC2822 addresses. 367By default, the region is treated as containing RFC2822 addresses.
368Dynamically bind `rfc2047-encoding-type' to change that." 368Dynamically bind `rfc2047-encoding-type' to change that."
@@ -546,16 +546,17 @@ Dynamically bind `rfc2047-encoding-type' to change that."
546 (signal (car err) (cdr err)) 546 (signal (car err) (cdr err))
547 (error "Invalid data for rfc2047 encoding: %s" 547 (error "Invalid data for rfc2047 encoding: %s"
548 (mm-replace-in-string orig-text "[ \t\n]+" " ")))))))) 548 (mm-replace-in-string orig-text "[ \t\n]+" " "))))))))
549 (rfc2047-fold-region b (point)) 549 (unless dont-fold
550 (rfc2047-fold-region b (point)))
550 (goto-char (point-max)))) 551 (goto-char (point-max))))
551 552
552(defun rfc2047-encode-string (string) 553(defun rfc2047-encode-string (string &optional dont-fold)
553 "Encode words in STRING. 554 "Encode words in STRING.
554By default, the string is treated as containing addresses (see 555By default, the string is treated as containing addresses (see
555`rfc2047-encoding-type')." 556`rfc2047-encoding-type')."
556 (mm-with-multibyte-buffer 557 (mm-with-multibyte-buffer
557 (insert string) 558 (insert string)
558 (rfc2047-encode-region (point-min) (point-max)) 559 (rfc2047-encode-region (point-min) (point-max) dont-fold)
559 (buffer-string))) 560 (buffer-string)))
560 561
561;; From RFC 2047: 562;; From RFC 2047:
@@ -850,7 +851,7 @@ This is a substitution for the `rfc2231-encode-string' function, that
850is the standard but many mailers don't support it." 851is the standard but many mailers don't support it."
851 (let ((rfc2047-encoding-type 'mime) 852 (let ((rfc2047-encoding-type 'mime)
852 (rfc2047-encode-max-chars nil)) 853 (rfc2047-encode-max-chars nil))
853 (rfc2045-encode-string param (rfc2047-encode-string value)))) 854 (rfc2045-encode-string param (rfc2047-encode-string value t))))
854 855
855;;; 856;;;
856;;; Functions for decoding RFC2047 messages 857;;; Functions for decoding RFC2047 messages