diff options
| author | Glenn Morris | 2009-02-17 02:37:40 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-17 02:37:40 +0000 |
| commit | f58faced4e6b5db0c558a8806a7dfa80dc5222c9 (patch) | |
| tree | 5bc7473543e479242571590939d1c26b29ae85be | |
| parent | 5b148883d2b42cfa71e31821b64d1211aeaafc91 (diff) | |
| download | emacs-f58faced4e6b5db0c558a8806a7dfa80dc5222c9.tar.gz emacs-f58faced4e6b5db0c558a8806a7dfa80dc5222c9.zip | |
(rmail-get-attr-names): Give a warning rather than an error if the
header is corrupt.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 20 |
2 files changed, 20 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 093bd0fa8e1..735e91e99e3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2009-02-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmailout.el (rmail-fields-not-to-output): Doc fix. | ||
| 4 | (rmail-delete-unwanted-fields): Ignore case. Use line-beg-pos. | ||
| 5 | (rmail-output, rmail-output-as-seen): Change the "from-gnus" argument to | ||
| 6 | "not-rmail", and make it work. Simplify. | ||
| 7 | |||
| 8 | * mail/rmail.el (rmail-get-attr-names): Give a warning rather than an | ||
| 9 | error if the header is corrupt. | ||
| 10 | |||
| 1 | 2009-02-16 Ulf Jasper <ulf.jasper@web.de> | 11 | 2009-02-16 Ulf Jasper <ulf.jasper@web.de> |
| 2 | 12 | ||
| 3 | * net/newst-treeview.el (newsticker--treeview-load): Offer | 13 | * net/newst-treeview.el (newsticker--treeview-load): Offer |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 9ba9accd0d3..50ea344785f 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -2054,16 +2054,16 @@ If MSG is nil, use the current message." | |||
| 2054 | (nmax (length rmail-attr-array)) | 2054 | (nmax (length rmail-attr-array)) |
| 2055 | result temp) | 2055 | result temp) |
| 2056 | (when value | 2056 | (when value |
| 2057 | (unless (= (length value) nmax) | 2057 | (if (/= (length value) nmax) |
| 2058 | (error "Corrupt attribute header in message")) | 2058 | (message "Warning: corrupt attribute header in message") |
| 2059 | (dotimes (index nmax) | 2059 | (dotimes (index nmax) |
| 2060 | (setq temp (and (not (= ?- (aref value index))) | 2060 | (setq temp (and (not (= ?- (aref value index))) |
| 2061 | (nth 1 (aref rmail-attr-array index))) | 2061 | (nth 1 (aref rmail-attr-array index))) |
| 2062 | result | 2062 | result |
| 2063 | (cond | 2063 | (cond |
| 2064 | ((and temp result) (format "%s, %s" result temp)) | 2064 | ((and temp result) (format "%s, %s" result temp)) |
| 2065 | (temp temp) | 2065 | (temp temp) |
| 2066 | (t result)))) | 2066 | (t result))))) |
| 2067 | result))) | 2067 | result))) |
| 2068 | 2068 | ||
| 2069 | (defun rmail-get-keywords (&optional msg) | 2069 | (defun rmail-get-keywords (&optional msg) |