Author Topic: Integration with Tasker  (Read 51719 times)

Scott_Miller

  • Newbie
  • *
  • Posts: 34
Re: Integration with Tasker
« Reply #30 on: June 29, 2014, 09:31:53 pm »
On the other hand, Pent said something about moving Aqua's plugins into a better place in his menu hierarchies.

He was referring to including it in a built-in help pop-up that suggests available and popular plug-ins to the user. I think it includes links to the Play store. The plugin category is still the correct place to find it when using it within Tasker.

Scott


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Integration with Tasker
« Reply #31 on: June 30, 2014, 02:30:12 am »
Ok, thanks for clarifying.

I'm not a power user by any means, my personal computing needs would be adequately served by Android 2.1 :)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Rachel Ambler

  • Full Member
  • ***
  • Posts: 140
  • Responsis, plura interrogandi
    • Random Thunks
Re: Integration with Tasker
« Reply #32 on: July 02, 2014, 04:26:24 am »
With apologies for not having seen this reawakening of the thread sooner, Here's my 2c...

Over the last umpteen months I've seen numerous posts from folk asking for rules and other sort of stuff to be built into AquaMail and once always thought that this would be ideally suited to be handled by Tasker. Events are part of that, being able to communicate back to AquaMail would be another (to do things like move emails to folders, reply, Yada Yada Yada).

That said, even what's currently available is most excellent!

Sent by Tapatalk Pro running my rooted Big Red HTC One M8

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Integration with Tasker
« Reply #33 on: July 02, 2014, 03:58:03 pm »
Externalizing the internal logic of the app's message processing pipeline just does not seem like a good idea.

( Do I sound like a speaker at an Enterprise Cloud Storage Scalability Clustering conference? )

The Tasker Event API is amazing (I was able to get the plugin to work in two days, while managing the rollout at the same time) -- but it does have some awkward parts, and they do come up in some edge cases (I hope they really are that, edge cases). For message rules though, those could be a real problem.

And one more thing:

People ask about message rules *in the app*, not realizing that it's just so much better in many ways to configure them up on the server, *in the mail service*. They just may not be aware of this option.

So not having message filtering in Aqua might prompt some to discover the better way...

...and might prompt others to post angry 1-star comments in Play :)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pezboy

  • Newbie
  • *
  • Posts: 3
Re: Integration with Tasker
« Reply #34 on: July 30, 2014, 09:01:53 am »
Hello Kostya-
I also posted about this on Google groups, but thought I would go into a little more detail about it here. This is how I was using K9 integration with Tasker:

