#| -*-Scheme-*-
-$Id: imail-rmail.scm,v 1.79 2008/08/31 23:02:17 riastradh Exp $
+$Id: imail-rmail.scm,v 1.80 2009/05/01 12:47:08 riastradh Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(define (write-rmail-attributes-line message formatted? port)
(write-char (if formatted? #\1 #\0) port)
(write-char #\, port)
- (call-with-values (lambda () (flags->rmail-markers (message-flags message)))
- (lambda (attributes labels)
- (let ((write-markers
- (lambda (markers)
- (for-each (lambda (marker)
- (write-char #\space port)
- (write-string marker port)
- (write-char #\, port))
- markers))))
- (write-markers attributes)
- (write-char #\, port)
- (write-markers labels))))
+ (receive (attributes labels)
+ (flags->rmail-markers (message-permanent-flags message))
+ (let ((write-markers
+ (lambda (markers)
+ (for-each (lambda (marker)
+ (write-char #\space port)
+ (write-string marker port)
+ (write-char #\, port))
+ markers))))
+ (write-markers attributes)
+ (write-char #\, port)
+ (write-markers labels)))
(newline port))
\f
;;;; Attributes and labels