*** empty log message ***
authorHenrik Enberg <henrik.enberg@telia.com>
Sun, 22 Jan 2006 05:51:48 +0000 (05:51 +0000)
committerHenrik Enberg <henrik.enberg@telia.com>
Sun, 22 Jan 2006 05:51:48 +0000 (05:51 +0000)
lisp/mail/ChangeLog
lisp/mail/rmail.el

index d0f732d43ef0d062c7717e18fcab00d79a50575c..fc1f12e0c349d1593d0dc1c6d74d93ede53fee9f 100644 (file)
@@ -1,3 +1,14 @@
+2006-01-22  Henrik Enberg  <enberg@printf.se>
+
+       * rmail.el (rmail): Go back to using find-file for reading in the
+       mail file.  This avoids gratuitous modification of the file.
+       (rmail-decode-region): Doc string, cleanup.
+       (rmail-decode-by-content-type): New function.
+       (rmail-decode-messages): Use it.  Add FROM and TO args and only
+       process messages in that region.
+       (rmail-get-new-mail): Call `rmail-decode-region' before
+       `rmail-process-new-messages'.
+
 2006-01-21  Alex Schroeder  <alex@gnu.org>
 
        * rmail.el (rmail-decode-messages): Decoded encoded-words in
index f4dff6ced602813aa1abed97d128fb3cc1c5d82f..275119bce9ecd26e80ca1973bcb3507a2935c21b 100644 (file)
@@ -1775,7 +1775,7 @@ If CODING is nil or an invalid coding system, decode by `undecided'."
   ;; Process each message in turn starting from the back and
   ;; proceeding to the front of the region.  This is especially a good
   ;; approach since the buffer will likely have new headers added.
-  (save-excursion
+  (save-restriction
     (narrow-to-region from to)
     (let ((inhibit-read-only t)
          (case-fold-search nil)