;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.84 2000/05/22 19:44:44 cph Exp $
+;;; $Id: imail-core.scm,v 1.85 2000/05/22 19:49:50 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
;; of the folder must work, but may incur a significant time or space
;; penalty.
-(define-generic close-folder (folder))
+(define (close-folder folder)
+ (save-folder folder)
+ (%close-folder folder))
+
+(define-generic %close-folder (folder))
;; -------------------------------------------------------------------
;; Return the number of messages in FOLDER.
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-file.scm,v 1.34 2000/05/22 03:44:22 cph Exp $
+;;; $Id: imail-file.scm,v 1.35 2000/05/22 19:49:55 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define (file-folder-pathname folder)
(file-url-pathname (folder-url folder)))
-(define-method close-folder ((folder <file-folder>))
+(define-method %close-folder ((folder <file-folder>))
(without-interrupts
(lambda ()
(let ((messages (%file-folder-messages folder)))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-imap.scm,v 1.73 2000/05/22 19:43:47 cph Exp $
+;;; $Id: imail-imap.scm,v 1.74 2000/05/22 19:49:57 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(set-imap-connection-folder! connection #f))
#t))))
-(define-method close-folder ((folder <imap-folder>))
+(define-method %close-folder ((folder <imap-folder>))
(maybe-close-imap-connection (imap-folder-connection folder))
(set-imap-connection-folder! connection #f))