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?
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?
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/
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.
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?
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.
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.
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.