;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.4 2000/01/13 22:14:48 cph Exp $
+;;; $Id: imail-core.scm,v 1.5 2000/01/14 17:04:03 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(error:wrong-type-argument object "message flag" procedure)))
(define standard-message-flags
- ;; **** Use SEEN rather than UNSEEN?
- '(DELETED ANSWERED UNSEEN FILED FORWARDED EDITED RESENT))
+ '(DELETED ANSWERED SEEN FILED FORWARDED EDITED RESENT))
(define (message-deleted? message)
(message-flagged? message 'DELETED))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-rmail.scm,v 1.3 2000/01/13 22:17:42 cph Exp $
+;;; $Id: imail-rmail.scm,v 1.4 2000/01/14 17:03:57 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(rmail-attribute->flag (car strings))
(rmail-label->flag (car strings)))
flags))
- (reverse! flags))))
+ (reverse!
+ (if (memq 'UNSEEN flags)
+ (delq! 'UNSEEN flags)
+ (cons 'SEEN flags))))))
(define (flags->rmail-markers flags)
- (let loop ((flags flags) (attributes '()) (labels '()))
+ (let loop
+ ((flags (if (memq 'SEEN flags) (delq! 'SEEN flags) (cons 'UNSEEN flags)))
+ (attributes '())
+ (labels '()))
(if (pair? flags)
(if (flag-is-rmail-attribute? (car flags))
(loop (cdr flags)