;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.126 2001/05/23 13:46:26 cph Exp $
+;;; $Id: imail-core.scm,v 1.127 2001/05/23 21:20:05 cph Exp $
;;;
;;; Copyright (c) 1999-2001 Massachusetts Institute of Technology
;;;
;; E.g. the container of "imap://localhost/inbox/foo" is
;; "imap://localhost/inbox/" (except that for IMAP folders, the result
;; may be affected by the NAMESPACE prefix information).
-(define-generic url-container (url))
+(define-generic container-url (url))
;; Return a list of URLs referring to the contents of CONTAINER-URL.
;; The result can contain both folder and container URLs.
(define-generic with-open-connection (url thunk))
(define (container-modified! url type . arguments)
- (let ((container (get-memoized-resource (url-container url))))
+ (let ((container (get-memoized-resource (container-url url))))
(if container
(apply object-modified! container type url arguments))))
\f
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-file.scm,v 1.67 2001/05/23 05:05:00 cph Exp $
+;;; $Id: imail-file.scm,v 1.68 2001/05/23 21:20:09 cph Exp $
;;;
;;; Copyright (c) 1999-2001 Massachusetts Institute of Technology
;;;
(define pathname-url-constructors
(make-eq-hash-table))
-(define-method url-container ((url <pathname-url>))
+(define-method container-url ((url <pathname-url>))
(make-directory-url
(directory-pathname
(directory-pathname-as-file (pathname-url-pathname url)))))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-imap.scm,v 1.155 2001/05/23 05:05:08 cph Exp $
+;;; $Id: imail-imap.scm,v 1.156 2001/05/23 21:20:17 cph Exp $
;;;
;;; Copyright (c) 1999-2001 Massachusetts Institute of Technology
;;;
\f
;;;; Container heirarchy
-(define-method url-container ((url <imap-url>))
+(define-method container-url ((url <imap-url>))
(imap-url-new-mailbox
url
(let ((mailbox (imap-url-mailbox url)))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.243 2001/05/23 05:05:26 cph Exp $
+;;; $Id: imail-top.scm,v 1.244 2001/05/23 21:20:28 cph Exp $
;;;
;;; Copyright (c) 1999-2001 Massachusetts Institute of Technology
;;;
'REQUIRE-MATCH? #t)))
(list from
(prompt-for-folder "Rename folder to"
- (url-container (imail-parse-partial-url from))
+ (container-url (imail-parse-partial-url from))
'HISTORY 'IMAIL-RENAME-FOLDER-TARGET))))
(lambda (from to)
(let ((from (imail-parse-partial-url from))
(lambda ()
(imail-parse-partial-url (car history))))))
(and (url? url)
- (url-container url)))))
+ (container-url url)))))
(imail-default-container))
(url-base-name (imail-parse-partial-url from)))
'HISTORY 'IMAIL-COPY-FOLDER-TARGET))))