commit 13d828bfc864cced9498fef221f2b7d1639d774f
parent 4429fb2666987f2aef61f7d6660ce030ab35929e
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date: Mon, 1 Jun 2026 09:54:27 -0300
Add week number to subject line
This avoids the reports being clumped together under the same thread in
the archives.
Diffstat:
5 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/lib/writ.lua b/lib/writ.lua
@@ -24,7 +24,8 @@ function cantus(args, players, log)
local defs = {
MAILDATE = os.date("%a, %d %b %Y %T %z"),
- NAME = namepad .. args.who,
+ NAME = args.who,
+ PADDEDNAME = namepad .. args.who,
DATE = datepad .. datestring,
FILEPATH = args.cantus,
FULLTEXT = string.format("include(%s)", FILEPATH)
diff --git a/templates/birthday.m4 b/templates/birthday.m4
@@ -1,7 +1,7 @@
Date: MAILDATE
From: juan <juan@juanmeleiro.mat.br>
To: <agora-official@agoranomic.org>
-Subject: [Registrar] Birthday Announcement
+Subject: [Registrar] Birthday Announcement (PLAYER's COUTH)
===============================================================================
`Registrar: juan Birthday Announcement 'esyscmd(date +%Y-%m-%d | tr -d '\n')
===============================================================================
diff --git a/templates/monthly/monthly.m4 b/templates/monthly/monthly.m4
@@ -6,7 +6,7 @@ define(module, shl`$1
include($2)')dnl
Date: MAILDATE
`To: <agora-official@agoranomic.org>'
-`Subject: [Registrar] Monthly report: Arrivals and Departures'
+`Subject: [Registrar] Monthly report: Arrivals and Departures' (YEAR-MONTH))
dhl
`Registrar: juan Arrivals and Departures 'YEAR-MONTH-DAY
dhl
diff --git a/templates/weekly/weekly.m4 b/templates/weekly/weekly.m4
@@ -7,7 +7,7 @@ include($2)')dnl
Date: MAILDATE
`To: <agora-official@agoranomic.org>'
`From: juan <juan@juanmeleiro.mat.br>'
-`Subject: [Registrar] Weekly report'
+`Subject: [Registrar] Weekly report' (esyscmd(`date +%Y-%U'))
dhl
`Registrar: juan The Agoran Directory 'YEAR-MONTH-DAY
dhl
diff --git a/templates/writ.m4 b/templates/writ.m4
@@ -1,7 +1,7 @@
Date: MAILDATE
From: juan <juan@juanmeleiro.mat.br>
To: <agora-official@agoranomic.org>
-Subject: [Registrar] Writ of FAGE
+Subject: [Registrar] Writ of FAGE (NAME)
===============================================================================
`Registrar: juan Writ of FAGE 'esyscmd(date +%Y-%m-%d | tr -d '\n')
===============================================================================
@@ -12,7 +12,7 @@ DATE
the player known as
-NAME
+PADDEDNAME
has submited to me, the Registrar, a