You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code worked a few days ago when I was running an older version of mailListener. I decided to run npm update yesterday. I'm not sure what version it was but it was probably about 6 months old. I tried to downgrade but I didn't see any older releases.
Using Node v19.7.0
mailListener.on("mail", async function (mail, seqno, attributes) {
mailListener.imap.move(attributes.uid, "INBOX/Folder/here");
}
The "attributes" variable is null when trying to access the uid variable so I can move the email to another folder.
Any ideas on what I can troubleshoot?
The text was updated successfully, but these errors were encountered:
When running my code against an mailbox with existing mail, I'm getting the "emitting mail" message without any attrs. I think this has to be some sort of synchronicity issue where the 'attributes' event gets fired after 'body' does.
This is further reinforced by the fact that if I put some breakpoints in the mail-listener5 index.js file to manually slow things down, I will get the attributes variable.
Hello,
My code worked a few days ago when I was running an older version of mailListener. I decided to run npm update yesterday. I'm not sure what version it was but it was probably about 6 months old. I tried to downgrade but I didn't see any older releases.
Using Node v19.7.0
The "attributes" variable is null when trying to access the uid variable so I can move the email to another folder.
Any ideas on what I can troubleshoot?
The text was updated successfully, but these errors were encountered: