diff options
author | Christian Hesse <mail@eworm.de> | 2022-11-17 22:13:02 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-11-17 22:13:02 +0100 |
commit | 71d1f2a781ad74d2a0d442c4f833dc19ff54ff3d (patch) | |
tree | 2b61301d353fd449a3a06c7ec26a1e3b0b4422fe /mod | |
parent | 9f02f0433422ce8f51e235aa73d6028542cd2e9c (diff) |
mod/notification-email: convert to array earlier
Diffstat (limited to 'mod')
-rw-r--r-- | mod/notification-email | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/notification-email b/mod/notification-email index bcf0cc6..023c4db 100644 --- a/mod/notification-email +++ b/mod/notification-email @@ -43,7 +43,7 @@ :foreach Id,Message in=$EmailQueue do={ :if ([ :typeof $Message ] = "array" ) do={ - :local Attach [ $EitherOr ($Message->"attach") "" ]; + :local Attach [ :toarray [ $EitherOr ($Message->"attach") "" ] ]; :while ([ /tool/e-mail/get last-status ] = "in-progress") do={ :delay 1s; } /tool/e-mail/send to=($Message->"to") cc=($Message->"cc") subject=($Message->"subject") \ body=($Message->"body") file=$Attach; @@ -55,7 +55,7 @@ :set ($EmailQueue->$Id); :set Wait false; :if (($Message->"remove-attach") = true) do={ - :foreach File in=[ :toarray $Attach ] do={ + :foreach File in=$Attach do={ /file/remove $File; } } |