nnimap.el (nnimap-update-info): Fix problem with `g' chopping of low-numbered articles.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 10 Nov 2010 23:16:01 +0000 (23:16 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 10 Nov 2010 23:16:01 +0000 (23:16 +0000)
message.el (message-resend): Don't disable encoding unless it's already encoded.

lisp/gnus/ChangeLog
lisp/gnus/message.el
lisp/gnus/nnimap.el

index 5eb6e13..8afb226 100644 (file)
@@ -1,3 +1,11 @@
+2010-11-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * message.el (message-resend): Don't disable encoding unless it's
+       already encoded.
+
+       * nnimap.el (nnimap-update-info): Fix problem with `g' chopping of
+       low-numbered articles.
+
 2010-11-10  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * rfc2047.el (rfc2047-syntax-table): Simplify.
index be09d08..07ffaf1 100644 (file)
@@ -7432,7 +7432,11 @@ is for the internal use."
       (when (looking-at "From ")
        (replace-match "X-From-Line: "))
       ;; Send it.
-      (let ((message-inhibit-body-encoding t)
+      (let ((message-inhibit-body-encoding
+            ;; Don't do any further encoding if it looks like the
+            ;; message has already been encoded.
+            (let ((case-fold-search t))
+              (re-search-forward "^mime-version:" nil t)))
            (message-inhibit-ecomplete t)
            message-required-mail-headers
            message-generate-hashcash
index 67e2c91..ed69c4c 100644 (file)
@@ -1155,13 +1155,16 @@ textual parts.")
                (not (gnus-active group)))
            (gnus-set-active group
                             (cond
+                             (active
+                              (cons (min (or low (car active))
+                                         (car active))
+                                    (max (or high (cdr active))
+                                         (cdr active))))
                              ((and low high)
                               (cons low high))
                              (uidnext
                               ;; No articles in this group.
                               (cons uidnext (1- uidnext)))
-                             (active
-                              active)
                              (start-article
                               (cons start-article (1- start-article)))
                              (t