AquaMail Forum

English - Android => General Discussion => Topic started by: trez32 on May 30, 2015, 06:31:33 am

Title: Calendar sync with Exchange
Post by: trez32 on May 30, 2015, 06:31:33 am
I'm having a few issues that I can't seem to figure out.  I'm using AquaMail on both a Moto X and a Samsung Galaxy Tablet 4. 

a) Appointments added via the device's calendar using the AquaMail exchange sync show up on the server as meeting invite from myself to no-one rather than just as a meeting I added.  (see attached server views of a normal meeting and one set up via AquaMail exchange sync)
b) When I add an invitee to a new meeting added via the device's calendar using AquaMail exchange sync, the meeting invite does go out but does not appear in the sent items list as an sent message like invites do when sent from the server itself.
c) When I make a change via the device's calendar using AquaMail exchange sync to an existing meeting that already includes other invitees, the meeting update is never sent to the other invitees.

Thank you in advance for helping.
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on May 30, 2015, 11:34:39 pm
a - I've not seen this "Outlook the app", but Aqua's "self created reminders" appear fine in Outlook 365 "the web site".

I do have Outlook 365 "the Windows app" though, will take a look.

So the only difference is the "you never sent this invite" note?

b - Yes, I never implemented that part, wasn't sure if it was needed, or would be a nuisance

c - Interesting.

When updating an event, I'm asking Exchange to "send notices to all affected attendees". It's a standard part of the "update event" command.

Looks like adding an attendee triggers it (sending to both old and new ones) -- but changing an event's time (or description) doesn't.

This seems wrong, but I also vaguely remember that it did trigger on time / description changes before.

Is your account @ Office 365 or Exchange Online? Maybe something changed there (based on what I vaguely remember)?

What I can do here is ask Exchange to send notifications to all attendees -- I've tested and that works on time and description changes -- what do you think?
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on May 31, 2015, 12:11:56 am
a - Just checked it out in Outlook "the Windows app" -- yep, the reminder "maybe you forgot to send this meeting invite" is there, even though the appointment has no attendees.

Maybe it's getting triggered by the event having an organizer (the user him / her self), but that's who it is creating the event... Not sure, will need to experiment.
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on May 31, 2015, 02:22:26 am
I just fixed "a":

If there are no attendees, I tell the server to "send notifications to None" -- and Outlook "the Windows app" no longer shows appointments with "You haven't sent the invites".

Now, as far as "c":

I've tried telling Exchange to "send notifications to everyone" when updating an event -- but this also triggers when editing an event's color (category) or reminders, which doesn't make sense either.

The way it is in the released version -- asking the server to figure out what's changed and only notify those attendees affected by the actual changes -- is how it's supposed to work, and I (vaguely) believe it did, in the past. I do test my stuff :)

So again, it would help me to know if you're using Office 365 / Exchange Online, because that's where my test account is.
Title: Re: Calendar sync with Exchange
Post by: trez32 on May 31, 2015, 02:39:59 am
Thanks for replying so quickly. You've already fixed A. Regarding B, I assumed it was related to C. Not a big deal if B is addressed. Regarding your question on C, I am using an office 365 account. I would think that changes to time, meeting title, and description are the ones that need to send notifications to attendees. Thanks again!
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on May 31, 2015, 10:00:20 pm
Here is the situation: I'm in the middle of a staged rollout of version 1.5.7, so for every change / fix I have to consider how safe it is.

A - Was safe, already fixed, will post tonight.

B - Requires more changes than I'm comfortable with for the current 1.5.7.

Will add in -dev builds of the next version (1.5.9), to be posted on the forum first, as usual.

C - Serious "hole", needs to be fixed in 1.5.7, even if you're the only one who noticed (or noticed and reported).

Needs additional logic on the app's side, should take a day or two, will post here on the forum -- with the idea of being able to include it in the final step of rolling out 1.5.7, when going from enabled for 50% of all users to enabled for 100% (everyone).
Title: Re: Calendar sync with Exchange
Post by: trez32 on May 31, 2015, 11:31:36 pm
Sounds great. This is probably a dumb question, but I seem to have AquaMail version 1.5.7.10 installed on both devices. Once you post updates to A & C, will it automatically show up as an upgrade version for me to download from the play store, or how should I go about getting those fixes on my devices? Thanks a bunch.
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on May 31, 2015, 11:38:10 pm
Yes, 1.5.7.10 is the latest in Play.

I'm not going to update Play tonight -- only post on the forum (shortly).

The forum .apk's are "built for Play uploading" except I don't necessarily upload there every time.

