Better Email Q&A

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 »

ghenne wrote: I see Email Scanned messages.

Code: Select all

Jan 15, 2018 at 5:20:05 AM
  Email Scanned                   from "[email protected]"; subject "Payment Skipped"
That's from the Indigo built-in email scanner, not from BetterEmail. If you want to use the BetterEmail triggers, you need to turn off the built-in scanner and configure a BetterEmail POP or IMAP device.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
ghenne
Posts: 14
Joined: Thu Nov 08, 2007 11:44 am

Re: Better Email Q&A

Post by ghenne »

FlyingDiver wrote:That's from the Indigo built-in email scanner, not from BetterEmail. If you want to use the BetterEmail triggers, you need to turn off the built-in scanner and configure a BetterEmail POP or IMAP device.
I have IMAP configured in Preferences in the Mail tab. Does BetterMail have its own configuration? Where?

(Is there documentation I should have 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 »

ghenne wrote: I have IMAP configured in Preferences in the Mail tab. Does BetterMail have its own configuration? Where?

(Is there documentation I should have found?)
Like I said, BetterEmail is totally independent of the Indigo built-in email system. BetterEmail uses Indigo devices to represent each server you want to use. If you want to handle mail on an IMAP server, you create a BetterEmail device of type "IMAP Server".

This thread, and the thread for the Indigo 6 version, are the best resource: http://forums.indigodomo.com/viewtopic. ... 11&t=14411
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 »

Just released version 7.2.0, available from the Plugin Store or GitHub.

https://github.com/FlyingDiver/Indigo-B ... /tag/7.2.0

Added timeout code to restart IDLE connections
New MessageTo states in IMAP and POP devices
Removed GHPU entirely
Log messages updated
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 »

Release 7.2.4 is now available.

Handle null flags (Gmail)

Allow message search for HTML-only emails (no plain text alternative).
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
Gangotti
Posts: 92
Joined: Tue Dec 23, 2014 8:11 pm
Location: Las Vegas, NV

Re: Better Email Q&A

Post by Gangotti »

First, let me say this is a great plugin. I am wondering if there is a way to do a partial string match. I am using alarm.com currently and I have it sending notifications to Indigo. In Indigo I have the better email plugin triggering indigo with a string match in email event. The email is coming has a subject of " Vegas Home: The Kitchen Door was Opened at 11:02 am" With the time in the subject and the message body it makes it so the trigger will not work. Is there a way for the event to trigger if a section of the string is in the subject? I.e. "Vegas Home: The Kitchen Door was Opened at"

Thanks again and keep up the great work!
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 »

Gangotti wrote:First, let me say this is a great plugin. I am wondering if there is a way to do a partial string match. I am using alarm.com currently and I have it sending notifications to Indigo. In Indigo I have the better email plugin triggering indigo with a string match in email event. The email is coming has a subject of " Vegas Home: The Kitchen Door was Opened at 11:02 am" With the time in the subject and the message body it makes it so the trigger will not work. Is there a way for the event to trigger if a section of the string is in the subject? I.e. "Vegas Home: The Kitchen Door was Opened at"

Thanks again and keep up the great work!
Use the regex match for partial matches. Lots of examples for regex on the net.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
pgershon
Posts: 534
Joined: Sat Jul 10, 2004 1:07 am

Re: Better Email Q&A

Post by pgershon »

I am just trying to set-up Better Email since my FIOS email on the regular client stopped working. Using MacMini running 10.13. When I install Better Email, I get errors in the log rapid-fire and need to deactivate. Any ideas?

Reloading plugin "Better Email 7.2.4"
Starting plugin "Better Email 7.2.4" (pid 85010)
Error receive socket select() 22 error
Error receive socket select() 22 error
Error receive socket select() 22 error
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 »

pgershon wrote:I am just trying to set-up Better Email since my FIOS email on the regular client stopped working. Using MacMini running 10.13. When I install Better Email, I get errors in the log rapid-fire and need to deactivate. Any ideas?

Reloading plugin "Better Email 7.2.4"
Starting plugin "Better Email 7.2.4" (pid 85010)
Error receive socket select() 22 error
Error receive socket select() 22 error
Error receive socket select() 22 error
Is that before you created any devices? If not, what devices have you created? Show the device configuration.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
joel.snyder
Posts: 28
Joined: Wed Aug 31, 2016 11:32 am

Can the Action List text be updated to include more informat

Post by joel.snyder »

In the basic Indigo mail sender, an action shows up in the Action list as something like:

"send email to <destination address> subject <subject line>"

Whereas with Better Email, the Action shows up as

"Send email"

Although the default Indigo email system is prone to clogging, honestly the action item list is more useful because it gives you an idea of what you are doing without having to dive into each item.

Is there a way for the plugin to provide a "better" text line? (If you can point me at API docs or a general approach, I'd be happy to try a pull request and update it; I just have never done a Plugin with actions so I don't even know if this is possible...

Thanks for a great plugin!

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

Re: Can the Action List text be updated to include more info

Post by FlyingDiver »

joel.snyder wrote: Is there a way for the plugin to provide a "better" text line? (If you can point me at API docs or a general approach, I'd be happy to try a pull request and update it; I just have never done a Plugin with actions so I don't even know if this is possible...
I honestly do not think it's possible. It's the difference between an action built into the Indigo server and a plugin. The server could pull some info from the action's pluginPrefs to show more detail there, but there's no API I've ever seen that would be used to do so.

I'd post in the Feature Request forum for an extension to the API to allow a plugin to supply a summary of an action for that UI.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
DaveL17
Posts: 7321
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Better Email Q&A

Post by DaveL17 »

Hi Joe - is it possible to designate the email format as HTML when using the plugin scripting API? I can successfully create an HTML formatted email through a plugin action no problem, but it seems like the API is plain text only. If that's the case, I'm happy to put in a feature request on Git.
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts
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 »

Add “emailFormat”: “html” to the props in the script.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
DaveL17
Posts: 7321
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Better Email Q&A

Post by DaveL17 »

Works perfect. Thanks. Considering some Better Email hooks within some of my plugins which would allow users to have the option of using Indigo's built-in method or yours.
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts
User avatar
mgolden50
Posts: 278
Joined: Mon Jan 29, 2007 7:55 pm
Location: Chandler, AZ
Contact:

Re: Better Email Q&A

Post by mgolden50 »

Hi Joe,

I'm having a problem getting B E to match an email subject with that same name in the settings. Heres the debug messages.
Thanks in advance for any help you can provide.

Mike

Code: Select all

 Better Email Debug              [email protected]: Polling IMAP Server
   Better Email Debug              [email protected]: Doing connect using encryptionType = SSL
   Better Email Debug              [email protected]: Doing login()
   Better Email Debug              [email protected]: Doing select()
   Better Email Debug              [email protected]: Doing checkMsgs
   Better Email Debug              [email protected]: checkMsgs - typ = OK, msg_ids = ['1 2 3']
   Better Email Debug              [email protected]: Message # 1 already seen, skipping...
   Better Email Debug              [email protected]: Message # 2 already seen, skipping...
   Better Email Debug              [email protected]: Fetching Message # 3
   Better Email Debug              [email protected]: Fetching Message # 3 Complete
   Better Email Debug              [email protected]: Received Message Subject: Vehicle Locked!
   Better Email Debug              [email protected]: Received Message From: MyUVO Notifications <[email protected]>
   Better Email Debug              [email protected]: Received Message To: [email protected]
   Better Email Debug              [email protected]: Received Message Date: Wed, 05 Aug 2020 11:50:19 -0700
   Better Email Debug              [email protected]: Received Message ID: <[email protected]>
   Better Email Debug              triggerCheck: Checking Triggers for Device [email protected] (963898916)
   Better Email Debug              	Checking Trigger Car Is Locked Email Received (1693525627), regexMatch
   Better Email Debug              		Checking Device State messageSubject for Pattern: Vehicle Locked!
Vehicle Locked!
Your vehicle is locked
   Better Email Debug              		No Match for Trigger Car Is Locked Email Received (1693525627)
   Better Email Debug              [email protected]: checkMsgs complete
   Better Email Debug              [email protected]: Logged out from IMAP server: 
[attachment=]Screen Shot 2020-08-05 at 11.47.59 AM.png[/attachment]
Post Reply

Return to “Better Email”