You use outdated module. The new one has the ability to wait for a mail according to the criteria.
Check if IMAP connection established succesfully
-
I want to make a simple condition, that if connection was completed succesfully, then do next block, otherwise take another credentials from the file and check. I'm a bit confused how to achieve that. Is it possible to get a general success result from each block and use it as a condition, or should I do it some other way?