Author Topic: Draft message is not saved even when the app says "Draft saved"  (Read 4637 times)

StR

  • Hero Member
  • *****
  • Posts: 1558
(Tested on the latest G-Play version)
When I am composing a new message, and the 'To:" address does not have the "@" sign, the app refuses to save the draft. (But it happily save a message with a completely empty address.)
It is an incomplete message, a draft. Why should it care? Aquamail at best may remind, showing a warning, but should not refuse to save the draft when the address is incomplete. There are many use cases when it is needed. E.g. if I don't have a particular address on the mobile device (or specific mobile device), but I have it on my laptop/other device, I can just draft what I need at the moment, marking the name/alias of the recipient, save to Drafts, and then send it from a different device.

Yet worse, and even much more common use case that can lead to a loss of drafted e-mail: I am drafting a message, the address is incomplete, but I am interrupted (by a phone call, Skype/Viber call, needing to switch off the phone, whatever...). Aquamail goes into background. It informs (via a toast message) that the draft is saved, while it is not! Even if someone would claim that the behavior described in the first paragraph above is "a feature", this is definitely a bug!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Draft message is not saved even when the app says "Draft saved"
« Reply #1 on: June 06, 2017, 10:28:31 pm »
You know I just tried it and saving (from an action bar icon) worked. So saving upon a phone call would work too.

What could be different? Did you perhaps turn off "contact chips" in app settings -> composing and sending?
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: Draft message is not saved even when the app says "Draft saved"
« Reply #2 on: June 06, 2017, 11:06:26 pm »
You know I just tried it and saving (from an action bar icon) worked. So saving upon a phone call would work too.

What could be different? Did you perhaps turn off "contact chips" in app settings -> composing and sending?
I don't know what is different.
Settings -> "Contacts" -> Contact chips is enabled.  (Search in the settings is useful! ;) )
What else in the settings should I check?

Here is the exact scenario that leads to the bug:
(version 1.10.0-403 with 2-panel UI on a Samsung Tab4).
Tap on the pen at the top -> composition window opens
To:  type "test"
("test" is converted to a red chip at this point)
Message subject: type "test"
Message body: type "test"
Tap on the floppy image (ha-ha!) -> exclamation mark appears on the right end of the "To:" line.
The ways to save the draft at this point are:
1. remove "test" from the To: field, making it empty
2. Tap on the red chip and add "@domain.com" to it
3. (I just discovered this) tap on the "go back" hard key of the tablet, at which Aquamail offers a menu "Draft editing" with three options "save and exit", "keep editing", "Discard changes". The first one does work - it saves the draft.

Note also, that if I tap on the tablet's "switch" (multiple windows) hard key, and switch to a different app, Aquamail displays "saved the draft" message, but it doesn't.

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Draft message is not saved even when the app says "Draft saved"
« Reply #3 on: June 07, 2017, 10:49:37 pm »
Update: The same inability to save a message with incomplete address in To: is observed with an old (1.6.x) version on a different device. Chips are also enabled in it.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Draft message is not saved even when the app says "Draft saved"
« Reply #4 on: June 09, 2017, 08:56:40 pm »
Oh I see.

The draft actually does get saved (on a tablet where "save" is an icon you should see it go "pale" (disabled)).

I'll see if we can remove the error indicator (the small icon on the right) but this may be complicated - I think this view validates when it loses focus.
« Last Edit: June 09, 2017, 09:16:54 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/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Draft message is not saved even when the app says "Draft saved"
« Reply #5 on: June 09, 2017, 09:17:04 pm »
Wrong, wrong, wrong.

Fixing.
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
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: Draft message is not saved even when the app says "Draft saved"
« Reply #7 on: June 10, 2017, 05:55:25 am »
https://www.aqua-mail.com/forum/index.php?topic=5797.0

Fixed in build 436.

Thank you!

I just tried it. It is mostly fixed.
One problem that it doesn't save the "invalid" address in the saved draft. Now, Aquamail saves the message but silently removes whichever addresses it considers invalid (missing @ or at least 2nd level domain, i.e. at least one period in the domain part), which is not good. And above all, it's deceiving.

Let me provide a couple of use cases.
1.  I frequently ask people to tell me their e-mail address so that I can send them an e-mail with the information we discussed. (I see people do exactly the same all the time.)  So, they would tell their address  thattrulyyellowwasp at Gmail (or at their company whose domain I know, say, google.com). I don't need to type the domain name at that point. But if I relied on Aquamail that it saved the draft, I'd loose the e-mail address I'd be thinking I recorded.
2. I am drafting messages while being on the road, and I know that I need to send messages to Kevin, Kolby and Kostya, but I don't have their addresses on my phone or tablet. I will put their name as a placeholder and identifier: "kevin", "kolby", "kostya". This way, I can quickly edit them on the device that has the addresses through whatever means, and quickly complete those addresses.
3. Alternatively I might be drafting a single message to several recipients, carefully selecting who it should be sent to. But I might not have some addresses available. So, I will fill them in later, on a different device, but without the need to make decisions again about who should be included.


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Draft message is not saved even when the app says "Draft saved"
« Reply #8 on: June 11, 2017, 03:47:42 pm »
Re: One problem that it doesn't save the "invalid" address in the saved draft. Now, Aquamail saves the message but silently removes whichever addresses it considers invalid

OK, got it. Will file a new bug.
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: Draft message is not saved even when the app says "Draft saved"
« Reply #9 on: June 13, 2017, 02:52:31 am »
Thank you!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Draft message is not saved even when the app says "Draft saved"
« Reply #10 on: June 30, 2017, 07:51:03 pm »
Should be fixed in 1.11.0-484

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

( I mean it "is" fixed based on "my" tests )
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: Draft message is not saved even when the app says "Draft saved"
« Reply #11 on: June 30, 2017, 09:49:27 pm »
Thank you!

(I will check it, but I might not be able to do it right away due to busy schedule and travel.)

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Draft message is not saved even when the app says "Draft saved"
« Reply #12 on: July 07, 2017, 01:39:42 am »
Great! I was unable to force it failing here.  :D

(It still doesn't reflow on zoom though and doesn't write "War and peace"...  I am happy about the latter. ;) )

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Draft message is not saved even when the app says "Draft saved"
« Reply #13 on: July 07, 2017, 10:23:08 pm »
Re: Great! I was unable to force it failing here

Copacetic!
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/