diff options
| author | Lars Ingebrigtsen | 2014-01-31 08:33:13 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2014-01-31 08:33:13 +0000 |
| commit | 579d49fa6ef7eb66fb6a042251f95d2fa94d2e3b (patch) | |
| tree | 497fdf951053e42e30da14a52e0adf4e4d80500a | |
| parent | a69ecd19fe9ea522f7266b6852e2d6d080a192c2 (diff) | |
| download | emacs-579d49fa6ef7eb66fb6a042251f95d2fa94d2e3b.tar.gz emacs-579d49fa6ef7eb66fb6a042251f95d2fa94d2e3b.zip | |
lisp/gnus/nnimap.el (nnimap-transform-headers): Fix Davmail header parsing
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index b30afa601e6..29d47ab4226 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-01-31 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * nnimap.el (nnimap-transform-headers): Fix Davmail header parsing. | ||
| 4 | |||
| 1 | 2014-01-31 Dave Abrahams <dave@boostpro.com> | 5 | 2014-01-31 Dave Abrahams <dave@boostpro.com> |
| 2 | 6 | ||
| 3 | * gnus-salt.el (gnus-tree-highlight-article): Don't move point around | 7 | * gnus-salt.el (gnus-tree-highlight-article): Don't move point around |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 016a8a26062..cbaea91f5ab 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -216,7 +216,7 @@ textual parts.") | |||
| 216 | ;; Start of the header section. | 216 | ;; Start of the header section. |
| 217 | (or (re-search-forward "] {[0-9]+}\r?\n" nil t) | 217 | (or (re-search-forward "] {[0-9]+}\r?\n" nil t) |
| 218 | ;; Start of the next FETCH. | 218 | ;; Start of the next FETCH. |
| 219 | (re-search-forward "\\* [0-9]+ FETCH" nil t) | 219 | (re-search-forward "\\* [0-9]+ \\(UID \\)? FETCH" nil t) |
| 220 | (point-max))) | 220 | (point-max))) |
| 221 | t) | 221 | t) |
| 222 | (setq size (string-to-number (match-string 1))) | 222 | (setq size (string-to-number (match-string 1))) |
| @@ -255,7 +255,9 @@ textual parts.") | |||
| 255 | (insert (format "Chars: %s\n" size))) | 255 | (insert (format "Chars: %s\n" size))) |
| 256 | (when lines | 256 | (when lines |
| 257 | (insert (format "Lines: %s\n" lines))) | 257 | (insert (format "Lines: %s\n" lines))) |
| 258 | (unless (re-search-forward "^\r$" nil t) | 258 | ;; Most servers have a blank line after the headers, but |
| 259 | ;; Davmail doesn't. | ||
| 260 | (unless (re-search-forward "^\r$\\|^)\r?$" nil t) | ||
| 259 | (goto-char (point-max))) | 261 | (goto-char (point-max))) |
| 260 | (delete-region (line-beginning-position) (line-end-position)) | 262 | (delete-region (line-beginning-position) (line-end-position)) |
| 261 | (insert ".") | 263 | (insert ".") |