Author Topic: Tasker variable aqmfrom - how to get be only  (Read 3950 times)

jk12

  • Newbie
  • *
  • Posts: 3
Tasker variable aqmfrom - how to get be only
« on: July 21, 2016, 05:41:01 pm »
How can I get just first name last me from @aqmfrom in tasker? Currently it shows as:
 "FirstName LastName" <email.com>

That's not useful for anything. I have to strip out the name or strip out the email to do anything useful with it. Is there not a "cleaner" variable?

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Tasker variable aqmfrom - how to get be only
« Reply #1 on: July 21, 2016, 06:43:37 pm »
I don't have experience with tasker, but from the mail point of view, in the "From:" field there are only two tokens: the name portion (in the quotation marks or can be without those if only letters are used) and the address (within <>, or without if there is no name portion). Since the name can have any number of words (probably with some character limit), it does not separate into First, Middle, Last, or several last or middle names (as e.g. in case of people of Spanish or Arabic descent).

So, I am not aware of any mail program that parses name into tokens. (Actually, if I remember correctly, pine might be trying to save the contact names in the form "Last; First And The Rest", which sometimes happens to be weird when it is not the actual name, but includes a company name or some other information. So, pine parses the very last token of the name portion as the Last Name.) 
Because of the uncertainty about the actual content of the "name" portion of the From: field, I don't think it would be practical for Aquamail to perform parsing. But that's just my personal opinion. I am not speaking for Kostya.

I cannot speak for tasker and other parsers. They might be able to do what you want.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Tasker variable aqmfrom - how to get be only
« Reply #2 on: July 22, 2016, 01:02:04 am »
Dunno. When I wrote this, I just made it put the original source From value there.

As for what it's useful for -- I guess people check for "contains 'foo@bar.com'" or something? But then I don't use Tasker myself.

Guess what I'm saying is this is the first time that anyone sees this as an issue.

Should I be adding more data, the "stripped down" email address?
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/