]> git.eshelyaron.com Git - emacs.git/commitdiff
* gnus-cloud.el (gnus-cloud-encode-data): Fix 'base64-gzip encoding.
authorTed Zlatanov <tzz@lifelogs.com>
Tue, 26 Jul 2016 02:07:35 +0000 (22:07 -0400)
committerTed Zlatanov <tzz@lifelogs.com>
Tue, 26 Jul 2016 02:07:35 +0000 (22:07 -0400)
lisp/gnus/gnus-cloud.el

index 22086b1f36eed52474832da32aac629aeb0efd33..14af4b2a840936e2883a27aae7f17f38dc4ddeca 100644 (file)
@@ -112,11 +112,13 @@ easy interactive way to set this from the Server buffer."
 (defun gnus-cloud-encode-data ()
   (cond
    ((eq gnus-cloud-storage-method 'base64-gzip)
-    (call-process-region (point-min) (point-max) "gzip"
-                         t (current-buffer) nil
-                         "-c"))
+    (progn
+      (call-process-region (point-min) (point-max) "gzip"
+                           t (current-buffer) nil
+                           "-c")
+      (base64-encode-region (point-min) (point-max))))
 
-   ((memq gnus-cloud-storage-method '(base64 base64-gzip))
+   ((eq gnus-cloud-storage-method 'base64)
     (base64-encode-region (point-min) (point-max)))
 
    ((eq gnus-cloud-storage-method 'epg)