;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.223 2000/12/16 06:12:42 cph Exp $
+;;; $Id: imail-top.scm,v 1.224 2000/12/21 04:21:36 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(open-folder
(if url-string
(imail-parse-partial-url url-string)
- (imail-default-url)))))
+ (imail-default-url #f)))))
(let ((buffer (imail-folder->buffer folder #f)))
(if buffer
(begin
(imail-parse-partial-url (car history))))))
(and (url? url)
url))))
- (imail-default-url))
+ (imail-default-url #f))
(url-base-name (imail-parse-partial-url from)))
'HISTORY 'IMAIL-COPY-FOLDER-TARGET))))
(lambda (from to)
\f
;;;; URLs
-(define (imail-default-url)
+(define (imail-default-url protocol)
(let ((primary-folder (ref-variable imail-primary-folder #f)))
(if primary-folder
(imail-parse-partial-url primary-folder)
(default
(cond ((string? default) default)
((url? default) (url->string default))
- ((not default) (url-container-string (imail-default-url)))
+ ((not default) (url-container-string (imail-default-url #f)))
(else (error "Illegal default:" default)))))
(let ((history (get-option 'HISTORY)))
(if (null? (prompt-history-strings history))
(imail-mode-line-summary-string buffer)
buffer)
(if (and (ref-variable imail-global-mail-notification buffer)
- (eq? (folder-url folder) (imail-default-url)))
+ (eq? (folder-url folder) (imail-default-url "imap")))
(begin
(set-variable! global-mode-string
(if (> (count-unseen-messages folder) 0)