Merge remote-tracking branch 'origin/topic/jazoff/gh-3268t '

* origin/topic/jazoff/gh-3268:
  Fix check for emailed notices

Changes: Added a test-case printing email_delay_tokens to compare email vs
non-email notice types. Previously, both notice types would have email
delay tokens at that point in the flow.

(cherry picked from commit 7e11501d3c)
This commit is contained in:
Arne Welzel 2023-09-04 14:00:37 +02:00 committed by Tim Wojtulewicz
parent 8507d58141
commit fe9c7d4191
3 changed files with 47 additions and 1 deletions

View file

@ -20,7 +20,7 @@ hook notice(n: Notice::Info) &priority=-1
return;
# This should only be done for notices that are being sent to email.
if ( ! n?$email_dest )
if ( |n$email_dest| == 0 )
return;
# I'm not recovering gracefully from the when statements because I want