;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.148 2000/06/12 00:57:50 cph Exp $
+;;; $Id: imail-top.scm,v 1.149 2000/06/12 04:04:51 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
Otherwise, the text is left as is."
#t
(lambda (x) (or (boolean? x) (eq? x 'FILL))))
+
+(define-variable imail-forward-all-headers
+ "If true, forwarded email messages will contain all header fields.
+Otherwise, only the header fields normally shown by IMAIL are sent."
+ #f
+ boolean?)
\f
(define-command imail
"Read and edit incoming mail.
imail-delete-after-output
imail-dont-reply-to-names
imail-expunge-confirmation
+ imail-forward-all-headers
imail-ignored-headers
imail-kept-headers
imail-message-filter
"]")))
#f
(lambda (mail-buffer)
- (add-buffer-mime-attachment! mail-buffer
- 'MESSAGE 'RFC822 '() '(INLINE)
- (map header-field->mail-header
- (message-header-fields message))
- (message-body message))
+ (add-buffer-mime-attachment!
+ mail-buffer
+ 'MESSAGE 'RFC822 '() '(INLINE)
+ (map header-field->mail-header
+ (let ((headers (message-header-fields message)))
+ (if (ref-variable imail-forward-all-headers mail-buffer)
+ headers
+ (maybe-reformat-headers headers mail-buffer))))
+ (message-body message))
(if (window-has-no-neighbors? (current-window))
(select-buffer mail-buffer)
(select-buffer-other-window mail-buffer))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail.pkg,v 1.54 2000/06/10 20:17:55 cph Exp $
+;;; $Id: imail.pkg,v 1.55 2000/06/12 04:04:46 cph Exp $
;;;
;;; Copyright (c) 2000 Massachusetts Institute of Technology
;;;
edwin-variable$imail-delete-after-output
edwin-variable$imail-dont-reply-to-names
edwin-variable$imail-expunge-confirmation
+ edwin-variable$imail-forward-all-headers
edwin-variable$imail-ignored-headers
edwin-variable$imail-kept-headers
edwin-variable$imail-message-filter