You can freely update the forum versions over the Play versions and vice versa (as long as you're moving "forward", as Android won't let you downgrade).

In terms of getting an update notification from Play, later, when there is a newer version still -- it's *supposed* to work, and I understand that it does, most of the time (minus the inevitable Play glitches that do happen anyway).
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on June 02, 2015, 01:27:24 am
@trez32 --

I just posted a new build with proper notifications after calendar event editing (with respect to notifying attendees).

Please try it out:

http://www.aqua-mail.com/forum/index.php?topic=3618.0
Title: Re: Calendar sync with Exchange
Post by: trez32 on June 02, 2015, 06:08:15 am
I just tried it out with a few tests, and it seems to be working well. I'll run some more tests on it tomorrow, too. Very impressed with how quickly you responded with a fix. Thanks a bunch. Very happy customer here.
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on June 02, 2015, 12:37:42 pm
Great, please let me know how those more tests go.

This issue / bug deserved to be taken seriously, so thanks for reporting it in the first place.
Title: Re: Calendar sync with Exchange
Post by: trez32 on June 03, 2015, 12:46:55 am
I did a lot of testing today, and I'm a little confused by the results.  The fixes for C and for A seem to be working fine.  However, I did discover what seems to be an issue that has me concerned.  For meetings that were originally set up via AquaMail or via the O365 server (accessed on a browser), no problems.  However, for meetings that both (a) were orginally set up via the Microsoft Outlook desktop app that's synced with O365 (and has been used a lot with no apparent problems) and (b) have zero other meeting invitees, then this problem occurs:  when I changed either the meeting title or meeting time using the AquaMail app, the change was not synced back to the server.  Oddly enough, if there are other invitees, then AquaMail syncs the title or time change back to the server as expected (and the other invitees are notified).  Also, if the meeting was originally set up via AquaMail or via the O365 server, then AquaMail syncs the title or time change back to the server as expected.  I know this sounds odd, but I've tested it a few different ways, and I'm pretty confident in the results.  Any idea what's going on?
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on June 03, 2015, 01:01:09 am
Hmmm.... From the app's point of view, there are events originally created in Android, and events that were originally synced from the server.

How they got to the server is irrelevant (Outlook 365 / web or Outlook for Windows)... or "should be" -- since you're obviously seeing a difference.

Wonder if you could capture the issue in the app's debug log -- from creating an appointment in Outlook for Windows, to syncing it from there to the server (those parts won't be in the log, it's just to start from a clean slate) -- to syncing the new event to Android, and finally editing on Android and syncing (or trying to sync) to the server.

I will try to test this scenario too, but logging could be useful just in case I'm not able to reproduce.

Logging is described here: http://www.aqua-mail.com/?page_id=232 under "Creating a log if something doesn’t work right".
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on June 03, 2015, 01:05:03 am
Oh, could you also clarify if this:

Quote
a) were orginally set up via the Microsoft Outlook desktop app that's synced with O365 (and has been used a lot with no apparent problems) and (b) have zero other meeting invitees

means two separate scenarios --

a) meetings with attendees, created in Outlook for Windows and b) appointments with zero attendees, created in Outlook for Windows

or one scenario --

meetings without attendees (appointments) created in Outlook for Windows?

Title: Re: Calendar sync with Exchange
Post by: trez32 on June 03, 2015, 02:38:00 am
I'll give the logging a try, but I'm out right now so it will be a while. In the meantime, just to clarify, it is one scenario where the meeting is created in outlook for Windows AND there are no meeting invitees. Thanks
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on June 03, 2015, 12:01:22 pm
Thank you for clarifying.

I was able to reproduce last night.

1 -

When Outlook for Windows creates appointments, it adds the account itself as an attendee, confusing my code that has to decide "is this an appointment or a meeting".

Office 365 doesn't.

2 -

And then Outlook for Windows doesn't mark appointments with "you are the organizer of this event".

Office 365 does.
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on June 03, 2015, 06:08:07 pm
New version with fixes:

http://www.aqua-mail.com/forum/index.php?topic=3625.0
Title: Re: Calendar sync with Exchange
Post by: trez32 on June 03, 2015, 11:55:05 pm
I tried the new version, and it seems to be working great. Thank you.

As a side note, as I've gone through all this various testing, I've come to believe that it would actually be good to address point B from my original posting. I don't think it's urgent, but it probably should be included in some future fix. That would make AM perform the same way at least the Microsoft family of products do, and more importantly, it gives the user some confirmation that meeting invitees know about recent changes.

