Author Topic: Display contacts without a name properly  (Read 4946 times)

baedamichi

  • Newbie
  • *
  • Posts: 6
Display contacts without a name properly
« on: July 24, 2017, 03:20:24 pm »
Hi there community!

I'm quite new to Aqua-Mail, and I mus say I'm quite impressed.
On the first try, everything works as I want it to, with a minor exception:

Contacts which don't have a name (as in first name last name) are not displayed correctly on my android phone.

See attachments for comparison.

In Outlook 2013, the company I use for an example is correctly listed under it's company name, campusLAN GmbH (see attachment outlook.png), even though the name field is empty (see attachment outlook2.png). On Android, Aqua Mail doesn't do that correctly (see attachment Androuid.jpg). It just uses a strange version of the companiy's email address.

This happens to all contacts which are not real people in the sense that I can put a last name or a first name. If there is no email address, Aqua Mail just puts teh phone number where the company name should go.

Of course, this makes my contact list quite confusing, as apparently alphabetical sorting cannot work that way.

Would any of you kind people know of a setting I could make in Aqua Mail to fix this?

Thank you very much!

Peter

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Display contacts without a name properly
« Reply #1 on: July 24, 2017, 08:55:25 pm »
I don't know for sure, - but I am guess that it is because of the field "anzeigen als".
If I understand that correctly, it means "display as". So, it would make sense that Aquamail picks that to display. 
I am sure Kostya will know the exact answer, but in the mean time you can try editing this field (and also deleting it) and seeing how Aquamail would display that e-mail.

baedamichi

  • Newbie
  • *
  • Posts: 6
Re: Display contacts without a name properly
« Reply #2 on: July 25, 2017, 09:35:23 am »
Hi StR

Thanks for your reply.

I checked it out, and there are two fields in question which would make sense to pick to display.

The first one being "Anzeigen als", which you do understand correctly, it means "display as".

The second one would be "Speichern unter", which translates to "Save as".

However, it seems like either Aqua Mail doesn't synchronize these two fields at all or they are not picked to display a contact, I did some testing, see screenshot "Outlook.png". I put the company's name in both fields (save as and display as), made sure it was synced first, but the company is still displayed with the email address from behind (meaning when the email address is info[at]campuslan.de it is displayed as "de, info@campuslan").

By the way, just for your interest, desktop Outlook (2013) works the following way with regard to displaying contacts, according to my tests: If something is written in the "name" field, it uses that. If there is nothing, like in my example, it does not use the "display as" field as would be expected, but the "save as" field.

Peter
« Last Edit: July 25, 2017, 09:36:59 am by baedamichi »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Display contacts without a name properly
« Reply #3 on: July 25, 2017, 08:57:26 pm »
I *think* this is the FileAs field. I'll write it down.
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/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Display contacts without a name properly
« Reply #4 on: July 25, 2017, 09:43:46 pm »
Please try:

https://www.aqua-mail.com/forum/index.php?topic=5919.0

Be sure to long press on the account (in Aqua) -> options and folders -> Exchange options -> turn OFF contact sync -> wait 15-30 seconds -> turn back ON.

This will first delete all already synced contacts, then re-sync them again.

The logic now is:

- If DisplayName is missing
- Use FileAs (if present) <<<<----- Neu in dieser Version
- Use First Name + Last Name (if present)
- Use Email, Phone, IM entry (if present)
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/

baedamichi

  • Newbie
  • *
  • Posts: 6
Re: Display contacts without a name properly
« Reply #5 on: July 25, 2017, 10:32:30 pm »
Wow, that was quick, and yes, it was the "file as" field.

After the update, contact sync works way better, no longer is the email or phone number used when a contact doesn't have a "name".

It's still not completely flawless, if the company name consists of more than one word - in other words, if there's a space in it, the two words are sort of treated like first name last name.

In my example, where the company's name is "filed as" campusLAN GmbH in Outlook 2013 on desktop, on Android it's now shown as "GmbH, campusLAN".

Not sure if this is an issue with Exchange or Aquamail though.

Anyway, the quick way Kostya reacted to my post convinced me, just bought "Pro".

Have a wonderful evening lads!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Display contacts without a name properly
« Reply #6 on: July 27, 2017, 02:33:35 pm »
Quote
It's still not completely flawless, if the company name consists of more than one word - in other words, if there's a space in it, the two words are sort of treated like first name last name.

This is probably Android Contacts "trying to be clever".

