From 61c4a72a4ec91f60f30dd58fdf6500e3f0a5eff9 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 18 Jan 2000 22:21:01 +0000 Subject: [PATCH] Add folder properties. --- v7/src/imail/imail-core.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm index c956b909d..98a98d0d5 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.10 2000/01/15 05:24:53 cph Exp $ +;;; $Id: imail-core.scm,v 1.11 2000/01/18 22:21:01 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -207,12 +207,23 @@ ;;;; Folder type -(define-class ()) +(define-class () + (properties define standard + initializer make-1d-table)) (define (guarantee-folder folder procedure) (if (not (folder? folder)) (error:wrong-type-argument folder "IMAIL folder" procedure))) +(define (folder-get folder key default) + (1d-table/get (folder-properties folder) key default)) + +(define (folder-put! folder key datum) + (1d-table/put! (folder-properties folder) key datum)) + +(define (folder-remove! folder key) + (1d-table/remove! (folder-properties folder) key)) + ;; Return the URL of FOLDER. (define-generic folder-url (folder)) -- 2.25.1