# Odd status text from e-mail and mqtt nodes

**URL:** <https://discourse.nodered.org/t/odd-status-text-from-e-mail-and-mqtt-nodes/14622>\
**Category:** General\
**Created:** [21 August 2019 22:24 UTC](https://discourse.nodered.org/t/odd-status-text-from-e-mail-and-mqtt-nodes/14622 "2019-08-21T22:24:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [21 August 2019 22:24 UTC](https://discourse.nodered.org/t/odd-status-text-from-e-mail-and-mqtt-nodes/14622/1 "2019-08-21T22:24:22Z")

</div>

I have been re-factoring some of my flows to make better use of node status messages and have run into a few quirks and possible bugs. I will try to post about them over the next few days. Here is the first.

19 Aug 19:30:10 - [info] Node-RED version: v0.20.6  
19 Aug 19:30:10 - [info] Node.js version: v8.11.2  
19 Aug 19:30:10 - [info] Darwin 18.7.0 x64 LE

With this flow,

```auto
[{"id":"f6acdf91.d5683","type":"status","z":"d141e924.5365a8","name":"status:mqtt","scope":["8b571501.8e06c","56474d5.75b57b4"],"x":270,"y":100,"wires":[["4aef2ae4.569564"]]},{"id":"4aef2ae4.569564","type":"debug","z":"d141e924.5365a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"status","targetType":"msg","x":450,"y":100,"wires":[]},{"id":"56474d5.75b57b4","type":"mqtt out","z":"d141e924.5365a8","name":"","topic":"","qos":"","retain":"","broker":"74015cbe.beb164","x":110,"y":60,"wires":[]},{"id":"4f2b7cdb.58c2fc","type":"e-mail in","z":"d141e924.5365a8","name":"","protocol":"IMAP","server":"imap.gmail.com","useSSL":true,"port":"993","box":"INBOX","disposition":"Read","criteria":"UNSEEN","repeat":"300","fetch":"auto","inputs":0,"x":110,"y":220,"wires":[[]]},{"id":"c0636354.a988b","type":"status","z":"d141e924.5365a8","name":"status:email","scope":["4f2b7cdb.58c2fc"],"x":270,"y":220,"wires":[["56c02f7a.076c88"]]},{"id":"56c02f7a.076c88","type":"debug","z":"d141e924.5365a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"status","targetType":"msg","x":450,"y":220,"wires":[]},{"id":"8b571501.8e06c","type":"mqtt in","z":"d141e924.5365a8","name":"","topic":"/","qos":"2","datatype":"auto","broker":"74015cbe.beb164","x":110,"y":140,"wires":[[]]},{"id":"74015cbe.beb164","type":"mqtt-broker","z":"","name":"","broker":"test","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""}]

```

on startup or restart, the `e-mail` and `mqtt` nodes display the correct status in the editor, but the `status` node connected to the `e-mail` node receives the status text  
"email.status.connecterror", and the one connected to the `mqtt` nodes receives "node-red:common.status.connecting". I suspect this comes from a problem in retrieving the proper strings from a lookup, and the developers will know exactly where to look.😀

---

<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:** [21 August 2019 22:42 UTC](https://discourse.nodered.org/t/odd-status-text-from-e-mail-and-mqtt-nodes/14622/2 "2019-08-21T22:42:49Z")

</div>

You are right to say they are message catalog identifiers but that is not a bug.

If you have a flow that checks the status value, you wouldn't want it to have to check the value in japanese, german or chinese depending on what locale you happened to be running in.

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [21 August 2019 23:04 UTC](https://discourse.nodered.org/t/odd-status-text-from-e-mail-and-mqtt-nodes/14622/3 "2019-08-21T23:04:20Z")

</div>

> [@knolleary](#):
>
> you wouldn't want it to have to check the value in japanese

I guess that makes sense. Still, it's a bit strange to see the editor display "connecting" but having to translate from "node-red:common.status.connecting" in order to display in the dashboard. Is there a way to do the lookup in a `function` or `change` node?
