AquaMail Forum

English - Android => Bug reports => Topic started by: jmccabe on December 06, 2015, 08:23:00 pm

Title: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 06, 2015, 08:23:00 pm
Hi,

I hope I'm just missing something but my AquaMail has just been updated to 1.6.0.1 and now, when I open to the Smart Folder, then open a message and delete it, it's returning to the Smart Folder message list instead of moving to the "previous" message. Is this a known issue or deliberate and there's a new setting I can't find?

My "Message View" options has "After deleting a message" -> "Go to previous message", and "Previous message is older" unchecked. It seems to still work in the trash folder, but not in the Smart Folder.

Thanks
John
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: Kostya Vasilyev on December 06, 2015, 10:55:32 pm
Can't reproduce.

Maybe you should be selecting "move to next"?

My preference is to have "previous is older" checked (so "previous" means "message with an earlier date/time, older") and it's "to the left" when swiping.

With that, "move to previous after delete" means "move to the next message with earlier date/time, older, to the left".

For you, "move to previous after delete" would mean "move to the next message with later date/time, newer, to the right". And if you're deleting the newest message, then there is none to move to.
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 12:08:45 am
Hi Kostya,

Thanks for your reply.

For what it's worth, I've been using AquaMail for a few years now and, certainly, for almost all of that time I've had the options set the way I mentioned but the behaviour has only changed in the last 24 hours or so.

I have 9 email accounts configured, although only 1 of them has frequent updates.

If I go into the "Inbox" of that one account, scroll down and read a message, then delete it from the message view, the next (newer) message slides in from the left as has been the behaviour for as long as I can remember.

If I go into the Smart Folder, go to any random message in the list (let's say the 3rd one down in a list of 5) and open it in the message view then delete it, it now returns to the message list.

I've now tried checking the "Previous message is older" box with both "Go to previous message" and "Go to next message" set in "After deleting a message" and, in all cases, from the Smart Folder, deleting a message takes me back to the message list. In all cases doing the same thing from the Inbox of my email account does what you would expect, one of the messages adjacent to the deleted message is displayed.

Do you have debugging enabled in this section of code? I can switch the debug on and send you a log if it's of any help.

John
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 12:27:32 am
Kostya,

In case it helps anyway, here's a log (zipped - it would be 1/2MByte otherwise!). As mentioned in my first message here, the settings are "Go to previous message" for "After deleting a message", and "Previous message is older" is unchecked.

What I did here was:

1) Opened Smart Folder
2) Viewed an email somewhere in the middle of the list
3) Deleted it from the  message view (AquaMail returned to the message list)
4) Navigated to my deleted messages folder
5) Found the message I'd just deleted
6) Set it as unread
7) Moved it to the Inbox
8) Navigated to my Inbox
9) Found the same message (I think - at least, it was from the same source :-)
10) Viewed it
11) Deleted it from the  message view (AquaMail showed the next most recent message in the message view, as expected)
12) Pressed the back key etc and switched debug logging off

I'd appreciate it if you could take a look and see if there's anything that appears wrong in there.

John
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 10:56:16 am
Hi Kostya,

Something else I've just noticed is that swipe left or right isn't working in my smart folder. It looks like the message view from the smart folder doesn't seem to be aware of other messages in that folder.

I'd really appreciate any help you can give with this. Let me know if there's anything else I can send you, for example an export of the database etc. I'd prefer not to have to delete all my data then restore settings if possible.

John

Sent from my D5803 using Tapatalk

Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 03:23:19 pm
I've just noticed someone else mentioned the swipe issue in http://www.aqua-mail.com/forum/index.php?topic=4191.0. My guess is that both these are related.

Sent from my D5803 using Tapatalk

Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: Kostya Vasilyev on December 07, 2015, 05:11:27 pm
Thanks for the log, I will take a look.

The "last 24 hours or so" part is very confusing, did you use prior 1.6.0.0 or maybe 1.6.0-dev versions ("beta", test version)?
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: Kostya Vasilyev on December 07, 2015, 05:18:44 pm
@jmccabe -- and you have conversations turned off?

What is the sort order in your smart folder (in app settings or changed via menu)?

And there were only 6 or so messages in the smart folder (in the log), correct?
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 05:26:56 pm
Thanks Kostya,

