;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.69 2000/05/18 03:42:55 cph Exp $
+;;; $Id: imail-core.scm,v 1.70 2000/05/18 03:59:43 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(set-folder-modification-count!
folder
(+ (folder-modification-count folder) 1))))
+ (apply folder-event folder type parameters))
+
+(define (folder-event folder type . parameters)
(event-distributor/invoke! (folder-modification-event folder)
folder
type
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.59 2000/05/18 03:43:06 cph Exp $
+;;; $Id: imail-top.scm,v 1.60 2000/05/18 03:59:29 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(call-with-pass-phrase (string-append "Password for user " user-id
" on host " host)
receiver))
-
-(define (notice-folder-modifications folder)
- (let ((buffer (imail-folder->buffer folder #f)))
- (if buffer
- (imail-update-mode-line! buffer))))
\f
(define (imail-default-url)
(let ((primary-folder (ref-variable imail-primary-folder)))
(buffer-not-modified! buffer)))
(if message
(message-seen message))
- (imail-update-mode-line! buffer)))
+ (folder-event folder 'SELECT-MESSAGE message)))
\f
(define (associate-imail-with-buffer buffer folder message)
(without-interrupts
(and (if (default-object? error?) #t error?)
(error "No selected IMAIL message."))))
\f
-(define (imail-update-mode-line! buffer)
- (local-set-variable! mode-line-process
- (imail-mode-line-summary-string buffer)
- buffer)
- (buffer-modeline-event! buffer 'PROCESS-STATUS))
+(define (notice-folder-modifications folder)
+ (let ((buffer (imail-folder->buffer folder #f)))
+ (if buffer
+ (begin
+ (local-set-variable! mode-line-process
+ (imail-mode-line-summary-string buffer)
+ buffer)
+ (buffer-modeline-event! buffer 'PROCESS-STATUS)))))
(define (imail-mode-line-summary-string buffer)
(let ((message (selected-message #f buffer)))