;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.171 2000/06/19 20:01:12 cph Exp $
+;;; $Id: imail-top.scm,v 1.172 2000/06/19 20:27:37 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
\\[imail-summary-by-flags] Like \\[imail-summary] only just messages with particular flag(s).
\\[imail-summary-by-recipients] Like \\[imail-summary] only just messages with particular recipient(s).
+\\[imail-toggle-header] Toggle between full headers and reduced headers.
\\[imail-toggle-message] Toggle between standard and raw message formats.")
\f
(define (imail-revert-buffer buffer dont-use-auto-save? dont-confirm?)
(define-key 'imail #\r 'imail-reply)
(define-key 'imail #\s 'imail-save-folder)
(define-key 'imail #\m-s 'imail-search)
-(define-key 'imail #\t 'imail-toggle-message)
+(define-key 'imail #\t 'imail-toggle-header)
+(define-key 'imail #\T 'imail-toggle-message)
(define-key 'imail #\u 'imail-undelete-previous-message)
(define-key 'imail #\m-u 'imail-first-unseen-message)
(define-key 'imail #\x 'imail-expunge)
"Folder saved"
"No changes need to be saved."))))
+(define-command imail-toggle-header
+ "Show full message headers if pruned headers currently shown, or vice versa."
+ ()
+ (lambda ()
+ (let ((message (selected-message)))
+ (select-message (selected-folder)
+ message
+ #t
+ (if (get-property message 'RAW? #f) #f 'FULL-HEADERS)))))
+
(define-command imail-toggle-message
"Toggle between standard and raw formats for message."
()
(begin
(store-property! message 'RAW? raw?)
(insert-header-fields message raw? mark)
- (cond (raw?
+ (cond ((and raw? (not (eq? raw? 'FULL-HEADERS)))
(insert-message-body message mark))
((folder-supports-mime? folder)
(insert-mime-message-body message mark #f 0))
IMAIL To-Do List
-$Id: todo.txt,v 1.87 2000/06/19 20:01:21 cph Exp $
+$Id: todo.txt,v 1.88 2000/06/19 20:27:45 cph Exp $
Bug fixes
---------
-* M-x imail-toggle-message isn't really a replacement for M-x
- imail-toggle-headers. If the message is really large, and you just
- want to see the headers, it's serious overkill. So reimplement the
- latter, and bind the former to `T'.
-
* Must be able to handle malformed headers in incoming mail.
Generating a low-level error in this situation is unacceptable.