Implement IMAIL-PRESENT-USER-ALERT.
authorChris Hanson <org/chris-hanson/cph>
Thu, 27 Apr 2000 00:28:09 +0000 (00:28 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 27 Apr 2000 00:28:09 +0000 (00:28 +0000)
v7/src/imail/imail-top.scm

index d94a2d8ee36463e531000b42237a1f1c922a6985..279189857f806e9cc47a84974ae6e2c1dd207bf1 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-top.scm,v 1.22 2000/04/26 18:39:29 cph Exp $
+;;; $Id: imail-top.scm,v 1.23 2000/04/27 00:28:09 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
 ;;;
@@ -110,6 +110,12 @@ May be called with an IMAIL folder URL as argument;
   (or (ref-variable imail-user-name)
       (current-user-name)))
 
+(define (imail-present-user-alert procedure)
+  (call-with-output-to-temporary-buffer " *IMAP alert*"
+                                       '(READ-ONLY SHRINK-WINDOW
+                                                   FLUSH-ON-SPACE)
+                                       procedure))
+
 (define (associate-imail-folder-with-buffer folder buffer)
   (buffer-put! buffer 'IMAIL-FOLDER folder)
   (folder-put! folder 'BUFFER buffer)