aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2005-07-29 01:44:40 +0000
committerMiles Bader2005-07-29 01:44:40 +0000
commitd44e3b453c528446579182d82284abbfd80f8b7d (patch)
tree970395e63cd7d1b43bae7f2a78a64876f29d1e9f
parent5dac561545414aee1af7cbc1f915c0840a44a532 (diff)
downloademacs-d44e3b453c528446579182d82284abbfd80f8b7d.tar.gz
emacs-d44e3b453c528446579182d82284abbfd80f8b7d.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-503
Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 98) - Update from CVS 2005-07-28 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/rfc2231.el (rfc2231-parse-string): Take care that not only a segmented parameter but also other parameters might be there.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/rfc2231.el18
2 files changed, 17 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 992c351ef31..7bc733ad90f 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12005-07-28 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * rfc2231.el (rfc2231-parse-string): Take care that not only a
4 segmented parameter but also other parameters might be there.
5
12005-07-26 Katsumi Yamaoka <yamaoka@jpl.org> 62005-07-26 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * gnus-art.el (gnus-article-next-page-1): Don't scroll if there're 8 * gnus-art.el (gnus-article-next-page-1): Don't scroll if there're
diff --git a/lisp/gnus/rfc2231.el b/lisp/gnus/rfc2231.el
index 0a6cfdb2af1..4c39ba6c7fd 100644
--- a/lisp/gnus/rfc2231.el
+++ b/lisp/gnus/rfc2231.el
@@ -1,6 +1,6 @@
1;;; rfc2231.el --- Functions for decoding rfc2231 headers 1;;; rfc2231.el --- Functions for decoding rfc2231 headers
2 2
3;; Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004 3;; Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005
4;; 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>
@@ -52,7 +52,7 @@ The list will be on the form
52 (prev-value "") 52 (prev-value "")
53 display-name mailbox c display-string parameters 53 display-name mailbox c display-string parameters
54 attribute value type subtype number encoded 54 attribute value type subtype number encoded
55 prev-attribute) 55 prev-attribute prev-encoded)
56 (ietf-drums-init (mail-header-remove-whitespace 56 (ietf-drums-init (mail-header-remove-whitespace
57 (mail-header-remove-comments string))) 57 (mail-header-remove-comments string)))
58 (let ((table (copy-syntax-table ietf-drums-syntax-table))) 58 (let ((table (copy-syntax-table ietf-drums-syntax-table)))
@@ -106,9 +106,14 @@ The list will be on the form
106 ;; See if we have any previous continuations. 106 ;; See if we have any previous continuations.
107 (when (and prev-attribute 107 (when (and prev-attribute
108 (not (eq prev-attribute attribute))) 108 (not (eq prev-attribute attribute)))
109 (push (cons prev-attribute prev-value) parameters) 109 (push (cons prev-attribute
110 (if prev-encoded
111 (rfc2231-decode-encoded-string prev-value)
112 prev-value))
113 parameters)
110 (setq prev-attribute nil 114 (setq prev-attribute nil
111 prev-value "")) 115 prev-value ""
116 prev-encoded nil))
112 (unless (eq c ?=) 117 (unless (eq c ?=)
113 (error "Invalid header: %s" string)) 118 (error "Invalid header: %s" string))
114 (forward-char 1) 119 (forward-char 1)
@@ -127,7 +132,8 @@ The list will be on the form
127 (error "Invalid header: %s" string))) 132 (error "Invalid header: %s" string)))
128 (if number 133 (if number
129 (setq prev-attribute attribute 134 (setq prev-attribute attribute
130 prev-value (concat prev-value value)) 135 prev-value (concat prev-value value)
136 prev-encoded encoded)
131 (push (cons attribute 137 (push (cons attribute
132 (if encoded 138 (if encoded
133 (rfc2231-decode-encoded-string value) 139 (rfc2231-decode-encoded-string value)
@@ -137,7 +143,7 @@ The list will be on the form
137 ;; Take care of any final continuations. 143 ;; Take care of any final continuations.
138 (when prev-attribute 144 (when prev-attribute
139 (push (cons prev-attribute 145 (push (cons prev-attribute
140 (if encoded 146 (if prev-encoded
141 (rfc2231-decode-encoded-string prev-value) 147 (rfc2231-decode-encoded-string prev-value)
142 prev-value)) 148 prev-value))
143 parameters)) 149 parameters))