Better Email Q&A

User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Better Email Q&A

Post by FlyingDiver »

New thread for the Indigo 7 release.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Better Email Q&A

Post 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
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email Q&A

Post 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.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Better Email Q&A

Post 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.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
Elman
Posts: 13
Joined: Sat Apr 25, 2015 9:17 am
Location: Sweden

Re: Better Email Q&A

Post 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.
Attachments
plugg in.png
plugg in.png (42.61 KiB) Viewed 9574 times
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email Q&A

Post by FlyingDiver »

Did you create one? To send email you need to create an SMTP Device.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Elman
Posts: 13
Joined: Sat Apr 25, 2015 9:17 am
Location: Sweden

Re: Better Email Q&A

Post by Elman »

Thanks.

It was much better.
Now I can choose.
Elman
Posts: 13
Joined: Sat Apr 25, 2015 9:17 am
Location: Sweden

Re: Better Email Q&A

Post 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%%
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email Q&A

Post 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: http://forums.indigodomo.com/viewforum.php?f=78
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Elman
Posts: 13
Joined: Sat Apr 25, 2015 9:17 am
Location: Sweden

Re: Better Email Q&A

Post by Elman »

Thanks

Best Regards

// Johan
dliccardo
Posts: 64
Joined: Mon Jun 09, 2014 9:38 pm

Re: Better Email Q&A

Post 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!
peteinau
Posts: 65
Joined: Sat Jan 10, 2015 5:02 pm

Re: Better Email Q&A

Post 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 <[email protected]>
   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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email Q&A

Post 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?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email Q&A

Post by FlyingDiver »

If you can, grab the latest commit on GitHub and try it: https://github.com/FlyingDiver/Indigo-B ... ndigo7.zip
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
peteinau
Posts: 65
Joined: Sat Jan 10, 2015 5:02 pm

Re: Better Email Q&A

Post 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 <[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]>
-- Headers

Code: Select all

X-Postalout-Msgid: 3tScFm60XhzFZFy.AD4E6
X-Postalout-Spamcheck: no es spam, Unknown
Received-Spf: pass (google.com: domain of [email protected] 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: <[email protected]>
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 [email protected] designates 217.116.26.250 as permitted sender) [email protected]
X-Postalout-Information: AntiSPAM and AntiVIRUS on relayout06
X-Ctch-Scorecust: 0.000
X-Postalout-From: [email protected]
Message-Id: <[email protected]>
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: [email protected]) by relayout06-dsp.dominioabsoluto.net (Postfix) with ESMTPA id 3tScFm60XhzFZFy for < XXXXXXXXXX >; Tue, 29 Nov 2016 09:31:08 +0100 (CET)
Post Reply

Return to “Better Email”