diff options
| author | Ted Zlatanov | 2016-07-25 22:07:35 -0400 |
|---|---|---|
| committer | Ted Zlatanov | 2016-07-25 22:07:35 -0400 |
| commit | 9ad05bec03bef4022786c5c1c79b3bca96e9d502 (patch) | |
| tree | 3bb3a255d74368a3c0e9d29f8b4a4dbccf86fd88 | |
| parent | 113b3852d7a51e25ec765f80a265dac0bf8fe66e (diff) | |
| download | emacs-9ad05bec03bef4022786c5c1c79b3bca96e9d502.tar.gz emacs-9ad05bec03bef4022786c5c1c79b3bca96e9d502.zip | |
* gnus-cloud.el (gnus-cloud-encode-data): Fix 'base64-gzip encoding.
| -rw-r--r-- | lisp/gnus/gnus-cloud.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/gnus/gnus-cloud.el b/lisp/gnus/gnus-cloud.el index 22086b1f36e..14af4b2a840 100644 --- a/lisp/gnus/gnus-cloud.el +++ b/lisp/gnus/gnus-cloud.el | |||
| @@ -112,11 +112,13 @@ easy interactive way to set this from the Server buffer." | |||
| 112 | (defun gnus-cloud-encode-data () | 112 | (defun gnus-cloud-encode-data () |
| 113 | (cond | 113 | (cond |
| 114 | ((eq gnus-cloud-storage-method 'base64-gzip) | 114 | ((eq gnus-cloud-storage-method 'base64-gzip) |
| 115 | (call-process-region (point-min) (point-max) "gzip" | 115 | (progn |
| 116 | t (current-buffer) nil | 116 | (call-process-region (point-min) (point-max) "gzip" |
| 117 | "-c")) | 117 | t (current-buffer) nil |
| 118 | "-c") | ||
| 119 | (base64-encode-region (point-min) (point-max)))) | ||
| 118 | 120 | ||
| 119 | ((memq gnus-cloud-storage-method '(base64 base64-gzip)) | 121 | ((eq gnus-cloud-storage-method 'base64) |
| 120 | (base64-encode-region (point-min) (point-max))) | 122 | (base64-encode-region (point-min) (point-max))) |
| 121 | 123 | ||
| 122 | ((eq gnus-cloud-storage-method 'epg) | 124 | ((eq gnus-cloud-storage-method 'epg) |