;;; -*-Scheme-*-
;;;
-;;; $Id: imail-file.scm,v 1.53 2000/07/05 19:13:11 cph Exp $
+;;; $Id: imail-file.scm,v 1.54 2000/07/05 19:16:55 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define (pathname->url-body pathname)
(case (host/type-name (pathname-host pathname))
((UNIX)
- (let ((string (->namestring pathname)))
- (if (pathname-absolute? pathname)
- (string-append "//localhost" string)
- string)))
+ (->namestring pathname))
((DOS)
(let ((string (string-replace (->namestring pathname) #\\ #\/)))
- (cond ((pathname-device pathname)
- (string-append "//localhost/" string))
- ((pathname-absolute? pathname)
- (string-append "//localhost" string))
- (else string))))
+ (if (pathname-device pathname)
+ (string-append "/" string)
+ string)))
(else (error "Unknown host type:" pathname))))
(define (parse-file-url-body string default-pathname)
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-rmail.scm,v 1.47 2000/06/30 02:59:55 cph Exp $
+;;; $Id: imail-rmail.scm,v 1.48 2000/07/05 19:13:12 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(intern-url (constructor (merge-pathnames pathname))))))
(define-method parse-url-body ((string <string>) (default-url <rmail-url>))
- (make-rmail-url (merge-pathnames string (file-url-pathname default-url))))
+ (make-rmail-url
+ (parse-file-url-body string (file-url-pathname default-url))))
(define-method make-peer-url ((url <rmail-url>) name)
(make-rmail-url
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-umail.scm,v 1.36 2000/06/30 02:59:57 cph Exp $
+;;; $Id: imail-umail.scm,v 1.37 2000/07/05 19:13:13 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(intern-url (constructor (merge-pathnames pathname))))))
(define-method parse-url-body ((string <string>) (default-url <umail-url>))
- (make-umail-url (merge-pathnames string (file-url-pathname default-url))))
+ (make-umail-url
+ (parse-file-url-body string (file-url-pathname default-url))))
(define-method make-peer-url ((url <umail-url>) name)
(make-umail-url
IMAIL To-Do List
-$Id: todo.txt,v 1.109 2000/07/02 05:09:07 cph Exp $
+$Id: todo.txt,v 1.110 2000/07/05 19:17:58 cph Exp $
Bug fixes
---------
* Try to leverage IMAP MIME parser by building compatible
interface for file-based folders.
-
-* Change file URLs to follow specification in RFC1738, which requires
- the use of forward slashes and encoding. Take advantage of relative
- URLs as specified in RFC1808. Maybe change URL representation to
- have a heirarchical path structure so that we can write MERGE-URLS.