Better Email Q&A
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Better Email Q&A
That's ALL the headers for that message? There's no To, From, Subject, or Date. That's not a valid email message, unless you didn't copy them all.
But I see from the log that it DID see From and Subject headers. So you just didn't get them all.
But I see from the log that it DID see From and Subject headers. So you just didn't get them all.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Better Email Q&A
Hi,
Full raw source of message attached so that it includes everything
Delivered-To: [email protected]
Received: by 10.107.149.131 with SMTP id x125csp2193483iod;
Tue, 29 Nov 2016 00:28:13 -0800 (PST)
X-Received: by 10.28.20.139 with SMTP id 133mr22647205wmu.9.1480408093791;
Tue, 29 Nov 2016 00:28:13 -0800 (PST)
Return-Path: <[email protected]>
Received: from relayout09-q01.dominioabsoluto.net (relayout09-q01.dominioabsoluto.net. [217.116.26.121])
by mx.google.com with ESMTPS id s17si1490891wme.47.2016.11.29.00.28.13
for <[email protected]>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 29 Nov 2016 00:28:13 -0800 (PST)
Received-SPF: pass (google.com: domain of [email protected] designates 217.116.26.121 as permitted sender) client-ip=217.116.26.121;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [email protected] designates 217.116.26.121 as permitted sender) smtp.mailfrom=[email protected]
Received: from relayout09-redir.dominioabsoluto.net (relayout09-redir.dominioabsoluto.net [217.116.26.126])
by relayout09.dominioabsoluto.net (Postfix) with ESMTP id 3tScBP2gqRzd8XL
for <[email protected]>; Tue, 29 Nov 2016 09:28:13 +0100 (CET)
Received: from [127.0.0.1] (unknown [212.36.84.194])
(Authenticated sender: [email protected])
by relayout09-dsp.dominioabsoluto.net (Postfix) with ESMTPA id 3tScBM2MxLzd8YC
for <[email protected]>; Tue, 29 Nov 2016 09:28:11 +0100 (CET)
Message-ID: <[email protected]>
Date: Tue, 29 Nov 2016 09:28:10 +0100
Subject: IntesisHome Notifications - Set point change
From: IntesisHome Notifications <[email protected]>
Reply-To: [email protected]
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-CTCH-Score: 0.000
X-CTCH-ScoreCust: 0.000
X-PostalOut-Country: IP: 212.36.84.194 | Country: ES
X-PostalOut-Information: AntiSPAM and AntiVIRUS on relayout09
X-PostalOut-MsgID: 3tScBM2MxLzd8YC.A9FF4
X-PostalOut-SpamCheck: no es spam, Unknown
X-PostalOut-From: [email protected]
X-PostalOut-Watermark: 1481012892.69838@ctNc+jCFsykF2XZHGYT2Mw
X-Spam-Status: No
<p>Device name: Lounge</p>
<p>Action: Set point change</=
p>
<p>Current Value: 21.0°C</p>
=20
Full raw source of message attached so that it includes everything
Delivered-To: [email protected]
Received: by 10.107.149.131 with SMTP id x125csp2193483iod;
Tue, 29 Nov 2016 00:28:13 -0800 (PST)
X-Received: by 10.28.20.139 with SMTP id 133mr22647205wmu.9.1480408093791;
Tue, 29 Nov 2016 00:28:13 -0800 (PST)
Return-Path: <[email protected]>
Received: from relayout09-q01.dominioabsoluto.net (relayout09-q01.dominioabsoluto.net. [217.116.26.121])
by mx.google.com with ESMTPS id s17si1490891wme.47.2016.11.29.00.28.13
for <[email protected]>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 29 Nov 2016 00:28:13 -0800 (PST)
Received-SPF: pass (google.com: domain of [email protected] designates 217.116.26.121 as permitted sender) client-ip=217.116.26.121;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [email protected] designates 217.116.26.121 as permitted sender) smtp.mailfrom=[email protected]
Received: from relayout09-redir.dominioabsoluto.net (relayout09-redir.dominioabsoluto.net [217.116.26.126])
by relayout09.dominioabsoluto.net (Postfix) with ESMTP id 3tScBP2gqRzd8XL
for <[email protected]>; Tue, 29 Nov 2016 09:28:13 +0100 (CET)
Received: from [127.0.0.1] (unknown [212.36.84.194])
(Authenticated sender: [email protected])
by relayout09-dsp.dominioabsoluto.net (Postfix) with ESMTPA id 3tScBM2MxLzd8YC
for <[email protected]>; Tue, 29 Nov 2016 09:28:11 +0100 (CET)
Message-ID: <[email protected]>
Date: Tue, 29 Nov 2016 09:28:10 +0100
Subject: IntesisHome Notifications - Set point change
From: IntesisHome Notifications <[email protected]>
Reply-To: [email protected]
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-CTCH-Score: 0.000
X-CTCH-ScoreCust: 0.000
X-PostalOut-Country: IP: 212.36.84.194 | Country: ES
X-PostalOut-Information: AntiSPAM and AntiVIRUS on relayout09
X-PostalOut-MsgID: 3tScBM2MxLzd8YC.A9FF4
X-PostalOut-SpamCheck: no es spam, Unknown
X-PostalOut-From: [email protected]
X-PostalOut-Watermark: 1481012892.69838@ctNc+jCFsykF2XZHGYT2Mw
X-Spam-Status: No
<p>Device name: Lounge</p>
<p>Action: Set point change</=
p>
<p>Current Value: 21.0°C</p>
=20
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Better Email Q&A
Interesting. Still no "To" header. Which, after checking RFC-822 is actually optional. Huh.
OK, new version that handles missing headers fields will be available presently.
Edit: v7.0.2 posted.
OK, new version that handles missing headers fields will be available presently.
Edit: v7.0.2 posted.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Better Email Q&A
That's weird... It's an email from my home aircon, so there isn't much I can do to change it.
Sadly still getting the same error.
Better Email Debug Received Message Subject: IntesisHome Notifications - Set point change
Better Email Debug Received Message From: IntesisHome Notifications <[email protected]>
Better Email Error Error decoding "To:" header: coercing to Unicode: need string or buffer, NoneType found
Better Email Error Error decoding "To:" header: None, error: coercing to Unicode: need string or buffer, NoneType found
Sadly still getting the same error.
Better Email Debug Received Message Subject: IntesisHome Notifications - Set point change
Better Email Debug Received Message From: IntesisHome Notifications <[email protected]>
Better Email Error Error decoding "To:" header: coercing to Unicode: need string or buffer, NoneType found
Better Email Error Error decoding "To:" header: None, error: coercing to Unicode: need string or buffer, NoneType found
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Better Email Q&A
Can you restart the plugin and give me ALL the output.
And other than the error messages in the log, is it working correctly?
And other than the error messages in the log, is it working correctly?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Better Email Q&A
Hi Joe,
Sorry to be a pain, it was working fine so I don't know what has changed. It seem to be running, but the trigger labelled "Lounge - Downstairs AC" should be firing as it should match on the from address. As you can see from the log it doesn't match for some reason.
Thanks,
Pete
Starting plugin "Better Email 7.0.2" (pid 33834)
Better Email Debug logLevel = 10
Started plugin "Better Email 7.0.2"
Better Email Starting Better Email
Better Email Debug updateFrequency = 86400.0
Better Email Debug Jarvis Email: Device Version is up to date
Better Email Debug Starting server: Jarvis Email
Better Email Debug Adding Trigger Location - Automatic Car Update (IFTTT) (1814368987)
Better Email Debug Adding Trigger Location - Chris's iPhone arrived home (IFTTT) (46693833)
Better Email Debug Adding Trigger Location - Chris's iPhone left home (IFTTT) (490708886)
Better Email Debug Adding Trigger Lounge - Downstairs AC (1261190932)
Better Email Debug Adding Trigger Lounge - Person Seen (IFTTT) (1858095945)
Better Email Debug Adding Trigger Main Bathroom - Dryer Emptied (1887404485)
Better Email Checking for updates...
Better Email Debug Plugin version detected: 7.0.2
Better Email Debug Current version is: 7.0.2
Better Email Debug Getting latest release from FlyingDiver/Indigo-BetterEmail...
Better Email Debug GET /repos/FlyingDiver/Indigo-BetterEmail/releases/latest
Better Email Debug HTTP 200 OK
Better Email Debug Latest release is: 7.0.2
Better Email No updates are available
Better Email Debug Polling IMAP Server: Jarvis Email
Better Email Debug Jarvis Email: Doing connect using encryptionType = SSL
Better Email Debug Jarvis Email: Doing checkMsgs
Better Email Debug Jarvis Email: msg_ids = ['']
Better Email Debug Logged out from IMAP server: Jarvis Email
30 Nov. 2016, 12:36:58 pm
Better Email Debug Polling IMAP Server: Jarvis Email
Better Email Debug Jarvis Email: Doing connect using encryptionType = SSL
Better Email Debug Jarvis Email: Doing checkMsgs
Better Email Debug Jarvis Email: msg_ids = ['']
Better Email Debug Logged out from IMAP server: Jarvis Email
Better Email Debug Polling All Email Servers
Better Email Debug Polling serverId: 1175847649, serverTypeId: imapAccount(Jarvis Email)
Better Email Debug Polling IMAP Server: Jarvis Email
Better Email Debug Jarvis Email: Doing connect using encryptionType = SSL
Better Email Debug Jarvis Email: Doing checkMsgs
Better Email Debug Jarvis Email: msg_ids = ['1']
Better Email Debug Jarvis Email: Checking Message # 1
Better Email Debug Jarvis Email: Fetching Message # 1
Better Email Debug Received Message Subject: IntesisHome Notifications - on/off change
Better Email Debug Received Message From: IntesisHome Notifications <[email protected]>
Better Email Error Error decoding "To:" header: coercing to Unicode: need string or buffer, NoneType found
Better Email Error Error decoding "To:" header: None, error: coercing to Unicode: need string or buffer, NoneType found
Better Email Debug Received Message ID: <[email protected]>
Better Email Debug Checking Triggers for Device Jarvis Email (1175847649)
Better Email Debug Checking Trigger Location - Chris's iPhone arrived home (IFTTT) (46693833), regexMatch
Better Email Debug Skipping Trigger Location - Chris's iPhone arrived home (IFTTT) (46693833), wrong device: 1175847649
Better Email Debug Checking Trigger Location - Chris's iPhone left home (IFTTT) (490708886), regexMatch
Better Email Debug Skipping Trigger Location - Chris's iPhone left home (IFTTT) (490708886), wrong device: 1175847649
Better Email Debug Checking Trigger Lounge - Downstairs AC (1261190932), stringMatch
Better Email Debug Checking Device State messageFrom for string: [email protected]
Better Email Debug No Match for Trigger Lounge - Downstairs AC (1261190932)
Better Email Debug Checking Trigger Location - Automatic Car Update (IFTTT) (1814368987), regexMatch
Better Email Debug Skipping Trigger Location - Automatic Car Update (IFTTT) (1814368987), wrong device: 1175847649
Better Email Debug Checking Trigger Lounge - Person Seen (IFTTT) (1858095945), regexMatch
Better Email Debug Skipping Trigger Lounge - Person Seen (IFTTT) (1858095945), wrong device: 1175847649
Better Email Debug Checking Trigger Main Bathroom - Dryer Emptied (1887404485), regexMatch
Better Email Debug Skipping Trigger Main Bathroom - Dryer Emptied (1887404485), wrong device: 1175847649
Better Email Debug Deleting message # 1
Better Email Debug Logged out from IMAP server: Jarvis Email
Sorry to be a pain, it was working fine so I don't know what has changed. It seem to be running, but the trigger labelled "Lounge - Downstairs AC" should be firing as it should match on the from address. As you can see from the log it doesn't match for some reason.
Thanks,
Pete
Starting plugin "Better Email 7.0.2" (pid 33834)
Better Email Debug logLevel = 10
Started plugin "Better Email 7.0.2"
Better Email Starting Better Email
Better Email Debug updateFrequency = 86400.0
Better Email Debug Jarvis Email: Device Version is up to date
Better Email Debug Starting server: Jarvis Email
Better Email Debug Adding Trigger Location - Automatic Car Update (IFTTT) (1814368987)
Better Email Debug Adding Trigger Location - Chris's iPhone arrived home (IFTTT) (46693833)
Better Email Debug Adding Trigger Location - Chris's iPhone left home (IFTTT) (490708886)
Better Email Debug Adding Trigger Lounge - Downstairs AC (1261190932)
Better Email Debug Adding Trigger Lounge - Person Seen (IFTTT) (1858095945)
Better Email Debug Adding Trigger Main Bathroom - Dryer Emptied (1887404485)
Better Email Checking for updates...
Better Email Debug Plugin version detected: 7.0.2
Better Email Debug Current version is: 7.0.2
Better Email Debug Getting latest release from FlyingDiver/Indigo-BetterEmail...
Better Email Debug GET /repos/FlyingDiver/Indigo-BetterEmail/releases/latest
Better Email Debug HTTP 200 OK
Better Email Debug Latest release is: 7.0.2
Better Email No updates are available
Better Email Debug Polling IMAP Server: Jarvis Email
Better Email Debug Jarvis Email: Doing connect using encryptionType = SSL
Better Email Debug Jarvis Email: Doing checkMsgs
Better Email Debug Jarvis Email: msg_ids = ['']
Better Email Debug Logged out from IMAP server: Jarvis Email
30 Nov. 2016, 12:36:58 pm
Better Email Debug Polling IMAP Server: Jarvis Email
Better Email Debug Jarvis Email: Doing connect using encryptionType = SSL
Better Email Debug Jarvis Email: Doing checkMsgs
Better Email Debug Jarvis Email: msg_ids = ['']
Better Email Debug Logged out from IMAP server: Jarvis Email
Better Email Debug Polling All Email Servers
Better Email Debug Polling serverId: 1175847649, serverTypeId: imapAccount(Jarvis Email)
Better Email Debug Polling IMAP Server: Jarvis Email
Better Email Debug Jarvis Email: Doing connect using encryptionType = SSL
Better Email Debug Jarvis Email: Doing checkMsgs
Better Email Debug Jarvis Email: msg_ids = ['1']
Better Email Debug Jarvis Email: Checking Message # 1
Better Email Debug Jarvis Email: Fetching Message # 1
Better Email Debug Received Message Subject: IntesisHome Notifications - on/off change
Better Email Debug Received Message From: IntesisHome Notifications <[email protected]>
Better Email Error Error decoding "To:" header: coercing to Unicode: need string or buffer, NoneType found
Better Email Error Error decoding "To:" header: None, error: coercing to Unicode: need string or buffer, NoneType found
Better Email Debug Received Message ID: <[email protected]>
Better Email Debug Checking Triggers for Device Jarvis Email (1175847649)
Better Email Debug Checking Trigger Location - Chris's iPhone arrived home (IFTTT) (46693833), regexMatch
Better Email Debug Skipping Trigger Location - Chris's iPhone arrived home (IFTTT) (46693833), wrong device: 1175847649
Better Email Debug Checking Trigger Location - Chris's iPhone left home (IFTTT) (490708886), regexMatch
Better Email Debug Skipping Trigger Location - Chris's iPhone left home (IFTTT) (490708886), wrong device: 1175847649
Better Email Debug Checking Trigger Lounge - Downstairs AC (1261190932), stringMatch
Better Email Debug Checking Device State messageFrom for string: [email protected]
Better Email Debug No Match for Trigger Lounge - Downstairs AC (1261190932)
Better Email Debug Checking Trigger Location - Automatic Car Update (IFTTT) (1814368987), regexMatch
Better Email Debug Skipping Trigger Location - Automatic Car Update (IFTTT) (1814368987), wrong device: 1175847649
Better Email Debug Checking Trigger Lounge - Person Seen (IFTTT) (1858095945), regexMatch
Better Email Debug Skipping Trigger Lounge - Person Seen (IFTTT) (1858095945), wrong device: 1175847649
Better Email Debug Checking Trigger Main Bathroom - Dryer Emptied (1887404485), regexMatch
Better Email Debug Skipping Trigger Main Bathroom - Dryer Emptied (1887404485), wrong device: 1175847649
Better Email Debug Deleting message # 1
Better Email Debug Logged out from IMAP server: Jarvis Email
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Better Email Q&A
String match has to be an exact match. If you want a substring or other non-exact match, you need to use Regex Match.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Better Email Q&A
Ah yeah.... Doh stupid me! Thanks for humouring me and solving my problem!
-
ChopOMatic
- Posts: 110
- Joined: Fri Sep 12, 2014 2:00 am
Re: Better Email Q&A
Joe, I'm having some issues with the plugin. Well, one issue really: I've created an IMAP device for a Gmail address. Its STATE in the Indigo main interface is FAILURE, and thus nothing is working. I have an app password set for this Gmail address and while Indigo's built-in email functionality works fine, the BE plugin does not. Immediately after I configure the plugin's settings, I get the following:
Is there perhaps a known issue with Gmail IMAP?
Thanks!
Code: Select all
Dec 5, 2016, 3:09:16 PM
Better Email Debug getDeviceConfigUiValues, typeID = imapAccount
Better Email Debug getDeviceConfigUiValues: no change, already populated
Better Email Debug validateDeviceConfigUi called
Dec 5, 2016, 3:10:03 PM
Email Scanned from "1##########[email protected]"; subject "SMS from 44154"Thanks!
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Better Email Q&A
There's nothing there indicating any error condition in the BE plugin. I only see debug output for the device configuration call, not for any polling calls.ChopOMatic wrote:Joe, I'm having some issues with the plugin. Well, one issue really: I've created an IMAP device for a Gmail address. Its STATE in the Indigo main interface is FAILURE, and thus nothing is working. I have an app password set for this Gmail address and while Indigo's built-in email functionality works fine, the BE plugin does not. Immediately after I configure the plugin's settings, I get the following:
Is there perhaps a known issue with Gmail IMAP?Code: Select all
Dec 5, 2016, 3:09:16 PM Better Email Debug getDeviceConfigUiValues, typeID = imapAccount Better Email Debug getDeviceConfigUiValues: no change, already populated Better Email Debug validateDeviceConfigUi called Dec 5, 2016, 3:10:03 PM Email Scanned from "1##########[email protected]"; subject "SMS from 44154"
Thanks!
The "Email Scanned" line is not from my plugin. Do you still have the built in email scanner running? If so, it's seeing the mails before the plugin is and either marking them read or deleting them. Or the plugin is never actually scanning. What do you have for the poll interval? Or do you have IDLE enabled?
GMail IMAP does work, but it has a tendency to close connections randomly if you're trying to keep it open with IDLE.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
-
ChopOMatic
- Posts: 110
- Joined: Fri Sep 12, 2014 2:00 am
Re: Better Email Q&A
Finally got it successfully reading the incoming emails. (Turned off 2-step authentication in Gmail, deleted every existing email in the account, changed password, reconfigured plugin.)
My only remaining problem is the failure of the string match trigger, even though the specified text is clearly in the email.
Screenshot of the trigger's config:
Screenshot of the incoming email:
My only remaining problem is the failure of the string match trigger, even though the specified text is clearly in the email.
Code: Select all
Dec 5, 2016, 4:25:41 PM
Better Email Debug ChopIndigo Email: IDLE Event Received
Better Email Debug ChopIndigo Email: Doing checkMsgs
Better Email Debug ChopIndigo Email: msg_ids = ['1 2 3 4 5 6']
Better Email Debug ChopIndigo Email: Checking Message # 1
Better Email Debug ChopIndigo Email: Message # 1 already seen, skipping...
Better Email Debug ChopIndigo Email: Checking Message # 2
Better Email Debug ChopIndigo Email: Message # 2 already seen, skipping...
Better Email Debug ChopIndigo Email: Checking Message # 3
Better Email Debug ChopIndigo Email: Message # 3 already seen, skipping...
Better Email Debug ChopIndigo Email: Checking Message # 4
Better Email Debug ChopIndigo Email: Message # 4 already seen, skipping...
Better Email Debug ChopIndigo Email: Checking Message # 5
Better Email Debug ChopIndigo Email: Message # 5 already seen, skipping...
Better Email Debug ChopIndigo Email: Checking Message # 6
Better Email Debug ChopIndigo Email: Fetching Message # 6
Better Email Debug Received Message Subject: SMS from 44154
Better Email Debug Received Message From: 44154 <[email protected]>
Better Email Debug Received Message To: @@@@@@gmail.com
Better Email Debug Received Message ID: <+1#######[email protected]>
Better Email Debug Checking Triggers for Device ChopIndigo Email (1017660371)
Better Email Debug Checking Trigger AWS Button #1 - Single Click (910245963), stringMatch
Better Email Debug Checking Device State messageText for string: G030JF056181W42P
Better Email Debug No Match for Trigger AWS Button #1 - Single Click (910245963)- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Better Email Q&A
stringMatch is an exact match for the field. For a substring or pattern match, you need to use the regex trigger.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
-
ChopOMatic
- Posts: 110
- Joined: Fri Sep 12, 2014 2:00 am
Re: Better Email Q&A
AHHHHHHH...
BOOM. Now playing both kinds of music: Rock AND roll!
Thx, Joe!
BOOM. Now playing both kinds of music: Rock AND roll!
Thx, Joe!
-
ChopOMatic
- Posts: 110
- Joined: Fri Sep 12, 2014 2:00 am
Re: Better Email Q&A
I now have an Amazon AWS IoT button integrated into my Indigo setup, thanks to Joe. I can trigger three different actions depending on whether I single-click, double-click, or long-click the button.
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Better Email Q&A
Sweet.ChopOMatic wrote:I now have an Amazon AWS IoT button integrated into my Indigo setup, thanks to Joe. I can trigger three different actions depending on whether I single-click, double-click, or long-click the button.
PS - I just added a note to the Event Creation dialog box calling out that String Match is an exact match. Should have had that there before.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177