aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGnus developers2012-01-30 23:30:22 +0000
committerKatsumi Yamaoka2012-01-30 23:30:22 +0000
commitba775afe0d3ba12dbb7ff94b6be0bbed9285e9d9 (patch)
treee605bd871ca95dea7189c939866710582cf695b1 /lisp
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog11
-rw-r--r--lisp/gnus/gnus-agent.el2
-rw-r--r--lisp/gnus/rfc2047.el11
3 files changed, 18 insertions, 6 deletions
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