Link reminders module.

This commit is contained in:
Dominik Pantůček 2023-04-10 21:46:49 +02:00
parent da82efa356
commit 3351f62e88
2 changed files with 14 additions and 2 deletions

View file

@ -50,7 +50,13 @@
;; Prints email to the console
(define (print-reminder-email em)
(print em))
(print "### From: " (ldict-ref em 'from "-"))
(print "### To: " (ldict-ref em 'to))
(print "### Subject: " (ldict-ref em 'subject))
(let loop ((lines (ldict-ref em 'body)))
(when (not (null? lines))
(print (car lines))
(loop (cdr lines)))))
;; Creates and prints reminder email for given member record
(define (make+print-reminder-email mr)