Author Topic: Deleted items reappear  (Read 19924 times)

bedohave

  • Newbie
  • *
  • Posts: 2
Deleted items reappear
« on: December 06, 2012, 07:53:39 pm »
Hello Kostya,

In one of my IMAP accounts, deleted items reappear in the inbox.

WHAT I DO and WHAT HAPPENS:
  • Delete an email from this IMAP account. It doesn't matter whether I delete it while the email is open or from the list of emails. And the problem persists regardless of whether I try to delete just one from the list or many.
  • The email disappears from the list of emails. It seems to have been moved to the Trash folder. No warnings or errors appear.
  • After I press the refresh button (or whenever Aqua Mail automatically resyncs the inbox), the deleted email reappears on the list of emails. It is not in the Trash folder.

I will send you a debug log to your kmansoft address.

Other Info:
  • I can delete successfully (it stays in the Trash folder) an email using other email apps on my device such as Kaiten, InnoMail, and the native app.
  • My IMAP server is the one associated with my Linux-based hosting account. I don't know the details of it. Probably you can tell by looking in the log file.
  • My other IMAP accounts (gmail based) do not have this problem in Aqua Mail.
  • I am using a Galaxy Nexus with Jelly Bean 4.2.1

If I can provide any other information, please let me know.


Thank you!

Mike

nova461

  • Newbie
  • *
  • Posts: 2
Re: Deleted items reappear
« Reply #1 on: December 06, 2012, 11:44:26 pm »
I've got this same problem.  Likewise on a Galaxy Nexus (T-Mobile) running Android 4.2.1 (JOP40D).  Deleted messages disappear but come back on the next refresh.  I am also using my own hosting with Hostmonster, and I'm trying to use IMAP.  I can delete messages from Outlook, the webmail client, etc.

I can add some information that I get from the log...I found where the delete fails:

2012.12.05 22:53:54.986 -0800   AquaMail   [IMAP.4599] Sending: kman5 UID COPY 29211 "Trash"
2012.12.05 22:53:55.008 -0800   KeepAliveService   Facade:start Synchronizing with <blah>
2012.12.05 22:53:55.010 -0800   KeepAliveReceiver   Scheduling the keep-alive alarms
2012.12.05 22:53:55.014 -0800   KeepAliveService   gNotificationManager.cancel
2012.12.05 22:53:55.017 -0800   MailStateWatcher   Removing account error notification, acct <blah>, id 0x10001
2012.12.05 22:53:55.020 -0800   AquaMail   [CONCTR.1] Service state change: uri: content://org.kman.AquaMail.data/accounts/1/<blah>, what: 120, aux = 0x0001
2012.12.05 22:53:55.023 -0800   AbsFolderMessageListShard   ***** Item count = 49, last visible = 6
2012.12.05 22:53:55.035 -0800   KeepAliveService   onStartCommand, no msg, calling stopForeground
2012.12.05 22:53:55.072 -0800   AquaMail   [IMAP.4599] Result for kman5: 1  Unknown namespace., traffic: 29 read, 30 write
2012.12.05 22:53:55.074 -0800   AquaMail   [SYNC.4599] Move to remote Deleted failed, will delete locally


I have found some similar instances in a web search for this problem, and most of them say to force the root folder to be named "INBOX".  AquaMail appears to have done this by itself.  In my account setup, it says that the Folder prefix is (automatic) as "INBOX.".  I suspect that it's proper to have the dot there, but I tried it without the dot just in case...that didn't help.  In fact, Aqua seemed to override my manual input and revert to "INBOX." and automatic.

I'm loving AquaMail but I really need my deletions to stay deleted.  I'm deleting things like spam, and it's annoying that they keep coming back alive.   8)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Deleted items reappear
« Reply #2 on: December 07, 2012, 03:01:38 am »
Got you. Yes, a serious bug indeed, in my IMAP prefix handling code.

Feel free to install this on top of your current version:

http://www.aqua-mail.com/download/AquaMail-market-1.2.0.5.4.apk
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/

nova461

  • Newbie
  • *
  • Posts: 2
Re: Deleted items reappear
« Reply #3 on: December 07, 2012, 03:11:30 am »
Great!  Thanks for the quick turnaround, Kostya.  I tried the new apk, and deleted messages appear to stay deleted...if I notice anything misbehaving in the next few days, I'll report back.

nullandvoid

  • Newbie
  • *
  • Posts: 2
Re: Deleted items reappear
« Reply #4 on: December 08, 2012, 02:47:00 am »
Is it possible that this same bug is responsible for a syncing problem ? My Sent and Drafts folder are configured to sync but it only works one way (from server to phone). If the message is generated on the phone and saved in Drafts or Sent folder it never makes it to the server. The error in the log is:

2012.12.07 16:20:44.036 -0500   AquaMail   [SYNC.2396] Found 1 messages to upload
[...]
2012.12.07 16:20:44.249 -0500   AquaMail   [SYNC.2396] Message to upload: id = 58, subj = Test2 from aqua, to = whoever,
[...]
2012.12.07 16:20:44.301 -0500   AquaMail   [SMTP_RAW.2396] Should see on server in drafts
2012.12.07 16:20:44.302 -0500   AquaMail   [SYNC.2396] Calculated message size: 448 bytes
2012.12.07 16:20:44.305 -0500   AquaMail   [IMAP.2396] Sending: kman4 APPEND "Drafts" (\Seen) " 7-Dec-2012 16:14:02 -0500" {448}
2012.12.07 16:20:44.317 -0500   KeepAliveService   onStartCommand msg = Synchronizing with @netgalaxy.ca
2012.12.07 16:20:44.326 -0500   AquaMail   [IMAP_RAW.2396] Data is: kman4 NO Unknown namespace.
2012.12.07 16:20:44.328 -0500   AquaMail   [IMAP_RAW.2396] Checking for literal line: kman4 NO Unknown namespace.
2012.12.07 16:20:44.330 -0500   AquaMail   [IMAP.2396] Result for kman4: 2 kman4 NO Unknown namespace., traffic: 29 read, 66 write
[...]

