Answer the question
In order to leave comments, you need to log in
How to parse mail with nodejs?
Colleagues who were engaged in parsing mail and parsing letters, give advice on which way to look.
The bottom line is this: after ordering a service on a third-party site, a letter of a certain type arrives in the mail and you need to pull out the number of this order from it, there are no other adequate methods!
In other words, you need to take the last unread letter from a specific sender and a specific subject (getting his body and parsing is not a problem).
Answer the question
In order to leave comments, you need to log in
I used the library: https://github.com/mscdex/node-imap - connects to the mail via the IMAP protocol and reads everything that is in it.
Yes, Silenium doesn’t need a bot written in puppeteer, you just don’t need to listen to mail, but you need to go into the mailbox on an event and pull out a letter, imap is a normal topic, how I will implement the module I will write a solution, maybe it will come in handy for someone
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question