Page 1 of 8

Better Email Q&A

PostPosted: Sun Nov 20, 2016 9:15 pm
by FlyingDiver
New thread for the Indigo 7 release.

Re: Better Email Q&A

PostPosted: Mon Nov 21, 2016 2:49 pm
by Different Computers
Getting this with debugging turned on
Code: Select all
 Better Email Error              Error in plugin execution UiValidate:

Traceback (most recent call last):
  File "plugin.py", line 331, in clearSMTPQueueMenu
ValueError: invalid literal for int() with base 10: ''


Also, it seems like the I7 upgrade lost my config info for actions and I had to respecify them.

And finally, seems like triggers using the plugin aren't firing. I get "Polling all email servers" in the log, but nothing else.

Edit: took a while:
Code: Select all
Nov 21, 2016, 3:45:25 PM
   Better Email                    Checking for updates...
   Better Email Debug              Plugin version detected: 7.0.0
   Better Email Debug              Current version is: 7.0.0
   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.0
   Better Email                    No updates are available
   Better Email Debug              Polling All Email Servers


Nov 21, 2016, 3:50:04 PM
   Trigger                         Time for me to get the album artwork.
   Better Email Debug              getDeviceConfigUiValues, typeID = imapAccount
   Better Email Debug              getDeviceConfigUiValues: no change, already populated
   Better Email Debug              validateDeviceConfigUi called

Re: Better Email Q&A

PostPosted: Mon Nov 21, 2016 4:44 pm
by FlyingDiver
That ValueError was caused by a bad device reference in an Action of some kind (Group, Trigger, Schedule). The action was getting called with no deviceID. Make sure your devices are all still good (and enabled). I think that's a side effect of loosing the Action configs. But I have no idea what could have caused that in the first place. Unless it was the change I made to the name of the plugin itself (removed the space in the name). Hmm.

What's that trigger for the artwork doing? Or is that an unrelated log entry? The getDeviceConfigUiValues entries are normal.

As for the triggers not firing, make sure that debug logging is on and then restart the plugin. If the triggers are defined properly, there should be log entries saying "Adding trigger....". If not, I think the triggers are invalid, probably another result of the device IDs changing.

Re: Better Email Q&A

PostPosted: Mon Nov 21, 2016 4:46 pm
by Different Computers
That's an unrelated entry for artwork.

haven't restarted it will give a try!

and here that is:
Code: Select all
Started plugin "Better Email 7.0.0"
   Better Email                    Starting Better Email
   Better Email Debug              updateFrequency = 86400.0
   Better Email Debug              DC Email: Device Version is up to date
   Better Email Debug              Starting server: DC Email
   Better Email Debug              DC Email: Doing connect using encryptionType = SSL
   Better Email Debug              Adding Trigger Breezeway door opened, so I turned on the breezeway light (162583817)
   Better Email Debug              Adding Trigger received breezeway door closed email (1805935873)
   Better Email Debug              Adding Trigger received breezeway door open email (1474780688)
   Better Email Debug              Adding Trigger received freezer door closed email (1945710297)
   Better Email Debug              Adding Trigger received freezer door open email (1986361090)
   Better Email Debug              Adding Trigger received front door closed email (1200908508)
   Better Email Debug              Adding Trigger received front door open email (850508624)
   Better Email Debug              Adding Trigger received Mike Home email (1960096986)
   Better Email Debug              Adding Trigger received MikeNotHome email (1602847527)
   Better Email                    Checking for updates...
   Better Email Debug              Plugin version detected: 7.0.0
   Better Email Debug              Current version is: 7.0.0
   Better Email Debug              Getting latest release from FlyingDiver/Indigo-BetterEmail...
   Better Email Debug              GET /repos/FlyingDiver/Indigo-BetterEmail/releases/latest
   Better Email Debug              DC Email: idle() called
   Better Email Debug              HTTP 200 OK
   Better Email Debug              Latest release is: 7.0.0
   Better Email                    No updates are available


Seems to be working now, I think.

Re: Better Email Q&A

PostPosted: Sat Nov 26, 2016 2:38 pm
by Elman
Hello.

I have an problem.

I cant se any devices in the list.



Better Email Checking for updates...
Better Email Debug Plugin version detected: 7.0.0
Better Email Debug Current version is: 7.0.0
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.0
Better Email No updates are available

Better Email Debug getDeviceConfigUiValues, typeID = imapAccount
Better Email Debug getDeviceConfigUiValues: no change, already populated
Better Email Debug validateDeviceConfigUi called
Better Email Debug Stopping server: Email-plugg
Better Email Debug Email-plugg: Device Version is up to date
Better Email Debug Starting server: Email-plugg
Better Email Debug Email-plugg: Doing connect using encryptionType = SSL
Better Email Debug Email-plugg: idle() called

Indigo 7
Better Email 7.0.0
Best regards.

Re: Better Email Q&A

PostPosted: Sat Nov 26, 2016 2:39 pm
by FlyingDiver
Did you create one? To send email you need to create an SMTP Device.

Re: Better Email Q&A

PostPosted: Sun Nov 27, 2016 1:26 am
by Elman
Thanks.

It was much better.
Now I can choose.

Re: Better Email Q&A

PostPosted: Sun Nov 27, 2016 2:19 am
by Elman
Thanks again.

It works i can now send e-mail´s

Howe should i do this

