nnimap.el: Fix IMAP message size parsing
authorNikolaus Rath <Nikolaus@rath.org>
Sat, 11 Jul 2015 03:26:40 +0000 (11:26 +0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Sat, 11 Jul 2015 04:26:33 +0000 (12:26 +0800)
* lisp/nnimap.el: Don't assume UID comes before RFC822.SIZE.

lisp/ChangeLog
lisp/nnimap.el

index 7e76ffa..57e1a07 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-09  Nikolaus Rath  <Nikolaus@rath.org>
+
+       * nnimap.el (nnimap-transform-headers): Don't assume that UID comes
+       before RFC822.SIZE.
+
 2015-07-09  Nikolaus Rath  <Nikolaus@rath.org>
 
        * nnimap.el (nnimap-open-connection-1): Always query capabilities,
index 8eb6268..70480ad 100644 (file)
@@ -235,6 +235,7 @@ textual parts.")
                                      t)
                   (match-string 1)))
        (setq lines nil)
+       (beginning-of-line)
        (setq size
              (and (re-search-forward "RFC822.SIZE \\([0-9]+\\)"
                                      (line-end-position)