Better Email plugin discussion thread

Posted on
Sun Jul 12, 2015 9:58 am
FlyingDiver offline
Posts: 3874
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Better Email plugin discussion thread

Post questions, feedback, requests, bug reports, etc here.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jul 20, 2015 11:18 pm
T-Power offline
User avatar
Posts: 212
Joined: May 10, 2010

Re: Better Email plugin discussion thread

Hello FlyingDiver,

Thank you for sharing your plugin!
I am not exactly sure how I would set this up to delete a few undesired messages.
Could you please provide an example trigger for such a thing?

T.I.A.

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 6.x OSX 10.9.5

Posted on
Tue Jul 21, 2015 5:14 am
FlyingDiver offline
Posts: 3874
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

I'm not sure exactly what you're trying to do. Normally, you would use a dedicated email account for Indigo. And then delete each email after it's processed. Or maybe keep them all for archival processes. Are you trying to use this as a spam filter on a regular account? Do you want the plugin to optionally delete the message when it's done processing it? Can you give a usage scenario? With specific trigger conditions?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jul 21, 2015 5:28 am
T-Power offline
User avatar
Posts: 212
Joined: May 10, 2010

Re: Better Email plugin discussion thread

Hello FlyingDiver,

Thanks for the response!
Yes I would like to use this as a spam filter on a regular account. Having certain emails optionally deleted would be super!

I was hoping that when a message came in named *@blahblah.xyz that it would be automatically deleted.

T.I.A.

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 6.x OSX 10.9.5

Posted on
Tue Jul 21, 2015 5:44 am
FlyingDiver offline
Posts: 3874
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

I'll look into deleting emails as a trigger action, but I think you'd be better served by a real spam filter. I recommend Spam Sieve: http://c-command.com/spamsieve/

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jul 21, 2015 6:03 am
T-Power offline
User avatar
Posts: 212
Joined: May 10, 2010

Re: Better Email plugin discussion thread

Yes, I have SpamSeive and have been using it for years. Was simply trying to improve the setup.

Would you please give some creative ways (triggers) that only your plugin can do?

T.I.A.

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 6.x OSX 10.9.5

Posted on
Tue Jul 21, 2015 6:34 am
FlyingDiver offline
Posts: 3874
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

The only trigger my plugin supports is a regex pattern match on fields of the incoming email. But that does allow you to trigger on just about any string pattern in the email, if you know how to do regular expressions. But it doesn't support any specific actions on the email, so it's not suitable for use as a spam filter. And I don't under stand why you would even try if you're already using SpamSieve.

What is it about your SpamSieve setup you're trying to improve? I used to use SpamSieve, but had to give up since the service provider I was using at the time for email service couldn't handle the multiple additional IMAP connections that SpamSieve required. I solved my spam problem (to a great extent) by switching my email server to an ISP that has much better spam filtering than the web hosting company I was using before.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jul 22, 2015 4:35 pm
T-Power offline
User avatar
Posts: 212
Joined: May 10, 2010

Re: Better Email plugin discussion thread

I was in need of tweaking the Spamseive setup. Looks like I have it properly working.
Thanks for bring that to the forefront.

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 6.x OSX 10.9.5

Posted on
Thu Aug 20, 2015 11:03 am
rycardo offline
Posts: 53
Joined: Jul 10, 2015

Re: Better Email plugin discussion thread

Hey Joe,

Good job on the plug-in!

Is it possible to get the sender's information from the latest message?

Thanks,

Rycardo

NB You can disregard the message I sent to you earlier, I was looking at your original discussion thread which is locked.

Posted on
Thu Aug 20, 2015 11:06 am
FlyingDiver offline
Posts: 3874
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

That should be easy enough. Do you just want the sender string to be available in a state property, or do you also want to be able to trigger an event on a pattern in the sender string?

joe

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Aug 20, 2015 11:23 am
rycardo offline
Posts: 53
Joined: Jul 10, 2015

Re: Better Email plugin discussion thread

Hey Joe,

Do you just want the sender string to be available in a state property, or do you also want to be able to trigger an event on a pattern in the sender string?


I was only thinking of it as a state property (string value), similar to how you have Subject and Body. That way I could condition my triggers by the sender's email address.

Rycardo

Posted on
Thu Aug 20, 2015 2:30 pm
FlyingDiver offline
Posts: 3874
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Once the message sender (From header) was in a device state, triggers were basically free.

Version 1.0.1 available at https://dl.dropboxusercontent.com/u/756 ... -1.0.1.zip

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri Aug 21, 2015 9:27 am
rycardo offline
Posts: 53
Joined: Jul 10, 2015

Re: Better Email plugin discussion thread

Joe,

very nice, just installed.

Thanks!

Posted on
Sun Dec 06, 2015 7:43 pm
zini offline
Posts: 59
Joined: May 19, 2013

Re: Better Email plugin discussion thread

Joe,

I'm just getting back into HA (now that time permits) and in the process of getting my Indigo system up and running again I stumbled across your plugin.

Question about it. Does the plugin still "check" email based on a specific minute interval? I am curious if there is a way to forgo the delay involved with "pinging" email based on a time interval. I would love to be able to push an action based on an email being received immediately.

Let me know. And thanks for your great work.

Mark

Posted on
Sun Dec 13, 2015 10:54 am
FlyingDiver offline
Posts: 3874
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Better Email plugin discussion thread

Sorry, out of the country with a very slow internet connection.

The email server is always polled, but you can make the interval pretty short. There's no way to trigger on a push notification from an IMAP or POP sever. Getting a push notification would require a live connection to the mail server and I don't know of any way to do that. I could look into it when I get back but it'll be very provider specific.

joe

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 1 guest