;;; -*-Scheme-*-
;;;
-;;; $Id: imail-file.scm,v 1.45 2000/06/19 05:00:49 cph Exp $
+;;; $Id: imail-file.scm,v 1.46 2000/06/20 19:47:05 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define-method url-exists? ((url <file-url>))
(file-exists? (file-url-pathname url)))
-(define (define-file-url-completers class filter)
+(define (define-file-url-completers class)
(define-method %url-complete-string
((string <string>) (default-url class)
if-unique if-not-unique if-not-found)
(pathname-complete-string
(merge-pathnames string (file-url-pathname default-url))
- filter
+ (lambda (pathname) pathname #t)
(lambda (string)
(if-unique (->namestring string)))
(lambda (prefix get-completions)
(map ->namestring
(pathname-completions-list
(merge-pathnames string (file-url-pathname default-url))
- filter))))
-
-(define ((file-type-filter type) pathname)
- (let ((type* (pathname-type pathname)))
- (and type*
- (string=? type* type))))
+ (lambda (pathname) pathname #t)))))
;;;; Server operations
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-rmail.scm,v 1.41 2000/06/19 05:00:51 cph Exp $
+;;; $Id: imail-rmail.scm,v 1.42 2000/06/20 19:47:01 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define-class <rmail-url> (<file-url>))
(define-url-protocol "rmail" <rmail-url>)
+(define-file-url-completers <rmail-url>)
(define make-rmail-url
(let ((constructor (instance-constructor <rmail-url> '(PATHNAME))))
(merge-pathnames (pathname-default-type name "rmail")
(directory-pathname (file-url-pathname url)))))
-(define-file-url-completers <rmail-url>
- (let ((type-filter (file-type-filter "rmail")))
- (lambda (pathname)
- (or (string-ci=? (file-namestring pathname) "rmail")
- (type-filter pathname)))))
-
;;;; Server operations
(define-method %open-folder ((url <rmail-url>))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-umail.scm,v 1.33 2000/06/19 05:00:53 cph Exp $
+;;; $Id: imail-umail.scm,v 1.34 2000/06/20 19:46:56 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define-class <umail-url> (<file-url>))
(define-url-protocol "umail" <umail-url>)
+(define-file-url-completers <umail-url>)
(define make-umail-url
(let ((constructor (instance-constructor <umail-url> '(PATHNAME))))
(merge-pathnames (pathname-default-type name "mail")
(directory-pathname (file-url-pathname url)))))
-(define-file-url-completers <umail-url>
- (file-type-filter "mail"))
-
;;;; Server operations
(define-method %open-folder ((url <umail-url>))
IMAIL To-Do List
-$Id: todo.txt,v 1.91 2000/06/20 19:44:11 cph Exp $
+$Id: todo.txt,v 1.92 2000/06/20 19:47:15 cph Exp $
Bug fixes
---------
-* Change file URL completion to complete to any file name.
-
* Preserve internal-date when copying to rmail folder from any other
type of folder, by writing a distinguished header field into the
rmail file.