]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
Don't re-compress .gz & al. in notmuch-show-save-part.
[notmuch] / emacs / notmuch-show.el
index 6c498ab1b8cff9cd53bb8620fb34b2448b7cd81b..40cf74e8f110f447b9196bd709c12adfa191e27d 100644 (file)
@@ -306,10 +306,11 @@ message at DEPTH in the current thread."
                   "Filename to save as: "
                   (or mailcap-download-directory "~/")
                   nil nil
-                  filename))
-           (require-final-newline nil)
-           (coding-system-for-write 'no-conversion))
-       (write-region (point-min) (point-max) file)))))
+                  filename)))
+       ;; Don't re-compress .gz & al.  Arguably we should make
+       ;; `file-name-handler-alist' nil, but that would chop
+       ;; ange-ftp, which is reasonable to use here.
+       (mm-write-region (point-min) (point-max) file nil nil nil 'no-conversion t)))))
 
 (defun notmuch-show-mm-display-part-inline (msg part content-type content)
   "Use the mm-decode/mm-view functions to display a part in the