Better Email plugin discussion thread

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

Re: Better Email plugin discussion thread

Post by FlyingDiver »

Different Computers wrote:I know where you're coming from and appreciate the concern. It's just I've got some legacy zigbee devices that I can't get talking to Indigo, and it would be nice to use them. (Until someone writes a Zigbee plugin of course. :wink:
Let's take this to another thread: http://forums.indigodomo.com/viewtopic. ... 36&t=16225
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 plugin discussion thread

Post by FlyingDiver »

Gah. That's what I get for making a "simple" change without testing. Try v1.2.8.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Bollar
Posts: 528
Joined: Sun Aug 11, 2013 3:14 pm

Re: Better Email plugin discussion thread

Post by Bollar »

FlyingDiver wrote:Gah. That's what I get for making a "simple" change without testing. Try v1.2.8.
That appears to have worked - thanks!

Version number is still showing as 1.2.6
Insteon / Z-Wave / Bryant Evolution Connex /Tesla / Roomba / Elk M1 / SiteSage / Enphase Enlighten / NOAA Alerts
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Post by FlyingDiver »

Bollar wrote:Version number is still showing as 1.2.6
Fixed. I think.
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 plugin discussion thread

Post by peteinau »

Hi Joe,

Mine seems to work well for a while (usually more than a day, but not a time period I can work out) and then I see the following message in the log

-------
Better Email Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 673, in runConcurrentThread
KeyError: 'key updateFrequency not found in dict'

Better Email Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Better Email Error Error in plugin execution runConcurrentThread:
-------

If I then go to the configure menu for the plugin and try and try debugging on I get the following message in the log

------
Better Email Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 567, in validatePrefsConfigUi
NameError: global name 'errorMsgDict' is not defined
---------

I can use the toggle debugging but it doesn't seem to give me any more information than this.

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

Re: Better Email plugin discussion thread

Post by FlyingDiver »

Sigh. v1.2.9 is up now. I hope I finally stomped that bug.
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 plugin discussion thread

Post by Different Computers »

I'm full of dumb questions today.

If I'm looking for the plugin to trigger on a subject equal to

Code: Select all

Front door open
can the regular expression in the settings just be

Code: Select all

Front door open
?
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 plugin discussion thread

Post by FlyingDiver »

Yes. If you don't use any of the special regex meta characters, then it's a straight string compare. I probably ought to put in a simple string compare option, since you'll get bitten by punctuation characters.

Be aware that there's currently a bug that messages with no message text (just headers) will fail. I need to look into that.
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 plugin discussion thread

Post by Different Computers »

FlyingDiver wrote:Be aware that there's currently a bug that messages with no message text (just headers) will fail. I need to look into that.

Aaaaand that's my problem! I was sending blank messages.
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 plugin discussion thread

Post by FlyingDiver »

V1.2.10 has been posted.

In this release:

Events are now specific to an email server. All events (triggers) will need to be edited to select the server.

There are now two kinds of inbound email matching triggers - one for regex expressions, one for plain string matches. All events (triggers) will need to be edited to select the event type.

Misc bug fixes as well, including a work-around for empty email bodies.
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 plugin discussion thread

Post by peteinau »

Hi Joe,

Getting the following messages since upgrading to 1.2.10:

Better Email Error IMAP server connection error: 'key serverID not found in dict'

I've tried deleting and recreating the Server Device, but doesn't seem to change it much.

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

Re: Better Email plugin discussion thread

Post by FlyingDiver »

peteinau wrote:Hi Joe,

Getting the following messages since upgrading to 1.2.10:

Better Email Error IMAP server connection error: 'key serverID not found in dict'

I've tried deleting and recreating the Server Device, but doesn't seem to change it much.

Thanks,
Pete
Did you edit and save all your BetterEmail Events (ie Triggers)?
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 plugin discussion thread

Post by peteinau »

Ahhh... tried hunting around and found a trigger I'd missed! I think I'll need to redo all my folder structure, just too many triggers and devices in Indigo these days.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Post by FlyingDiver »

peteinau wrote:Ahhh... tried hunting around and found a trigger I'd missed! I think I'll need to redo all my folder structure, just too many triggers and devices in Indigo these days.
I'm going to see if I can find a way to protect the code from that error. Put in some defaults of some sort if the keys are missing.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
RedYuriPrime
Posts: 56
Joined: Tue Oct 14, 2014 1:01 pm
Location: Oxford

Re: Better Email plugin discussion thread

Post by RedYuriPrime »

Hi Joe,
I am having problems getting the plugin to work after upgrading to v1.2.10. Outgoing email works fine, but incoming does not. Problem seems to be at the level of the incoming device, so deleted this and started again, but problem unchanged.
Error shows up as state ‘Failure’ in the devices list, and as a line in the log everytime Better Email executes saying:
"Better Email Error POP server connection error: 'POPServer' object has no attribute 'props' "
With debugging set get nothing more useful:
"Better Email Debug Connecting to POP Server: Better Email Incoming Pop Server
Better Email Error POP server connection error: 'POPServer' object has no attribute 'props'"

Any suggestions :?:
Z-wave system with 80+ devices, Indigo7 on a dedicated MacMini
Controlling lighting, heating, hotwater, security; but still a lot to learn ... :shock:
Locked

Return to “Better Email”