When an email is received in K9, it populates the following built in Tasker Variables:
1. Email From (#EFROM) with the Sender's Name (if applicable), and email address
2. Email Subject (#ESUBJ)
3. Email CC (#ECC)
4. Email Date (#EDATE)
5. Email Time (#ETIME)

The Data in these variables can then be used in Profiles or Actions as events, triggers, etc.

Here is an example of a Tasker Profile/Task that I used with K9, and am hoping will be possible with Aqua:

When an email is received, an Event Profile (K9 Email Received Event) triggers a task that announces the Sender and Subject. Here is the Context of that Task:
1. Say "New Email from %EFROM"
2. Say "Subject %ESUBJ"

I would love to see this integration added to AquaMail. I'm sure Pent from Tasker would be helpful with the process. Thanks!

mabahj

  • Newbie
  • *
  • Posts: 40
Re: Integration with Tasker
« Reply #35 on: July 30, 2014, 02:32:21 pm »
Kostya,
I've now tried the new Tasker integration, now that the required Tasker version is out of beta. It works very well! Great job! And I cannot understand why someone would like the filter anywhere else.

Only thing I miss is the message content, or the x first characters of it. I would really appreciate it if you at some point could add that variable. I guess it would "simply" be a duplicate of what is shown in the Android notification?

@pezboy the latest AquaMail beta (dl from this forum) works exactly the way you describe, with the latest Tasker.

pezboy

  • Newbie
  • *
  • Posts: 3
Re: Integration with Tasker
« Reply #36 on: July 30, 2014, 06:27:39 pm »
@mabahj- I'm using Tasker 4.4u1 and Aquamail 1.4.1-53-beta6. I can't seem to get any data populated from the #aqmfrom or other Aquamail variables. With K9, a received email triggers the population of the variables; is this different with Aquamail? Could you explain how you do you it? Thanks.

Scott_Miller

  • Newbie
  • *
  • Posts: 34
Re: Integration with Tasker
« Reply #37 on: July 30, 2014, 06:41:56 pm »
@mabahj- I'm using Tasker 4.4u1 and Aquamail 1.4.1-53-beta6. I can't seem to get any data populated from the #aqmfrom or other Aquamail variables. With K9, a received email triggers the population of the variables; is this different with Aquamail? Could you explain how you do you it? Thanks.

Are you using #aqmfrom or %aqmfrom? It needs to be %.

The following is a simple test task I created when I first tried the plugin. It works fine. The test profile triggered from a match to %aqmfrom.

Test Enter (15)
   A1: Variable Set [ Name:%emailtest To:%aqmfrom Do Maths:Off Append:Off ]
   A2: Popup [ Title: Text:%emailtest
%aqmsubject
%aqmtime
%aqmdate Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ]
   A3: Music Play [ File:media/notifications/Minimal Tone.mp3 Start:0 Loop:Off Stream:3 ]


Scott

pezboy

  • Newbie
  • *
  • Posts: 3
Re: Integration with Tasker
« Reply #38 on: July 30, 2014, 07:38:41 pm »
@mabahj- I'm using Tasker 4.4u1 and Aquamail 1.4.1-53-beta6. I can't seem to get any data populated from the #aqmfrom or other Aquamail variables. With K9, a received email triggers the population of the variables; is this different with Aquamail? Could you explain how you do you it? Thanks.

Are you using #aqmfrom or %aqmfrom? It needs to be %.

The following is a simple test task I created when I first tried the plugin. It works fine. The test profile triggered from a match to %aqmfrom.

Test Enter (15)
   A1: Variable Set [ Name:%emailtest To:%aqmfrom Do Maths:Off Append:Off ]
   A2: Popup [ Title: Text:%emailtest
%aqmsubject
%aqmtime
%aqmdate Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ]
   A3: Music Play [ File:media/notifications/Minimal Tone.mp3 Start:0 Loop:Off Stream:3 ]


Scott


Thanks for the reply Scott. I was using %aqmfrom, sorry, typo on my part. I was also able to get it to populate. I first attempted to do this at 3am and couldn't get it to work because I was directly referencing the %aqm variables in Tasker instead of using them to set other variables. I forgot that the %EFROM variable is built in to Tasker so it's data is constant, whereas the %aqm variables clear immediately after they are triggered. Thanks for your help.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Integration with Tasker
« Reply #39 on: July 31, 2014, 02:10:02 am »
I'm really glad to see there is interest in this feature.

The variables filled by AquaMail all start with "%aqm..." (surprise!)

Tasker's "task editor" (where you actually use those variables) has a button on the right side showing all those variables as a list.

The button looks like a stack of color samples you'd find in a home renovation store.

Yes, K9 support and all of its variables are built into Tasker (as opposed to provided by K9 as a plugin).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

SteveM51

  • Newbie
  • *
  • Posts: 1
Re: Integration with Tasker
« Reply #40 on: September 23, 2014, 11:01:23 am »
I would dearly like to be able to get the message body into a Tasker variable.

With long email trails all using the same subject, I need to see the first part of the message in order to decide whether or not I need to urgently read the message.

With the body in a variable I can get Tasker to extract the first paragraph and send it to my Gear watch.

mabahj

  • Newbie
  • *
  • Posts: 40
Re: Integration with Tasker
« Reply #41 on: September 23, 2014, 12:08:35 pm »
+1 on getting the message body into a variable.

Scott_Miller

  • Newbie
  • *
  • Posts: 34
Re: Integration with Tasker
« Reply #42 on: September 23, 2014, 02:46:07 pm »
There seems to be some interest in having the message body, or at least a portion of it, made available to Tasker. Perhaps the first 100-150 characters. You mentioned built in rules earlier in this thread, but not everyone follows the same workflow. And it's impossible for one developer to think of every possible thing the user needs. Adding this ability provides a lot of flexibility for those that use both Tasker and Aqua Mail, not to mention, I think it would be unique to Aqua Mail. If you were to search through the Tasker forum, you would find several conversations where this has been requested, not specifically with Aqua Mail. Thanks for considering it.

Scott


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Integration with Tasker
« Reply #43 on: September 26, 2014, 02:18:09 am »
Umm... This can be made available if you've not set the app to "download just headers when checking mail".

The default settings is to preload some of message text. Are you guys ok with that caveat?
« Last Edit: September 26, 2014, 01:37:22 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Scott_Miller

  • Newbie
  • *
  • Posts: 34
Re: Integration with Tasker
« Reply #44 on: September 26, 2014, 02:53:43 am »
Umm... This can only possible be made available if you've not set the app to "download just headers when checking mail".

The default settings is to preload some of message text. Are you guys ok with that caveat?

I can't speak for everyone, certainly, but I am totally ok with that. Mine is set to download 5K, so it's not a problem for me. It seems like a good compromise, in any case.

Scott