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 »

I'm going to look into implementing the IMAP IDLE protocol which, if I can get it to work properly, will eliminate the polling normally required for IMAP. This will require that your IMAP server implements IDLE as well. It'll probably be a couple weeks before I can get to it.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
zini
Posts: 59
Joined: Sun May 19, 2013 8:32 am

Re: Better Email plugin discussion thread

Post by zini »

Joe,

That sounds great. Thanks for looking into this. Really appreciate your development efforts!

The idea of being able to trigger events quickly (without a poll) based on receiving an email message makes me pretty excited. A lot of potential in terms of integration.


Sent from my iPhone using Tapatalk
Mark
farberm
Posts: 393
Joined: Sun Feb 24, 2008 2:14 pm

Re: Better Email plugin discussion thread

Post by farberm »

Flying Diver

I am trying to schedule an email with a variable as you suggested in another forum ((%%v: 410242667%%) but cannot see how to do it.
I have version 1.0.1 of the plugin

I choose schedule and set the time

Under actions I choose Better Email - send email

Then under the device dropdown I see nothing - it is bank. How do I insert the variable text to send the variable?
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 »

farberm wrote:Flying Diver

I am trying to schedule an email with a variable as you suggested in another forum ((%%v: 410242667%%) but cannot see how to do it.
I have version 1.0.1 of the plugin

I choose schedule and set the time

Under actions I choose Better Email - send email

Then under the device dropdown I see nothing - it is bank. How do I insert the variable text to send the variable?
Did you create an SMTP device? You need an SMTP device (server) defined to send emails. Same info you use for the Indigo email send preferences should work.

joe
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 »

Here's a version of BetterEmail that supports the IDLE extension for IMAP servers. Edit the device definition to set the checkbox.

https://dl.dropboxusercontent.com/u/756 ... -1.1.0.zip

In my testing, the email was processed within a few seconds of the server getting the message.

I have no idea what happens if you happen to have an IMAP server that doesn't support IDLE.
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 »

"Official" release of the IDLE version of BetterEmail. Works great with my IMAP provider.

https://dl.dropboxusercontent.com/u/756 ... -1.1.1.zip
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
shrxman
Posts: 83
Joined: Wed Apr 22, 2015 2:41 am

Re: Better Email plugin discussion thread

Post by shrxman »

Hey FlyingDiver,

First off, a big thank you for your contribution! I'm always amazed at the awesome things you developers out here contribute to us all, and really appreciate it. :)

Just looking over your Better eMail plugin, and am trying to figure out how to interact with it. For instance, I'd like to set it up like I have the default eMail management configs, where I trigger events based on Subject lines, but only from particular senders. I saw some reference to the last sender being in the device state, but don't see how to get to that data. Do you have any release notes on that? I do some basic python programming in my indigo setup, so I figured I could do it via script if not via the GUI.

Let me know if you have anything, or any suggestions on the Sender/Subject filtering, and I'll play some more and see what kind of trouble I can get into with it :-)

Thanx,
~ken
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 »

Set up a Trigger on the subject line you want, then a condition on the sender (device state condition). Or vice versa. If you have some action you want done based on the subject line, restricted to a small set of senders, then that's the way to do it. Use "Any" for the conditions, then a rule for each sender email address.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
shrxman
Posts: 83
Joined: Wed Apr 22, 2015 2:41 am

Re: Better Email plugin discussion thread

Post by shrxman »

Ah... Of course! Always looking for the complex solution, when the simple one is right there in front of me. lol. Thanx!
User avatar
CraftGeek
Posts: 105
Joined: Wed May 13, 2015 5:50 am

list of allowed variables?

Post by CraftGeek »

I am looking for time and date variables but it would be also helpful to have the complete list of all variables that can be used in an email. Do you know where I can find this?
Sean
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: list of allowed variables?

Post by FlyingDiver »

CraftGeek wrote:I am looking for time and date variables but it would be also helpful to have the complete list of all variables that can be used in an email. Do you know where I can find this?
BetterEmail doesn't define any variables. Just a few device states. But the text substitution can put in the value of any variable you create, or any state of any existing device.

If you want a time stamp in a variable, Indigo provides a "variable action" to do that. Create the variable, and then an action to set that variable immediately before your BetterEmail action.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
CraftGeek
Posts: 105
Joined: Wed May 13, 2015 5:50 am

Re: list of allowed variables?

Post by CraftGeek »

FlyingDiver wrote:
CraftGeek wrote:I am looking for time and date variables but it would be also helpful to have the complete list of all variables that can be used in an email. Do you know where I can find this?
BetterEmail doesn't define any variables. Just a few device states. But the text substitution can put in the value of any variable you create, or any state of any existing device.

If you want a time stamp in a variable, Indigo provides a "variable action" to do that. Create the variable, and then an action to set that variable immediately before your BetterEmail action.
Got it, Thanks!
Sean
ckeyes888
Posts: 2438
Joined: Thu Nov 26, 2009 2:41 pm
Location: Kalispell, MT

Re: Better Email plugin discussion thread

Post by ckeyes888 »

Is it possible to send attachments, images, with the plugin?

Thanks,

Carl
Last edited by ckeyes888 on Mon Feb 01, 2016 1:50 pm, edited 1 time in total.
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 »

ckeyes888 wrote:Are there any docs on the plugin?
Thought I'd try it but after setting up a mail info device I don't see it in the device menu when setting up
an action to send an email.
Also is it possible to send attachments, images, with the plugin?

Thanks,

Carl
No docs other than the readme in the zip file.

You need to create an SMTP device before you can send emails. Did you do that?

Not currently possible to send attachments, but I've thought of adding that. Might be a little tricky to do it from the action UI. Especially if you want to send more than one attachment.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
CraftGeek
Posts: 105
Joined: Wed May 13, 2015 5:50 am

Re: Better Email plugin discussion thread

Post by CraftGeek »

FlyingDiver wrote:
No docs other than the readme in the zip file.
The readme in the zip file contains:

Code: Select all

# BetterEmail

Plugin for the Indigo Home Automation system.

This plugin provides enhances capabilities for sending and receiving email from within Indigo.
Do you have another readme that has more information?
Sean
Locked

Return to “Better Email”