Good morning.
I am making progresses, but still can't get the feature to work properly:
My Building controller sends an email when an alarm is triggered or cleared.
It is sending an alarm to a gmail account
Subject for that email is: +336xxxxx32 which is the number to which the email is supposed to be forwarded
Note: RUT would not send SMS for numbers starting by 00336xxxxxx don't know why.
RUT is fetching emails every minute or so
email are sent, say, 2 minutes apart: 1st alarm message is followed by a ''alarm cleared'' message after 2 minutes
Only the first email get sent out. The follwoing one doesn"t go through
I noticed that on the gmail account, the mail do not get the ''read status'', they remain ''unseen'' (when the wiki stipulates that message would get cleared ...)
I created a Node Red flow which is also fetching emails from that same account and found out that subject is OK, it only contains the phone number (+336xxxx) that is supposed to get the SMS (the flow doesn't change anything on the mail)
This message would not get transfered as a SMS:
+336xxxxxxx2 : msg : Object
object
payload: string
De: Audit_Case
Pt: Test alarme in Trane Audit Case V4 02 03 2020
Alm: On
Desc: Returned To Normal
A: 04 May 2020 08:56:57 CEST
topic: "+336xxxxxxxx2"
date: "2020-05-04T06:57:25.000Z"
header: object
return-path: object
value: array[1]
html: "<span class="mp_address_group"><a href="mailto:jlmxyztu88@gmail.com" class="mp_address_email">jlmxyztu88@gmail.com</a></span>"
text: "jlmxyztu88@gmail.com"
received: "from smtp.gmail.com (pop.92-184-124-30.mobile.abo.orange.fr. [92.184.124.30]) by smtp.gmail.com with ESMTPSA id j22sm17749557wre.84.2020.05.03.23.57.25 for <jlmxyztu88@gmail.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 May 2020 23:57:25 -0700 (PDT)"
message-id: "<5eafbcd5.1c69fb81.dda7f.0704@mx.google.com>"
date: "2020-05-04T06:57:25.000Z"
x-google-original-date: "Date: Mon, May 04 2020 08:57:08 CEST"
from: object
value: array[1]
0: object
address: "jlmxyztu88@gmail.com"
name: ""
html: "<span class="mp_address_group"><a href="mailto:jlmxyztu88@gmail.com" class="mp_address_email">jlmxyztu88@gmail.com</a></span>"
text: "jlmxyztu88@gmail.com"
to: object
value: array[1]
0: object
address: "jlmxyztu88@gmail.com"
name: ""
html: "<span class="mp_address_group"><a href="mailto:jlmxyztu88@gmail.com" class="mp_address_email">jlmxyztu88@gmail.com</a></span>"
text: "jlmxyztu88@gmail.com"
subject: "+336xxxxxxxx2"
content-type: object
value: "text/plain"
params: object
charset: "UTF-8"
from: "jlmxyztu88@gmail.com"
attachments: array[0]
_msgid: "3180f8de.2612a8"
when this one gets sent as a SMS:
+336xxxxxxxx2 : msg : Object
object
payload: string
De: Audit_Case
Pt: Test alarme in Trane Audit Case V4 02 03 2020
Alm: Off
Desc: In Alarm
A: 04 May 2020 08:58:56 CEST
topic: "+336xxxxxxxx2"
date: "2020-05-04T06:59:24.000Z"
header: object
return-path: object
value: array[1]
0: object
address: "jlmxyztu88@gmail.com"
name: ""
html: "<span class="mp_address_group"><a href="mailto:jlmxyztu88@gmail.com" class="mp_address_email">jlmxyztu88@gmail.com</a></span>"
text: "jlmxyztu88@gmail.com"
received: "from smtp.gmail.com (pop.92-184-124-30.mobile.abo.orange.fr. [92.184.124.30]) by smtp.gmail.com with ESMTPSA id s8sm16818958wru.38.2020.05.03.23.59.24 for <jlmxyztu88@gmail.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 May 2020 23:59:24 -0700 (PDT)"
message-id: "<5eafbd4c.1c69fb81.80dc.dd50@mx.google.com>"
date: "2020-05-04T06:59:24.000Z"
x-google-original-date: "Date: Mon, May 04 2020 08:59:07 CEST"
from: object
value: array[1]
0: object
address: "jlmxyztu88@gmail.com"
name: ""
html: "<span class="mp_address_group"><a href="mailto:jlmxyztu88@gmail.com" class="mp_address_email">jlmxyztu88@gmail.com</a></span>"
text: "jlmxyztu88@gmail.com"
to: object
value: array[1]
0: object
address: "jlmxyztu88@gmail.com"
name: ""
html: "<span class="mp_address_group"><a href="mailto:jlmxyztu88@gmail.com" class="mp_address_email">jlmxyztu88@gmail.com</a></span>"
text: "jlmxyztu88@gmail.com"
subject: "+336xxxxxxxx2"
content-type: object
value: "text/plain"
params: object
charset: "UTF-8"
from: "jlmxyztu88@gmail.com"
attachments: array[0]
_msgid: "fcf38355.4e49b"
I can't figure out w<hat is wrong with the setup. The mail topic seems consistent from one message to the next
Thanks for your support
JL