;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.58 2000/05/15 19:17:09 cph Exp $
+;;; $Id: imail-core.scm,v 1.59 2000/05/15 19:20:40 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
;; Create a new folder named URL. Signal an error if the folder
;; already exists or can't be created.
-(define (new-folder url)
- (let ((url (->url url)))
- (if (get-memoized-folder url)
- (error "Folder already exists:" url)
- (memoize-folder (%new-folder url)))))
+(define (create-folder url)
+ (%create-folder (->url url)))
-(define-generic %new-folder (url))
+(define-generic %create-folder (url))
;; -------------------------------------------------------------------
;; Delete the folder named URL. Signal an error if the folder doesn't
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-imap.scm,v 1.36 2000/05/15 19:17:14 cph Exp $
+;;; $Id: imail-imap.scm,v 1.37 2000/05/15 19:20:50 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
\f
;;;; Server operations
-(define-method %new-folder ((url <imap-url>))
+(define-method %create-folder ((url <imap-url>))
???)
(define-method %delete-folder ((url <imap-url>))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-rmail.scm,v 1.26 2000/05/15 19:01:54 cph Exp $
+;;; $Id: imail-rmail.scm,v 1.27 2000/05/15 19:20:55 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(error:bad-range-argument url 'OPEN-FOLDER))
(make-rmail-folder url))
-(define-method %new-folder ((url <rmail-url>))
+(define-method %create-folder ((url <rmail-url>))
(if (file-exists? (file-url-pathname url))
- (error:bad-range-argument url 'NEW-FOLDER))
+ (error:bad-range-argument url 'CREATE-FOLDER))
(let ((folder (make-rmail-folder url)))
(set-file-folder-messages! folder '())
(set-rmail-folder-header-fields!
folder
(compute-rmail-folder-header-fields folder))
- (save-folder folder)
- folder))
+ (save-folder folder)))
;;;; Folder
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-umail.scm,v 1.22 2000/05/15 19:01:57 cph Exp $
+;;; $Id: imail-umail.scm,v 1.23 2000/05/15 19:20:58 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(error:bad-range-argument url 'OPEN-FOLDER))
(make-umail-folder url))
-(define-method %new-folder ((url <umail-url>))
+(define-method %create-folder ((url <umail-url>))
(if (file-exists? (file-url-pathname url))
- (error:bad-range-argument url 'NEW-FOLDER))
+ (error:bad-range-argument url 'CREATE-FOLDER))
(let ((folder (make-umail-folder url)))
(set-file-folder-messages! folder '())
- (save-folder folder)
- folder))
+ (save-folder folder)))
(define (read-umail-file pathname)
(make-umail-folder (make-umail-url pathname)))