;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.181 2000/06/20 19:36:09 cph Exp $
+;;; $Id: imail-top.scm,v 1.182 2000/06/22 20:18:59 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(lambda ()
(make-mail-buffer '(("To" "") ("Subject" ""))
(chase-imail-buffer (selected-buffer))
- select-buffer-other-window)))
+ (lambda (mail-buffer)
+ (initialize-imail-mail-buffer mail-buffer)
+ (select-buffer-other-window mail-buffer)))))
(define-command imail-reply
"Reply to the current message.
(make-mail-buffer (imail-reply-headers message (not just-sender?))
(chase-imail-buffer (selected-buffer))
(lambda (mail-buffer)
+ (initialize-imail-mail-buffer mail-buffer)
(message-answered message)
(select-buffer-other-window mail-buffer))))))
;; This procedure is invoked by M-x mail-yank-original in Mail mode.
(define (imail-yank-original buffer left-margin mark)
(insert-message (selected-message #t buffer) #t left-margin mark))
+
+(define (initialize-imail-mail-buffer buffer)
+ (buffer-put! buffer 'MAILER-VERSION-STRING imail-mailer-version-string))
+
+(define (imail-mailer-version-string generic)
+ (string-append "IMAIL/" (get-subsystem-version-string "IMAIL")
+ "; " generic))
\f
(define-command imail-forward
"Forward the current message to another user.
"]")))
#f
(lambda (mail-buffer)
+ (initialize-imail-mail-buffer mail-buffer)
(let ((raw? (ref-variable imail-forward-all-headers mail-buffer)))
(if (ref-variable imail-forward-using-mime mail-buffer)
(add-buffer-mime-attachment!
(string-ci=? (header-field-name header) "sender")))))
#f
(lambda (mail-buffer)
+ (initialize-imail-mail-buffer mail-buffer)
(with-buffer-point-preserved mail-buffer
(lambda ()
(insert-message-body message (buffer-end mail-buffer))))
IMAIL To-Do List
-$Id: todo.txt,v 1.93 2000/06/20 20:38:25 cph Exp $
+$Id: todo.txt,v 1.94 2000/06/22 20:19:08 cph Exp $
Bug fixes
---------
Use this to extend M-x imail-rename-folder to work in all cases by
using copy/delete when rename inapplicable.
-* Generate more specific X-Mailer header.
-
* Add variable to control how multipart/alternative shows the
secondary alternatives.