I've never used any beta/dev versions, but my phone is set to just update when I'm on Wi-Fi so it would've picked up whatever versions were available in Google Play. I noticed it got updated to 1.6.0.2 last night but I hadn't noticed this issue before Saturday, at which point my phone showed version 1.6.0.1. I guess it could've been there before that but I don't think Aqua Mail has been updated on the phone for a good couple of weeks or, at least, I may not have noticed.

I have conversations switched off, yes. There were only 6 messages in the smart folder at the time. The Default sort order in the "Smart Folder" settings is "By date/time". I have a vague memory of using the "Sort" option in the menu a few days ago, but the phone has been restarted since then.

Hope this helps

John
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: Kostya Vasilyev on December 07, 2015, 05:34:18 pm
Thank you.

Can you also let me know if you *ever* enabled conversations?
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: Kostya Vasilyev on December 07, 2015, 05:46:35 pm
Looks like you opened an unread message, causing it to be marked as read.

What is your smart folder's "time period" setting (swipe in from the left to see the list of choices).

Perhaps the message was not "within" this time period?

And was included when you opened it since it was unread, but was dropped from the smart list immediately because it was marked read, and without being unread, it was too old to be included there?

A simple way to check:

- Mark the message unread
- Open the smart folder
- The message should be there
- Open it, causing it to be marked read
- Back out to the smart folder's message list

--- >>> will the message still be there? I would guess "not"?


Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 05:51:24 pm
Kostya

I've never enabled conversations.

The Smart Folder is set to show only unread messages, there is no "time period" set.

When I set a message as unread, it shows up in the smart folder. When I read it in the smart folder, it becomes marked as unread, so disappears from the smart folder.

John
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: mikeone on December 07, 2015, 05:56:40 pm
Kostya

I've never enabled conversations.

The Smart Folder is set to show only unread messages, there is no "time period" set.

When I set a message as unread, it shows up in the smart folder. When I read it in the smart folder, it becomes marked as unread, so disappears from the smart folder.

John
Hi John,
Your last post is confusing me...

> The Smart Folder is set to show only unread messages, there is no "time period" set.
Okay, understand

> When I set a message as unread, it shows up in the smart folder Thom.
Okay, understand

> When I read it in the smart folder, it becomes marked as unread, so disappears from the smart folder.
This should be: "... it becomes marked as read..."
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 05:58:17 pm
That's not surprising - the last line should be:

"When I set a message as unread, it shows up in the smart folder. When I read it in the smart folder, it becomes marked as READ, so disappears from the smart folder."

Sorry
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: mikeone on December 07, 2015, 06:05:22 pm
That's not surprising - the last line should be:

"When I set a message as unread, it shows up in the smart folder. When I read it in the smart folder, it becomes marked as READ, so disappears from the smart folder."

Sorry
Okay, that makes sense  8)
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: Kostya Vasilyev on December 07, 2015, 06:33:46 pm
That's what it is.

Before 1.6.0 I was able to "take a snapshot" of a folder's message list (plain folder or smart folder) and use that for prev/next message even if that message would not be seen in the smart folder.

In 1.6.0 I am not able to do this anymore.

So what happens is -- the current message getting marked read causes it to get dropped from the smart folder. Even if the smart folder is not on the screen at the time, the app makes the same data query when computing prev/next messages, and doesn't find even the currently showing one in the list.

Well, at least it's not as mysterious as it seemed originally. Now I just need to find a way to kludge it :)

Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 06:39:56 pm
That's fine, as long as your kludge isn't to get rid of the "unread only" functionality; I don't really want to go back to K9! :-)
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: Kostya Vasilyev on December 07, 2015, 07:33:17 pm
No, I'm not that evil.

So to summarize -- you have the smart folder showing "only unread" and it's not set to "sort by unread" (which would be redundant anyway)?
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: jmccabe on December 07, 2015, 08:04:11 pm
LOL - I'm glad you're not that evil :-)

In summary, you are correct; the default sort order is by date for the Smart Folder, and it's showing ONLY unread messages.
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: Kostya Vasilyev on December 07, 2015, 08:23:30 pm
I just posted a test build for you (and the other person who reported this), in the other thread about this issue.
Title: Re: Deleting from message view not moving to previous in smart folder (1.6.0.1)
Post by: mikeone on December 07, 2015, 08:57:43 pm
I just posted a test build for you (and the other person who reported this), in the other thread about this issue.

Link to "the other thread":

http://www.aqua-mail.com/forum/index.php?topic=4191.msg22716#msg22716