In any case, thanks again for addressing the core problems so quickly!
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on June 04, 2015, 12:00:51 am
Thank you for more testing, it's always good to get independent validation.

I agree with you about B (saving sent replies as messages).

Will include it (as a user settable option) in the next "milestone" update, version 1.5.9. There should be a "development" version here on the forum reasonably soon, as usual with all new stuff.

And I'm really glad that you brought it up, so thanks for that.
Title: Re: Calendar sync with Exchange
Post by: trez32 on June 04, 2015, 12:19:55 am
Thanks Kostya.  I'll be on the lookout for the milestone/development version.  I realize that as I've read through other various threads on this forum that you consistently give great service and feedback to everyone with questions.  I'm sure I speak for others when I say that I really appreciate it.

One more quick question please.  I saw somewhere else on the forum from a 2014 posting that push is not possible with Exchange accounts.  Assuming that's still true, does it matter that I've turned push on in the AM settings for my Exchange account (or should I go unselect push for that account)?  Thx
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on June 04, 2015, 12:32:52 am
Yes, sorry, that's still not supported by Aqua.

There is no account level push setting for Exchange accounts either -- but there is an app level setting (in app settings under Mail, receiving).

It's perfectly fine to leave it enabled, Exchange accounts won't use it -- but IMAP accounts need this app level "master switch" to be enabled (it works in conjunction with each account level "IMAP push" toggle).
Title: Re: Calendar sync with Exchange
Post by: trez32 on October 09, 2015, 05:59:59 pm
Hi Kostya - I'm posting in this old topic thread because the problem I just discovered is directly related to the issues you addressed back in early June.  Let me know if you need more background other than reading the original postings.  Here is the description of the current problem.  When modifying an existing meeting via AquaMail to add an invitee, the invitee request is never sent to O365.  (When creating a new meeting via AquaMail that includes an invitee, the invitee request is sent fine to O365.)  I can tell this because O365 is never updated with the invitee, the invitee never receives an invitation, and a sent appointment invite never shows up in even AquaMail's sent items folder.  I believe it's also true that even if other changes to an existing meeting (such as topic or time) are made via AquaMail in addition to adding an invitee, none of the changes are sent to O365 either.

I don't know how long this problem has been around - i.e. whether it's a new problem that didn't exist after you implemented the original fixes back in June, or whether it's always been a problem that we didn't catch back then. I just discovered the problem for the first time yesterday when I realized O365 and AquaMail were out-of-sync for meeting I have this afternoon.

Please let me know if you need more of a description or specific examples.  Thank you.
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on October 09, 2015, 07:25:56 pm
Hmmmm... Believe I tested this scenario.

Is it something you can reproduce consistently? I will try too (with my Office 365 account).

PS -- is the meeting originally created without attendees at all (as an appointment) or with _some_?
Title: Re: Calendar sync with Exchange
Post by: trez32 on October 09, 2015, 07:32:42 pm
Yes, I think we tested the scenario back then, too.  And, yes, I have been able to reproduce it consistently this morning.  And, yes, the meeting is originally created with no attendees.  Thanks.
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on October 10, 2015, 09:50:45 pm
Yes, I believe we tested this exact scenario back then. I'll take a look. Server software gets updates too :)
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on October 10, 2015, 11:14:33 pm
@trez32 -- just tried it.

- Created an appointment (no attendees) in Google Calendar app, saved

- Synced to server, checked in Office 365 web mail

- Edited in Google Calendar adding an attendee, saved

- Synced to server, checked in Office 365 web mail (the just added attendee was there)

- Checked attendee's email, the expected notification did arrive

I'm having to ask for a debug log (with "raw message data" so I can see actual data exchange), see link in my signature, below.
Title: Re: Calendar sync with Exchange
Post by: trez32 on October 28, 2015, 05:24:19 am
Sorry for the slow reply.  I just replaced my Android phone with a newer one, and I wanted to see if that would eliminate the issue since you weren't able to recreate it.  Unfortunately, I was indeed able to recreate the issue on the new phone (Galaxy S6 Edge).  I just emailed you the debug log that covered three different cases, all with AquaMail - O365 sync issues related to a meeting invitee.  See the attached document for a detailed description of the three test cases and the sync issues with each of them.  Please let me know if there's any other help or information I can provide.

Thank you.
Title: Re: Calendar sync with Exchange
Post by: Kostya Vasilyev on October 28, 2015, 09:09:26 pm
Thank you, I will take a look.

( aside: wow, Libre Office was able to open a .docx file! )