How can i loop a result of IMAP node when it returns many attachments.
I want to know the extension of one of the attachments.
When i have one attachment i’m able to get the extension using these line:
item.filename = getBinaryData().attachment_0.fileName;
var name= item.filename.slice(-3);
Thanks in advance