Shoud I apply the same fix or wait for the next version ? It's not a show-stopper...I love the app ! Thanks.



Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Deleted items reappear
« Reply #5 on: December 08, 2012, 03:11:52 am »
Yes, same bug.

Fixed in 1.2.0.6, released a couple of hours ago.
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/

nullandvoid

  • Newbie
  • *
  • Posts: 2
Re: Deleted items reappear
« Reply #6 on: December 08, 2012, 07:52:30 am »
Awesome ! Thanks.

crazygravy

  • Newbie
  • *
  • Posts: 3
Re: Deleted items reappear
« Reply #7 on: December 13, 2012, 03:34:22 pm »
St8ll having issues with my IMAP Gmail account and deleted email reappearing; even with the newest build. If I delete a second time they are deleted locally but are still in Gmal's webmail page when I open it in a browser.

Too, and I'm not sure this is Aquamail s9mething comes up every 10 minutes or so that says refresh failed. Yet I can see nothing that failed. Unless that is tied into the issue above as well?

Bob

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Deleted items reappear
« Reply #8 on: December 15, 2012, 03:12:29 am »
How do you delete your messages?

For Gmail, if you want delete them for good, you should be moving them into the Deleted folder, which should be set up to sync with [Gmail]/Trash on the server.

The latter should have been set up automatically. The former is the default unless you've changed it or using Menu / Delete now (which only removes the current label).

As for refresh error, could be due to temporarily poor Internet connection. Should fix itself if the network becomes good again.
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/

crazygravy

  • Newbie
  • *
  • Posts: 3
Re: Deleted items reappear
« Reply #9 on: December 15, 2012, 03:35:57 am »
FYI - It's set up as an IMAP. The deleted folder is synced with the Trash folder in Gmail. I am deleting by clicking the X at the bottom when the message is displayed. Strange thing is if I go to he whole list of messages, check the ones I want to delete, then click Delete at the top they stay deleted.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Deleted items reappear
« Reply #10 on: December 19, 2012, 03:55:07 am »
Ah, the X does not move to the trash, it deletes the message right away -- which Gmail treats as removing the current label from the message, but keeping it in [Gmail]/All mail.

And if you're looking in the [Gmail]/All mail folder, the message won't be deleted, Gmail will keep it on the server as the "last resort" place.

The server behaves (for IMAP) as if it's deleting the message, then on the next mail check it's still there, and even the "deleted" flag is cleared. In other words, the server lies to the app to make All mail special.

This only applies to the All mail folder, though, as far as I can see.

You can change the default from the X to "Move to deleted" in the account's Options and Folders.
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/

ceeessbee

  • Newbie
  • *
  • Posts: 2
Re: Deleted items reappear
« Reply #11 on: December 29, 2012, 01:48:39 am »
Hi,

Great app, just purchased for Nexus 7. I use mobile devices to keep track of mail using IMAP and this includes deleting them. I don't want to save any deleted items on mobile devices as I download to PC using POP and auto delete from server.  If I delete an email using AquaMail it isn't removed from Gmail/Allmail as you say. this means it will be downloaded with POP which means I have to delete again from my laptop.

However, using mobile app Gmail, this will delete the message completely from Gmail/Inbox and Gmail/Allmail which means it goes into Gmail/Bin, and I don't get it downloaded to my PC.  Is there something special Gmail mobile app is doing that could be used in AquaMail?

Thanks

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Deleted items reappear
« Reply #12 on: December 30, 2012, 03:43:28 am »
Hi,

Great app, just purchased for Nexus 7. I use mobile devices to keep track of mail using IMAP and this includes deleting them. I don't want to save any deleted items on mobile devices as I download to PC using POP and auto delete from server.  If I delete an email using AquaMail it isn't removed from Gmail/Allmail as you say. this means it will be downloaded with POP which means I have to delete again from my laptop.

However, using mobile app Gmail, this will delete the message completely from Gmail/Inbox and Gmail/Allmail which means it goes into Gmail/Bin, and I don't get it downloaded to my PC.  Is there something special Gmail mobile app is doing that could be used in AquaMail?

Thanks

Please be sure to "Move to Deleted" rather than "Delete now" in AquaMail to delete messages from "[Gmail]/All mail". This is the trash can icon in the icon bar and is the default setting.

This will move messages to the server's deleted folder ("[Gmail]/Trash", etc.), where they should not be accessible over POP3 anymore.

"Delete now" does not work for "[Gmail]/All mail" - the server reports that the message is deleted, then it reappears. "Move to deleted" does, and I just re-tested to confirm.

Oh, this also requires that the app's Deleted folder is set to sync with "[Gmail]/Trash", this is set up automatically for @gmail accounts, but won't hurt to check under the account's Options and Folders.
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/

ceeessbee

  • Newbie
  • *
  • Posts: 2
Re: Deleted items reappear
« Reply #13 on: January 04, 2013, 03:28:28 am »
Great response Kostya, this works fine. It was my misunderstanding as to how the deleted folder synced.

Many thanks.  :)