[gnus git] branch no-gnus updated: m0-1-55-gc247d31 =1= IMAP header parsing fix
Lars Ingebrigtsen <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via c247d31fee085a02cfefc85d8c3ad85632e88a7e (commit)
from 20915e1c98daa548e851ee4f38e59d27238a9719 (commit)
- Log -----------------------------------------------------------------
commit c247d31fee085a02cfefc85d8c3ad85632e88a7e
Author: Lars Ingebrigtsen <[email protected]>
Date: Mon Feb 13 19:51:06 2012 +0100
IMAP header parsing fix
(nnimap-transform-headers): Don't bug out on header lines containing
stuff that look like IMAP length encodings.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 24c1bde..fb120d0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,8 @@
* nnimap.el (nnimap-record-commands): New variable.
(nnimap-log-command): Use it.
(nnimap-make-process-buffer): Add a space to the process buffer.
+ (nnimap-transform-headers): Don't bug out on header lines containing
+ stuff that look like IMAP length encodings.
* shr.el (shr-rescale-image): Allow viewing large images.
diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index 2cdb170..c6f0f7a 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -201,7 +201,10 @@ textual parts.")
(while (re-search-forward
"[^]][ (]{\\([0-9]+\\)}\r?\n"
(save-excursion
- (or (re-search-forward "\\* [0-9]+ FETCH" nil t)
+ ;; Start of the header section.
+ (or (re-search-forward "] {[0-9]+}\r?\n" nil t)
+ ;; Start of the next FETCH.
+ (re-search-forward "\\* [0-9]+ FETCH" nil t)
(point-max)))
t)
(setq size (string-to-number (match-string 1)))
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 2 ++
lisp/nnimap.el | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, no-gnus has been updated
hooks/post-receive
--
Gnus Project