aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa1997-09-11 05:24:25 +0000
committerKenichi Handa1997-09-11 05:24:25 +0000
commitedfa053fdd7760a4b069764f8de46a857d0cf2d6 (patch)
tree2cd5cb631ad9352d7ad76e96a9e9d8d8ee568fa7
parent4e825084791164ac1dcd51b9fe82ee13292fa4d3 (diff)
downloademacs-edfa053fdd7760a4b069764f8de46a857d0cf2d6.tar.gz
emacs-edfa053fdd7760a4b069764f8de46a857d0cf2d6.zip
Set no-conversion for network communication
with nntpd. (gnus-mule-initialize): For safety, set no-conversion for network communication with nntpd.
-rw-r--r--lisp/gnus/gnus-mule.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-mule.el b/lisp/gnus/gnus-mule.el
index 13062278ce8..75e224aace9 100644
--- a/lisp/gnus/gnus-mule.el
+++ b/lisp/gnus/gnus-mule.el
@@ -206,7 +206,10 @@ coding-system for reading and writing respectively."
206 (add-hook 'message-send-news-hook 206 (add-hook 'message-send-news-hook
207 'gnus-mule-message-send-news-function) 207 'gnus-mule-message-send-news-function)
208 (add-hook 'message-send-mail-hook 208 (add-hook 'message-send-mail-hook
209 'gnus-mule-message-send-mail-function)) 209 'gnus-mule-message-send-mail-function)
210 (let ((stream (get-process "nntpd")))
211 (if (processp stream)
212 (set-process-coding-system stream 'no-conversion 'no-conversion))))
210 213
211(gnus-mule-add-group "" 'undecided) 214(gnus-mule-add-group "" 'undecided)
212(gnus-mule-add-group "fj" 'iso-2022-7bit) 215(gnus-mule-add-group "fj" 'iso-2022-7bit)
@@ -221,4 +224,6 @@ coding-system for reading and writing respectively."
221 224
222(add-hook 'gnus-startup-hook 'gnus-mule-initialize) 225(add-hook 'gnus-startup-hook 'gnus-mule-initialize)
223 226
227(modify-coding-system-alist 'network "nntp" 'no-conversion)
228
224;; gnus-mule.el ends here 229;; gnus-mule.el ends here