Author Topic: Aquamail deleted email sync problem with Zimbra and Beehive  (Read 3512 times)

bstauf@hotmail.com

  • Newbie
  • *
  • Posts: 1
Aquamail deleted email sync problem with Zimbra and Beehive
« on: December 11, 2016, 06:24:29 pm »
This may have nothing to do with Aquamail itself but tech support at my company is clueless so far so I'm posting here in case anyone has run across the same or similar problem or has a suggestion what to try (the same problem below happens with gmail and K9).

The basic problem is that deleting an email in Aquamail on my phone makes the email disappear from all Zimbra/Beehive mail folders.  Beehive still passes the deleted email to my Outlook (Trash) folder, but on the Zimbra web page the email is no longer in any folder i.e. it is removed from Zimbra (Inbox) but does not appear in Zimbra (Trash).
If I delete an email from Outlook (Inbox), it moves from Zimbra (Inbox) to Zimbra (Trash) and to Outlook (Deleted Items) as expected.  If I delete using Zimbra, same thing i.e. they sync properly.  If I move that email from Outlook (Trash) to Outlook (Deleted Items), it reappears in Zimbra (Trash).  So the pattern is:
Outlook (Deleted Items) syncs with Zimbra (Trash).  Outlook (Trash) syncs with Zimbra (Invisible-Trash) which syncs with Android (Trash).  Basically there is no way to get full list of outlook-deleted emails on the phone since it syncs through Zimbra (Invisible-Trash).

I call it Invisible-Trash because clearly the deleted email still exists and Beehive passes it between Android and Outlook, but Zimbra won't display it in the Trash folder so there is a folder that won't display, or some metadata or parameter or something about the email that won't let it display in Zimbra (Trash).

I use Outlook (2013) desktop client mainly along with AquaMail on my Android.  Possibly some missed or invalid parameter or metadata passed from Android to Beehive.  Behavior changes slightly with other settings on the phone like 'keep locally deleted emails' or setting the local 'Trash' folder to sync as a 'plain folder' instead of syncing to 'Deleted', but the server side problem and disappearing emails on Zimbra/Beehive still continues.

My company uses Zimbra for at least the browser email/calendar/contacts interface with Oracle Beehive as the server that Aquamail connects to and as the backend for Outlook (we don't use Exchange).

Any suggestions or similar experience with any kind of resolution greatly appreciated!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Aquamail deleted email sync problem with Zimbra and Beehive
« Reply #1 on: December 11, 2016, 06:34:12 pm »
No idea what Beehive is, sorry, but:

Re: The basic problem is that deleting an email in Aquamail on my phone makes the email disappear from all Zimbra/Beehive mail folders.

Please try this: long press on the account -> options and folders -> IMAP options and turn off "IMAP optimizations".

With these enabled (default), Aqua Mail uses "UID MOVE" (if supported by the server, optional).

With these disabled, Aqua Mail uses a sequence of commands, "UID COPY to dest folder" + "UID STORE +\Deleted" + "UID EXPUNGE".

Maybe it'll help, who knows.

Re: tech support at my company is clueless so far

If they want to see actual commands sent by Aqua Mail, then can do it by enabling the app's debug log:

http://www.aqua-mail.com/?page_id=232

K9 has a logging capability too.

And then they can connect to the server using telnet or openssl and repeat the same commands and then try to vary them a bit to see what the trigger is.
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: Aquamail deleted email sync problem with Zimbra and Beehive
« Reply #2 on: December 11, 2016, 06:44:16 pm »
Quote
Please try this: long press on the account -> options and folders -> IMAP options and turn off "IMAP optimizations".

With these enabled (default), Aqua Mail uses "UID MOVE" (if supported by the server, optional).

With these disabled, Aqua Mail uses a sequence of commands, "UID COPY to dest folder" + "UID STORE +\Deleted" + "UID EXPUNGE".

Maybe it'll help, who knows.

Oops, sorry, this is not true.

Aqua Mail uses "UID MOVE" (if supported by the server) regardless of this setting.

This is an optional IMAP command, the usual process, without it, for moving a message is as above - "copy to dest / mark as deleted in source / expunge from source".

This should make troubleshooting even easier:

1 - Connect, login, SELECT INBOX (using openssl or some other terminal-type program)

2 - Try "UID MOVE" to deleted, check the results in web mail

3 - Try "UID COPY" + "UID STORE +\Deleted" in source + "UID EXPUNGE" in source, check the results in web 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/