Aqua does not do any splitting like that, it just puts whatever was in FileAs into Android's DISPLAY_NAME field.
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/

baedamichi

  • Newbie
  • *
  • Posts: 6
Re: Display contacts without a name properly
« Reply #7 on: July 29, 2017, 10:45:47 am »
Quote
This is probably Android Contacts "trying to be clever".

I agree with you. Now that I've done further testing, I wonder if Android Contacts even has the equivalent of the "file_as" field. DISPLAY_NAME seems to be just the name of the contact, and unfortunately, Android Contacts insists on that being put together by at least a last name and a first name.

Does anyone know of an Android Contacts app which has the full equivalent of Microsoft Exchange's "file as" field?

Peter

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Display contacts without a name properly
« Reply #8 on: July 30, 2017, 02:06:41 pm »
Re: wonder if Android Contacts even has the equivalent of the "file_as" field

Not that I know of.

A Contact consists of one or more Data items, the "names" come from the StructuredName item:

https://developer.android.com/reference/android/provider/ContactsContract.html

https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.StructuredName.html
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/

baedamichi

  • Newbie
  • *
  • Posts: 6
Re: Display contacts without a name properly
« Reply #9 on: July 30, 2017, 02:17:47 pm »
Hi

Thanks for your reply Kostya.

I found my personal workaround, when I got a company without a person, I just enter the company name into the "last name" field as well, then those contacts are displayed / listed in Android correctly.

It might theoretically be wrong as a company's name is nit a "last name", but what do I care, it does the job for me.

Best regards, and thanks for the wonderful app!

Peter

JSSMarathon

  • Newbie
  • *
  • Posts: 10
Re: Display contacts without a name properly
« Reply #10 on: January 13, 2018, 06:41:38 pm »
Good morning,

I know this is an old topic, but I haven't seen any other responses. I a new user to Aqua mail and like the program. However, I have encountered this issue.

I using my exchange account and have over 1700 contacts, however, contact that are just business contacts and do not have any data entered in the field for "name" seem to automatically enter the business name into that field only on the phone, and I therefore displayed incorrectly.

I have tried to download the APK listed in a companion post in these forums as a solution, however it will not load and says it is corrupt

I would really like to continue using the program that I find this bug in the display of contacts to be quite annoying.

I cannot be the only one who has the problem. What am I doing wrong or is there a fix?

Thanks in advance

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Display contacts without a name properly
« Reply #11 on: January 14, 2018, 12:56:06 am »
Re: apk

It's not corrupted but is much older than our "official version" so Android won't let you "downgrade in place". The message is misleading.

Re: display name issue

Please capture this in the app's debug log with "raw session data" enabled (see link below in my signature).

With the log enabled please:

- Use Outlook or Web Mail and make a small "dummy" change to a contact (such as add a phone # that you can delete later, or add a character to the address, anything really).

- Wait for it to sync into Web Mail (mail server)

- On Android, in Aqua Mail, refresh the account from the app's main screen (whole account), this will trigger a contact sync as well.

- Make sure that the change you made (first step) is synced into the device's Contacts

- Finally send the log to support / at / aqua-mail / dot com with a link to this post and additional info on what was wrong and how you expected things to look (based on Outlook or web mail).

Thanks
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/

JSSMarathon

  • Newbie
  • *
  • Posts: 10
Re: Display contacts without a name properly
« Reply #12 on: January 14, 2018, 07:17:35 pm »
Good morning and thank you for the response!

Let me tell you where I stand at this point:

I have installed AquaMail-market-1.14.0-743-dev-835493c79daf.apk

The workaround that I determined for the contacts view in the Samsung contacts app is to sort by "last name" and use name format "1st, last".

That at least solves the problem of the view of conacts where there is no name, and only a company name, being filled in by Aqua Mail and displaying contacts with their business name, essentially backwards. Iin other words, something such as "Google Company, Inc." appearing as "Company, Google Inc.

I'm sure you understand what I'm describing. But let me know if you need further clarification.

I have just sent two log files as requested. The 1st one is a log of the way it existed before the addition of the dummy entry that you requested in your email above, and the 2nd is a log after the addition of the dummy entry, "ABC, Co."

Not sure if you can tell, but the entry in Outlook is only a "Company name" but the entry as it appears in the contact on the phone has filled in a name field as opposed to leaving the name field blank and looking to the "company name" field for its data.

Hope that helps to find an answer to this issue

Thank you again in advance.