(- (point) 2)))
(let ((to (mail-fetch-field "to")))
(when to
- (setq from (mime-decode-field-body to 'To 'unfolding))))))
+ (setq from (nnheader-decode-field-body to 'To 'unfolding))))))
(when from
(bbdb-annotate-message-sender from t
(or (bbdb-invoke-hook-for-value
;; exist only in the message.
(let (value)
(when (setq value (mail-fetch-field field-name))
- (mime-decode-field-body value
- (intern (capitalize field-name))
- 'unfolding))))
+ (nnheader-decode-field-body value field-name 'unfolding))))
;;
;; Insinuation
;; Copyright (C) 1997,98 Free Software Foundation, Inc.
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
-;; MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Tatsuya Ichikawa <t-ichi@po.shiojiri.ne.jp>
+;; MORIOKA Tomohiko <morioka@jaist.ac.jp>
+;; Tatsuya Ichikawa <t-ichi@po.shiojiri.ne.jp>
;; Keywords: mail, news, MIME, offline
;; This file is part of GNU Emacs.
;;; Utility functions
(defcustom gnus-draft-decoding-function
- #'mime-edit-decode-buffer
+ (function
+ (lambda ()
+ (mime-edit-decode-buffer nil)
+ (mime-decode-header-in-buffer)))
"*Function called to decode the message from network representation."
:group 'gnus-agent
:type 'function)
;;;!!!This has been fixed in recent versions of Emacs and XEmacs,
;;;!!!but for the time being, we'll just run this tiny function uncompiled.
+(progn
(defun gnus-draft-setup-for-editing (narticle group)
(gnus-setup-message 'forward
(let ((article narticle))
(forward-char -1)
(insert mail-header-separator)
(forward-line 1)
- (message-set-auto-save-file-name)))))
-
+ (message-set-auto-save-file-name))))))
+;;
(defvar gnus-draft-send-draft-buffer " *send draft*")
+(progn
(defun gnus-draft-setup-for-sending (narticle group)
(let ((article narticle))
(if (not (get-buffer gnus-draft-send-draft-buffer))
(erase-buffer)
(if (not (gnus-request-restore-buffer article group))
(error "Couldn't restore the article")
- )))
+ ))))
+;; For draft TEST
(defun gnus-draft-article-sendable-p (article)
"Say whether ARTICLE is sendable."