From 601093c5ee4f22416a4c5b52ae35872ec26b97ec Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 14 Jan 2000 17:04:03 +0000 Subject: [PATCH] Use SEEN rather than UNSEEN as message flag in imail. --- v7/src/imail/imail-core.scm | 5 ++--- v7/src/imail/imail-rmail.scm | 12 +++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm index 7156095e8..8f11570d4 100644 --- a/v7/src/imail/imail-core.scm +++ b/v7/src/imail/imail-core.scm @@ -1,6 +1,6 @@ ;;; -*-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 ;;; @@ -369,8 +369,7 @@ (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)) diff --git a/v7/src/imail/imail-rmail.scm b/v7/src/imail/imail-rmail.scm index 3ddf68726..6d6d7242d 100644 --- a/v7/src/imail/imail-rmail.scm +++ b/v7/src/imail/imail-rmail.scm @@ -1,6 +1,6 @@ ;;; -*-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 ;;; @@ -376,10 +376,16 @@ (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) -- 2.25.1