Author Topic: Question re:pattern matching in Tasker  (Read 3395 times)

tbm

  • Newbie
  • *
  • Posts: 4
Question re:pattern matching in Tasker
« on: August 27, 2015, 07:49:03 pm »
Firstly, great app, just bought today to replace Kaiten :)

With Kaiten & Tasker I used to have 2 profiles that together would do the following:

If an email subject contains the text "payment received" (*payment received*) it would play a specific sound file.
If an email subject DOESN'T contain text "payment received" (!*payment received*) it would play a different sound file.

This way it would play 1 of 2 sound files depending on the subject of the email.

In my business when I make a sale through PayPal I need to manually do a bunch of things so this used to help me streamline things. So I could instantly tell if a payment had come through or if it was something less urgent (i.e. everything else!).

With the Aquamail plugin & Tasker the first rule works fine but the plugin doesn't seem to recognise "!" (a NOT pattern match). Is the NOT match command (!) supposed to work in the Tasker plugin or is it just not implemented? I know K9 support was built in to Tasker so maybe this is just a limitation of the plugin?

Not a big problem but would be helpful if I can do the same thing with Aqua!

Thank you :)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Question re:pattern matching in Tasker
« Reply #1 on: August 27, 2015, 10:03:40 pm »
In general, regular expressions are not very good at detecting things that *don't* match.

I suppose the "!" character in K9 / Tasker is interpreted "outside" the pattern, but then I haven't seen the code, this is purely a guess.

Oh, and you're right, the K9 / Tasker integration is "baked into" Tasker which "reaches into" K9 Mail.

AquaMail, on the other hand, uses the general purpose "event API" which was added into Tasker more recently (than K9 support).
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/

tbm

  • Newbie
  • *
  • Posts: 4
Re: Question re:pattern matching in Tasker
« Reply #2 on: August 28, 2015, 02:08:18 am »
OK, thanks Kostya. With a bit of playing around I'm sure I can find a workaround.

And thanks again - great app and certainly the best Android mail client I've yet to come across (and I've tried quite a few!)