i have one device that i will send an e-mail when it´s activity.

what should i do?

%%d:97846419:On/Off%%

Re: Better Email Q&A

PostPosted: Sun Nov 27, 2016 7:10 am
by FlyingDiver
Elman wrote:
Thanks again.

It works i can now send e-mail´s

Howe should i do this

i have one device that i will send an e-mail when it´s activity.

what should i do?

%%d:97846419:On/Off%%


You need to set up a trigger that sends the email when that device's state changes. If you need help doing that, please start a thread in this forum: viewforum.php?f=78

Re: Better Email Q&A

PostPosted: Sun Nov 27, 2016 10:25 am
by Elman
Thanks

Best Regards

// Johan

Re: Better Email Q&A

PostPosted: Mon Nov 28, 2016 12:08 am
by dliccardo
Hi FlyingDiver,

Great plugin! Working well with my gmail account (IMAP receive and SMTP send). I went searching for this because the built in Indigo email feature is unreliable. It sometimes fails to send (same account and same server settings that are working very reliable with this plugin)

Get it together Indigo team. I just paid for Indigo 7, which is a reasonable improvement from Indigo 6, but has taken way too long. I expect better from you. Thanks for taking up the slack FlyingDiver!

Re: Better Email Q&A

PostPosted: Tue Nov 29, 2016 2:32 am
by peteinau
Hi,

I'm actually have a problem when when it actually goes to the fetch the email, I have included the log below. I have tried deleting the device and creating a new one but still get the same error.

Thanks,
Pete

Code: Select all
  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 2']
   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 <notifications@intesishome.com>
   Better Email Error              IMAP server connection error: coercing to Unicode: need string or buffer, NoneType found
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/BetterEmail.indigoPlugin/Contents/Server Plugin/IMAPServer.py", line 208, in poll
    self.checkMsgs()
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/BetterEmail.indigoPlugin/Contents/Server Plugin/IMAPServer.py", line 139, in checkMsgs
    self.logger.debug(u"Received Message To: " + messageTo)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Re: Better Email Q&A

PostPosted: Tue Nov 29, 2016 6:51 am
by FlyingDiver
The plugin doesn't like whatever's in the "To:" header on that first message. Can you look at that INBOX with an email client and post the headers of that message?

Re: Better Email Q&A

PostPosted: Tue Nov 29, 2016 9:30 am
by FlyingDiver
If you can, grab the latest commit on GitHub and try it: https://github.com/FlyingDiver/Indigo-B ... ndigo7.zip

Re: Better Email Q&A

PostPosted: Tue Nov 29, 2016 4:45 pm
by peteinau
Hi,

So I've updated from the link you sent me and I have included the log file error and the header information for the email below.

-- Log File

Code: Select all
   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 2']
   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 <notifications@intesishome.com>
   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: <1480408088.583d3c1869388@swift.generated>

-- Headers

Code: Select all
X-Postalout-Msgid: 3tScFm60XhzFZFy.AD4E6
X-Postalout-Spamcheck: no es spam, Unknown
Received-Spf: pass (google.com: domain of no-reply@intesishome.com designates 217.116.26.250 as permitted sender) client-ip=217.116.26.250;
X-Received: by 10.28.220.5 with SMTP id t5mr22207496wmg.80.1480408272206; Tue, 29 Nov 2016 00:31:12 -0800 (PST)
Return-Path: <no-reply@intesishome.com>
X-Ctch-Score: 0.000
X-Postalout-Watermark: 1481013070.7103@6B9YELItYq+z8ih8siZJRQ
Mime-Version: 1.0
Authentication-Results: mx.google.com; spf=pass (google.com: domain of no-reply@intesishome.com designates 217.116.26.250 as permitted sender) smtp.mailfrom=no-reply@intesishome.com
X-Postalout-Information: AntiSPAM and AntiVIRUS on relayout06
X-Ctch-Scorecust: 0.000
X-Postalout-From: no-reply@intesishome.com
Message-Id: <1480408269.583d3ccd27398@swift.generated>
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No
Content-Type: text/html; charset=utf-8
X-Postalout-Country: IP: 212.36.84.194 | Country: ES
Delivered-To: XXXXXXXXXX
Received: by 10.107.149.131 with SMTP id x125csp2194369iod; Tue, 29 Nov 2016 00:31:12 -0800 (PST)
Received: from relayout06-q02.dominioabsoluto.net (relayout06-q02.dominioabsoluto.net. [217.116.26.250]) by mx.google.com with ESMTPS id k65si1501425wmf.39.2016.11.29.00.31.11 for < XXXXXXXXXX > (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Nov 2016 00:31:12 -0800 (PST)
Received: from relayout06-redir.dominioabsoluto.net (relayout06-redir.dominioabsoluto.net [217.116.26.254]) by relayout06.dominioabsoluto.net (Postfix) with ESMTP id 3tScFq0l8KzFZFc for < XXXXXXXXXX >; Tue, 29 Nov 2016 09:31:11 +0100 (CET)
Received: from [127.0.0.1] (unknown [212.36.84.194]) (Authenticated sender: noreply@intesishome.com) by relayout06-dsp.dominioabsoluto.net (Postfix) with ESMTPA id 3tScFm60XhzFZFy for < XXXXXXXXXX >; Tue, 29 Nov 2016 09:31:08 +0100 (CET)