Compare commits

..

3 commits

Author SHA1 Message Date
Christian Hesse
32c3f60db4 sms-forward: mark every message with an envelope 2025-11-24 13:18:09 +01:00
Christian Hesse
a943668d66 check-certificates: show lock-with-ink-pen symbol in notification...
... also for warning, but of course keep the warning sign.
2025-11-24 12:21:38 +01:00
Christian Hesse
ce775b8c16 contrib/notification: increase font size for heading 2025-11-24 11:07:49 +01:00
3 changed files with 4 additions and 4 deletions

View file

@ -231,7 +231,7 @@
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ]; :local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
$SendNotification2 ({ origin=$ScriptName; \ $SendNotification2 ({ origin=$ScriptName; \
subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \ subject=([ $SymbolForNotification "lock-with-ink-pen,warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . [ $FormatInfo $Cert ]) }); message=("A certificate on " . $Identity . " " . $State . ".\n\n" . [ $FormatInfo $Cert ]) });
$LogPrint info $ScriptName ("The certificate '" . ($CertVal->"name") . "' " . $State . \ $LogPrint info $ScriptName ("The certificate '" . ($CertVal->"name") . "' " . $State . \
", it is invalid after " . ($CertVal->"invalid-after") . "."); ", it is invalid after " . ($CertVal->"invalid-after") . ".");

View file

@ -48,7 +48,7 @@ p.foot {
text-align: center; text-align: center;
} }
p.heading { p.heading {
font-size: 120%; font-size: 110%;
margin: 0px; margin: 0px;
font-weight: bold; font-weight: bold;
text-decoration: underline; text-decoration: underline;

View file

@ -68,8 +68,8 @@
$LogPrint warning $ScriptName ("Failed to remove message: " . $Err); $LogPrint warning $ScriptName ("Failed to remove message: " . $Err);
} }
} else={ } else={
:set Messages ($Messages . "\n\nOn " . $SmsVal->"timestamp" . \ :set Messages ($Messages . "\n\n" . [ $SymbolForNotification "incoming-envelope" ] . \
" type " . $SmsVal->"type" . ":\n" . $SmsVal->"message"); "On " . $SmsVal->"timestamp" . " type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
:foreach Hook in=$SmsForwardHooks do={ :foreach Hook in=$SmsForwardHooks do={
:if ($Phone~($Hook->"allowed-number") && ($SmsVal->"message")~($Hook->"match")) do={ :if ($Phone~($Hook->"allowed-number") && ($SmsVal->"message")~($Hook->"match")) do={
:if ([ $ValidateSyntax ($Hook->"command") ] = true) do={ :if ([ $ValidateSyntax ($Hook->"command") ] = true) do={