# Node-red-node-email (get) not dedected by Complete node

**URL:** <https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129>\
**Category:** General\
**Created:** [9 January 2020 17:19 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129 "2020-01-09T17:19:35Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![DamianosS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/damianoss/32/16990_2.png) [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Post date:** [9 January 2020 17:19 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/1 "2020-01-09T17:19:36Z")

</div>

Node Red v1.0.2 running on Homematic ([https://github.com/rdmtc/RedMatic](https://github.com/rdmtc/RedMatic))

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](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?

Thanks, Damianos

---

<div class="post-metadata">

**Author:** ![DamianosS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/damianoss/32/16990_2.png) [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Post date:** [15 January 2020 15:18 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/2 "2020-01-15T15:18:51Z")

</div>

BTW - any returned status when activity was completed (even when no email was fetched) would be helpful.

Thanks!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 January 2020 16:00 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/3 "2020-01-15T16:00:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 January 2020 16:37 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/4 "2020-01-15T16:37:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DamianosS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/damianoss/32/16990_2.png) [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Post date:** [15 January 2020 17:07 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/5 "2020-01-15T17:07:50Z")

</div>

It is 1.7.4. maybe I'm doing something wrong?  
Could you give it a try?

---

<div class="post-metadata">

**Author:** ![DamianosS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/damianoss/32/16990_2.png) [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Post date:** [15 January 2020 17:09 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/6 "2020-01-15T17:09:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DamianosS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/damianoss/32/16990_2.png) [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Post date:** [15 January 2020 17:11 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/7 "2020-01-15T17:11:53Z")

</div>

The "email in" node has two states "connecting" and "fetching". If done with either of them it should return done() imho.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 January 2020 17:28 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/8 "2020-01-15T17:28:46Z")

</div>

I think @dceejay would have to comment on this.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 January 2020 17:29 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/9 "2020-01-15T17:29:19Z")

</div>

> [@DamianosS](#):
>
> sometimes the node hangs in "connecting"

I would class that as a bug I think.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 January 2020 17:34 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/10 "2020-01-15T17:34:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DamianosS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/damianoss/32/16990_2.png) [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Post date:** [15 January 2020 18:08 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/11 "2020-01-15T18:08:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 January 2020 18:12 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/12 "2020-01-15T18:12:09Z")

</div>

@DamianosS my apologies. Everything I wrote was based on the fact I forgot we added an Input to the Email In node so it could be triggered in a flow.

So yes, if triggered, it should be calling `done` once it has checked for mail. Please raise an issue so we can fix that.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [15 January 2020 19:00 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/13 "2020-01-15T19:00:22Z")

</div>

Really ? So if self triggered it doesn’t send done and if externally it does ? The node already has status and an output.

---

<div class="post-metadata">

**Author:** ![ilexpl01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ilexpl01/32/56754_2.png) [@ilexpl01](https://discourse.nodered.org/u/ilexpl01)\
**Post date:** [13 May 2022 11:20 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/14 "2022-05-13T11:20:14Z")

</div>

Hi. I know that this case is pretty old but I have the same issue.

Mail-in node does not trigger complete node once it is finished.

Is there any workaround for that ?

---

<div class="post-metadata">

**Author:** ![DamianosS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/damianoss/32/16990_2.png) [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Post date:** [19 July 2022 10:54 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/15 "2022-07-19T10:54:20Z")

</div>

Sorry, @ilexpl01, just saw your message.

I don't know, I do not use the email node any more. For messaging I switched to the node-red-contrib-telegrambot-home.

Best -  
Damos

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 July 2022 12:00 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/16 "2022-07-19T12:00:23Z")

</div>

@ilexpl01 Version 1.17.0 should now support this

---

<div class="post-metadata">

**Author:** ![ilexpl01](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ilexpl01/32/56754_2.png) [@ilexpl01](https://discourse.nodered.org/u/ilexpl01)\
**Post date:** [20 July 2022 20:01 UTC](https://discourse.nodered.org/t/node-red-node-email-get-not-dedected-by-complete-node/20129/17 "2022-07-20T20:01:20Z")

</div>

I do confirm: it does work under version 1.17.0 - thank You a lot !
