(gnus-draft-decoding-function): New variable.
authormorioka <morioka>
Fri, 28 Nov 1997 16:43:53 +0000 (16:43 +0000)
committermorioka <morioka>
Fri, 28 Nov 1997 16:43:53 +0000 (16:43 +0000)
(gnus-draft-setup): Use `gnus-draft-decoding-function'.

lisp/gnus-draft.el

index b17356b..28e2046 100644 (file)
 
 ;;; Utility functions
 
+(defcustom gnus-draft-decoding-function
+  (function
+   (lambda ()
+     (mime-edit-decode-buffer nil)
+     (eword-decode-header)
+     ))
+  "Function called to decode the message from network representation."
+  :group 'gnus-agent
+  :type 'function)
+
 ;;;!!!If this is byte-compiled, it fails miserably.
 ;;;!!!I have no idea why.
 
       (if (not (gnus-request-restore-buffer article group))
          (error "Couldn't restore the article")
        ;; Insert the separator.
+       (funcall gnus-draft-decoding-function)
        (goto-char (point-min))
        (search-forward "\n\n")
        (forward-char -1)