;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.29 2000/04/18 21:20:00 cph Exp $
+;;; $Id: imail-core.scm,v 1.30 2000/04/23 04:02:38 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define url-protocol-parsers
(make-string-hash-table))
+
+(define-generic url-user-id (url))
+(define-method url-user-id ((url <url>)) url #f)
\f
(define (get-memoized-folder url)
(let ((folder (hash-table/get memoized-folders url #f)))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.20 2000/04/14 01:45:39 cph Exp $
+;;; $Id: imail-top.scm,v 1.21 2000/04/23 04:02:48 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define (imail-authenticator url)
(let ((user-name
- (or (ref-variable imail-user-name)
+ (or (url-user-id url)
+ (ref-variable imail-user-name)
(current-user-name))))
(values user-name
(call-with-pass-phrase