Author Topic: Version 1.6.1.0-dev4.8 - "work in progress"  (Read 7930 times)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Version 1.6.1.0-dev4.8 - "work in progress"
« on: February 09, 2016, 12:45:00 am »
[HTTP] http://www.aqua-mail.com/download/AquaMail-market-1.6.1.0-dev4.8.apk

[HTTPS] https://www.aqua-mail.com/download/AquaMail-market-1.6.1.0-dev4.8.apk

---

+ Settings -> message list -> "tap header to select".

+ Settings -> message list -> "tap anywhere to select".

+ When IMAP "special" server names change (e.g. language change), try to remap to new names.

About folders:

This has been an issue for a long time.

Some mail services (e.g. Gmail) use localized names for "special" folders (at least Sent, Deleted, Drafts, Spam) which change when the user changes his/her profile language, or the language changes "on its own" (computers, shrug).

IMAP folders are identified by name and name only.

Therefore, when server folder names change, it results in the app not being able to move messages to Deleted, to upload to Drafts or Sent on the server.

The solution was to bring up the account's options and folders -> folders and update the "mapping" using the new (changed) folder names.

Now, with this version, it's enough to just bring up options and folders -> folders, and the app will try to detect the change to "special" folder names, and to properly map to the new names again.

This includes Deleted, Sent, Drafts, Spam and Archive.

The logic also kicks in in the "move message to folder" dialog window, and "open other folders..." dialog window.

So at this point, there is still user action required.

It should be possible to do this remapping automatically (detecting folder related failures and running an folder list refresh), but I'm not going to enable it before knowing that the remapping works and works well.

How do "all other apps" deal with this? K9 Mail (to pick one example), to my knowledge, will happily create those special folders, using its own folder names baked into the app, which may or may not match those used by the server / web mail / other mail apps.

---

+ Настройки - список сообщений - выбор секции по заголовку.

+ Настройки - список сообщений - выбор нажатием в любом месте.

+ При изменении имён "особенных" папок на сервере IMAP, попытаться "воссоединить" папки с новыми именами.
« Last Edit: February 13, 2016, 12:27:54 am 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/

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #1 on: February 09, 2016, 09:24:28 pm »
> Settings -> message list -> "tap header to select"

Kostya, I suggest that, once all messages of date section are selected (after one tap on date header), another tap would unselect the same section messages. It's an expected behavior, in my opinion, especially that it works like that with message selection (tap on icon) or the newly implemented "everywhere" selection.
@Paris Geek:
Yes, very useful suggestion 👍

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #2 on: February 09, 2016, 10:16:06 pm »
Um, maybe. I'll think about it.
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/

bschelst

  • Newbie
  • *
  • Posts: 20
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #3 on: February 09, 2016, 10:40:32 pm »
Fyi: This one crashes all the time if you "swipe down" in the message list.
« Last Edit: February 09, 2016, 10:45:03 pm by bschelst »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #4 on: February 09, 2016, 10:45:16 pm »
@bschelst

Swipe what? Where?

In message list?

Just tried, it's just fine for me. Anyone else?

Can you post or send me (kmansoft / gmail) the app's post-mortem crash log?

It's a text file called log-AquaMail-crash.txt, should be at the root of the phone's large built-in storage (most file managers will open to that location).
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/

bschelst

  • Newbie
  • *
  • Posts: 20
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #5 on: February 09, 2016, 10:54:30 pm »
I emailed the logs

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #6 on: February 09, 2016, 11:14:02 pm »
OK, I see it. Thank you.
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/

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #7 on: February 09, 2016, 11:16:20 pm »
Fyi: This one crashes all the time if you "swipe down" in the message list.
No,, currently I cannot confirm this "swiping issue".

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #8 on: February 09, 2016, 11:18:41 pm »
Doesn't happen on my Samsung S4 Mini with Android 4.4 -- but @bschelst uses a different Samsung model, even though it also runs 4.4.
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/

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #9 on: February 09, 2016, 11:29:26 pm »
How do "all other apps" deal with this? K9 Mail (to pick one example), to my knowledge, will happily create those special folders, using its own folder names baked into the app, which may or may not match those used by the server / web mail / other mail apps.

