email from timer

Mark Klein <[email protected]> Tue, 27 Mar 2007 13:42:05 -0400
Newsgroups gmane.lisp.cl-http
Message-ID <p06100500c22f07eaf5c6@[10.0.1.2]>
I'd like to have a periodic process that sends email if certain 
conditions are met, but when I try the following

(defun start-watching (&optional (period 600))
   (labels ((check  ()
                   (when <conditions-are-met>
                         (WWW-UTILS:SEND-MAIL-FROM  ...))))
     (setq *watch-process* (mp:make-named-timer "Watcher" #'check))
     (mp:schedule-timer-relative *watch-process* 0 period)))

I get the error "PROCESS-WAIT when scheduling not allowed" whenever 
send-mail-from is invoked from within "check". Perhaps send-mail-from 
does some scheduling itself, but that is not allowed from within the 
context of a scheduled function?

What can I do to fix this?

     Thanks,

	Mark


-- 
Mark Klein
Principal Research Scientist
Massachusetts Institute of Technology
77 Massachusetts Avenue, NE20-336
Cambridge MA 02139 USA
[email protected]
http://cci.mit.edu/klein/

_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl