@mcu
Thank you very much again. The script to inform me about awaited email was received looks really easier nowhere:
on({id: [].concat(['imap.0.xxxx_xxxx_xxxx_xxx.email.email_01.uid']), change: "ne"}, async function (obj) {
let value = obj.state.val;
let oldValue = obj.oldState.val;
if((getState("imap.0.xxxx_xxxx_xxxx_xxx.email.email_01.subject").val).indexOf("XXXYYYZZZ") != -1)
{
sendTo("gsmsms.0", "send", {text:`${getState("imap.0.xxxx_xxxx_xxxx_xxx.email.email_01.subject").val}`,recipient:'+XXXXXXXXXXXXXX', alert:false});
};
});