Код: Выделить всё
#Set currSAFEcount to number of IPs in SAFE list
:local currSAFEcount [/ip firewall address-list print count-only where list=WIN]
:global SAFEcount
#Compare old number of IPs to current in SAFE list
:if ($SAFEcount != $currSAFEcount) do={
:local A1
:foreach address in=[/ip firewall address-list find list=WIN] do={
:set A1 ($A1, [/ip firewall address-list get $address address])
}
:local Name1
:foreach B in=[$A1] do={:set Name1 "$Name1
$B"}
/tool e-mail send to="gmail@gmail.com" subject="Access list WIN change" body="$Name1" start-tls=yes
:set SAFEcount $currSAFEcount
/tool fetch url="https://api.telegram.org/bottoken/sendMessage\?chat_id=-chatid&text=Added address $Name1 to White list"
}
Сообщение приходит только "Added address". Помещать в ковычки $Name1 пробовал.