;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.235 2001/04/11 01:09:16 cph Exp $
+;;; $Id: imail-top.scm,v 1.236 2001/04/15 20:58:44 cph Exp $
;;;
;;; Copyright (c) 1999-2001 Massachusetts Institute of Technology
;;;
()
(lambda ()
(let ((message (selected-message)))
- (select-message (selected-folder)
- message
- #t
- (if (get-property message 'RAW? #f) #f 'FULL-HEADERS)))))
+ (store-property! message 'RAW?
+ (case (get-property message 'RAW? #f)
+ ((#f) 'HEADERS-ONLY)
+ ((HEADERS-ONLY) #f)
+ ((BODY-ONLY) #t)
+ (else 'BODY-ONLY)))
+ (select-message (selected-folder) message #t))))
(define-command imail-toggle-message
"Toggle between standard and raw formats for message."
()
(lambda ()
(let ((message (selected-message)))
- (select-message (selected-folder)
- message
- #t
- (not (get-property message 'RAW? #f))))))
+ (store-property! message 'RAW?
+ (case (get-property message 'RAW? #f)
+ ((#f HEADERS-ONLY) #t)
+ (else #f)))
+ (select-message (selected-folder) message #t))))
(define-command imail-get-new-mail
"Probe the mail server for new mail.
\f
;;;; Message selection
-(define (select-message folder selector #!optional force? raw?)
+(define (select-message folder selector #!optional force?)
(let ((buffer (imail-folder->buffer folder #t))
(message
(cond ((message? selector)
(with-read-only-defeated mark
(lambda ()
(if message
- (begin
- (store-property! message 'RAW?
- (if (default-object? raw?) #f raw?))
- (insert-message message #f 0 mark))
+ (insert-message message #f 0 mark)
(insert-string "[This folder has no messages in it.]"
mark))))
(mark-temporary! mark))
(define (insert-message message inline-only? left-margin mark)
(let ((raw? (get-property message 'RAW? #f)))
- (insert-header-fields message raw? mark)
- (cond ((and raw? (not (eq? raw? 'FULL-HEADERS)))
+ (insert-header-fields message (and raw? (not (eq? raw? 'BODY-ONLY))) mark)
+ (cond ((and raw? (not (eq? raw? 'HEADERS-ONLY)))
(insert-message-body message mark))
((folder-supports-mime? (message-folder message))
(insert-mime-message-body message mark inline-only? left-margin))
IMAIL To-Do List
-$Id: todo.txt,v 1.116 2001/04/15 20:25:08 cph Exp $
+$Id: todo.txt,v 1.117 2001/04/15 20:59:02 cph Exp $
Bug fixes
---------
-* M-x imail-toggle-header should not change other aspects of the
- message presentation; it should toggle only the headers. Currently
- it also affects the RAW/formatted flag too.
-
* When network connection gets wedged, Edwin locks up and can't be
interrupted with C-g. This is fundamentally an Edwin problem, but
it occurs much more frequently with IMAIL. See if there's a better