From: Chris Hanson Date: Thu, 6 Apr 2000 22:05:53 +0000 (+0000) Subject: Implement the RMAIL-PRIMARY-INBOX-LIST and RMAIL-SPOOL-DIRECTORY X-Git-Tag: 20090517-FFI~4090 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=9f10d09c5ae2143d5cc10373211fbb61876eaab0;p=mit-scheme.git Implement the RMAIL-PRIMARY-INBOX-LIST and RMAIL-SPOOL-DIRECTORY procedures. --- diff --git a/v7/src/imail/imail-rmail.scm b/v7/src/imail/imail-rmail.scm index dcc54ba01..bc95106b4 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.14 2000/04/06 03:25:19 cph Exp $ +;;; $Id: imail-rmail.scm,v 1.15 2000/04/06 22:05:53 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -290,10 +290,17 @@ "RMAIL") (define (rmail-primary-inbox-list) - (error "Unimplemented procedure:" 'RMAIL-PRIMARY-INBOX-LIST)) + (let ((l (variable-value (name->variable 'RMAIL-PRIMARY-INBOX-LIST 'ERROR)))) + (if (null? l) + (os/rmail-primary-inbox-list + (let ((d (os/rmail-spool-directory))) + (if d + (list (string-append d (current-user-name))) + '()))) + l))) (define (rmail-spool-directory) - (error "Unimplemented procedure:" 'RMAIL-SPOOL-DIRECTORY)) + (os/rmail-spool-directory)) (define (read-rmail-inbox folder pathname rename?) (let ((pathname