# Count number of unread emails

**URL:** https://discourse.nodered.org/t/count-number-of-unread-emails/76461
**Category:** General
**Created:** [12 March 2023 09:28 UTC](https://discourse.nodered.org/t/count-number-of-unread-emails/76461 "2023-03-12T09:28:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![stephan1827](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@stephan1827](https://discourse.nodered.org/u/stephan1827)
#### Post date: [12 March 2023 09:28 UTC](https://discourse.nodered.org/t/count-number-of-unread-emails/76461/1 "2023-03-12T09:28:38Z")

</div>

I have a node red script that fetches emails and saves the attachment. But now I just need an output that tells if there is a new email or not. I don't need the complete payload from the email. Is there an easy way to do this?

Thx

Stephan

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [12 March 2023 10:53 UTC](https://discourse.nodered.org/t/count-number-of-unread-emails/76461/2 "2023-03-12T10:53:37Z")

</div>

Have you looked at `node-red-node-emai`l? maybe the `email MTA` will do what you want.

---

<div class="post-metadata">

### Author: ![stephan1827](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@stephan1827](https://discourse.nodered.org/u/stephan1827)
#### Post date: [13 March 2023 08:20 UTC](https://discourse.nodered.org/t/count-number-of-unread-emails/76461/3 "2023-03-13T08:20:21Z")

</div>

Thx for the quick reply, I will give that a try

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [12 May 2023 08:20 UTC](https://discourse.nodered.org/t/count-number-of-unread-emails/76461/4 "2023-05-12T08:20:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