1) Android (Motorola?) stock (?) app uses "Sent" which might be hard-coded.
I don't know how other Android apps deal with that, but here is what other programs do:
2) pine/alpine they have a default setting in .pinerc (.alpinerc) - e.g. "sent-mail", and unless you configure to be a different folder (e.g. Sent), it would create and use "sent-mail".
3) Thundebird also has some default name, but it might check if one of the standard set ("Sent, Sent Mail" or something like) is present.

I don't think any of these programs would have done anything if the mailbox name would've changed, and would just create a new file with that name. Alpine might (?) actually point out that the "sent-mail" (or whichever name is configured) is unavailable, confirming if you want to create it.
That's what it does whenever you have a non-existing folder in the Fcc: field.

What I don't know is what Gmail and other such service would do after that, when the language would return to the original (English): how would they merge the two "Sent" folders?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #10 on: February 09, 2016, 11:37:49 pm »
Gmail doesn't create extra folders: it renames them.

It's an issue for IMAP third party apps -- since IMAP identifies folders by name and name only.

But the server "knows" which is which.

Changing the language back is nothing special then, the folders gets renamed back (inside same IMAP connection / session even).

Right now a top Russian mail service (Yandex.ru) is randomly and unpredictably changing Russian folder names to English (and for some users, back and forth over and over again).

This is "special" folders I'm talking about -- Sent / Deleted / Drafts / Spam / All Mail (and Important and Starred too, but those have no significance to this app).

---

Anyone using Alpine would understand what happened and fix immediately :)

K9 Mail (and derivatives), IIRC, just creates any missing folders, using their own ideas for names, is still not good -- those are going to be different from the standard folders in web mail (at least) and other apps (possibly).

Thunderbird also has a setting that says "Upload sent messages into <this> folder in <this> account", so I suppose that would break too. Don't know if it will create the folders which have gone missing, or error out when trying to upload or move.
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/

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #11 on: February 09, 2016, 11:51:34 pm »
Gmail doesn't create extra folders: it renames them.

It's an issue for IMAP third party apps -- since IMAP identifies folders by name and name only.

But the server "knows" which is which.

Changing the language back is nothing special then, the folders gets renamed back (inside same IMAP connection / session even).

I understand that.
What I meant about the server is as follows:
Ok, let's say, the original folder was "Sent" (for English). Then on the server it got changed to "Отправленные". In the mean time, the client creates a new folder "Sent" (on the server). Now the server switches the language back from Russian to English. At this point there should be two folders "Sent".
First, would they coexist despite the name collision? Would the server overwrite the newly created pseudo-Sent ? Would it rename it?
And if they would coexist, even though the server know which one is the "special" "Sent", how would it deal with the folder name collision (at the level of the IMAP interface)?

I don't think IMAP defines what happens in the change of the locale. And for that reason, I suspect most servers might not handle it gracefully.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #12 on: February 09, 2016, 11:55:59 pm »
Quote
Ok, let's say, the original folder was "Sent" (for English). Then on the server it got changed to "Отправленные". In the mean time, the client creates a new folder "Sent" (on the server). Now the server switches the language back from Russian to English. At this point there should be two folders "Sent".

Ah, yes, a very good point.

Quote
I don't think IMAP defines what happens in the change of the locale. And for that reason, I suspect most servers might not handle it gracefully.

Yes, IMAP just says "there are things called folders" (mailboxes actually) and "they have names and are identified by them" and "this is how you encode non-ASCII folder names" and finally "there is always an INBOX and it's not case sensitive".

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/

Davey126

  • Sr. Member
  • ****
  • Posts: 258
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #13 on: February 10, 2016, 07:36:42 am »
Fyi: This one crashes all the time if you "swipe down" in the message list.
FYI - Can not duplicate on two 4.4.4 builds (different roms and form factors). Assume 'pull to select' is feature in question but tried other types of vertical swiping as well.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.1.0-dev4.8 - "work in progress"
« Reply #14 on: February 10, 2016, 12:20:08 pm »
Yes, "pull to" (select / refresh).

I couldn't make it happen on a Samsung S4 (mini) with 4.4, or any other device (tried 4.1, 5.1, 6.0).

Anyway, it was a very small but logical change, no big deal.
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/