I have discovered that the node-red-node-email (get) does not provide complete status according to https://nodered.org/blog/2019/09/20/node-done. A subsequent node triggered by node-red-node-email (when an email is successfully fetched) can be caught by the complete node.
Would it be possible to enhance the node with this feature?
I haven't tried it but I thought that node-red-node-email had been updated for catching by the Complete node. Which version of that node are you using? Look in the Manage Palette in the menu. The current version is 1.7.4 I believe.
Are you talking about the email In node or the Out node? The done event signals that the node has finished actioning a message that it is given. Since the In node is not given a message it can't say when it has finished with it.
email in. Actually, the reason why I need this is because sometimes the node hangs in "connecting" without returning. So, I'm considering checking a timeout or so.
The Complete node is used to indicate when a node has finished handling a message it has received (NR message, not email message...).
The Email In node generates messages, it doesn't consume them. There is no point in time at which it has finished handling a received message. So it wouldn't make sense for it to trigger a Complete node.
Nick, if the email in node is triggered automatically, you are right, there is no incoming message. But, if triggered, there is.
However, maybe my understanding of when a node is done is wrong. I’d assume, „when a node has finished its task“, no matter how it is triggered.
For the email in node
the activity starts when triggered (either by itself or triggered)
connecting
fetching
if email exists
loading the content
else
no content
done()
Just my view - maybe I’m not seeing it the right way.