registrar

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 1f817cdae36c4e4000bf0ffb59ec0dbb31038ae0
parent bb4bba79ddc930d7f2616a8485392c1f5fc1a6b4
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date:   Tue,  6 Jun 2023 15:22:17 -0300

birthdays: Add logic to send the message

Diffstat:
Mbirthdays/birthday.fish | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/birthdays/birthday.fish b/birthdays/birthday.fish @@ -41,10 +41,18 @@ set DAY (string trim -l -c '0' $day) set DATE "The $DAY$DATEORD of $MONTH of $year" set DATELEN (string length "$DATE") set DATEPAD (repeat (math "floor(($WIDTH - $DATELEN)/2)") " ") -echo $DATEPAD +set tmp (mktemp) +begin +echo 'Date: '(date -R) +echo 'From: juan <juan@juanmeleiro.mat.br>' +echo 'To: <agora-official@agoranomic.org>' +echo 'Subject: [Registrar] Birthday Announcement' m4 --define=DATE="$DATEPAD$DATE" \ --define=PLAYER="$name" \ --define=COUNT="$COUNT$COUNTORD" \ template +end > $tmp +neomutt -E -H $tmp +rm $tmp