;;; -*-Scheme-*-
;;;
-;;; $Id: imail-core.scm,v 1.64 2000/05/17 17:00:43 cph Exp $
+;;; $Id: imail-core.scm,v 1.65 2000/05/17 17:30:54 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(%get-message folder index))
(define-generic %get-message (folder index))
-
+\f
;; -------------------------------------------------------------------
;; Remove all messages in FOLDER that are marked for deletion.
;; Unspecified result.
;; reload contents from the persistent folder.
(define-generic discard-folder-cache (folder))
+
+;; -------------------------------------------------------------------
+;; Probe FOLDER's server for changes. Useful as a check for new mail.
+
+(define-generic probe-folder (folder))
\f
;;;; Message type
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-file.scm,v 1.26 2000/05/17 17:18:19 cph Exp $
+;;; $Id: imail-file.scm,v 1.27 2000/05/17 17:30:58 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(loop))))))
(define-method discard-folder-cache ((folder <file-folder>))
- (close-folder folder))
\ No newline at end of file
+ (close-folder folder))
+
+(define-method probe-folder ((folder <file-folder>))
+ folder
+ unspecific)
\ No newline at end of file
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-imap.scm,v 1.50 2000/05/17 16:23:29 cph Exp $
+;;; $Id: imail-imap.scm,v 1.51 2000/05/17 17:30:59 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define-method discard-folder-cache ((folder <imap-folder>))
(close-imap-connection (imap-folder-connection folder))
(reset-imap-folder! folder))
+
+(define-method probe-folder ((folder <imap-folder>))
+ (guarantee-imap-folder-open folder)
+ (imap:command:noop (imap-folder-connection folder)))
\f
;;;; IMAP command invocation