synchronization issue between MDaemon WebClient... | MDaemon Technologies Community Forum

synchronization issue between MDaemon WebClient and iPhone Flagged Emails


  • We are experiencing a synchronization issue between MDaemon WebClient and iPhone (latest iOS) 26.3.1 using version v25.5.1 of MDaemon.

    Emails that are flagged in WebClient are not consistently appearing as flagged on the iPhone. Some flagged messages do sync correctly, but others do not appear as flagged at all on the iPhone. Currently we have at least four specific examples where the email is clearly flagged in WebClient but the flag does not appear on the iPhone.

    Troubleshooting steps already performed:

    • Verified that Mail Days to Sync on the iPhone is set to No Limit

    • Removed the mail account from the iPhone

    • Re-added the account and allowed a full resync

    Despite this, the same emails remain unflagged on the iPhone.

    Additionally, we noticed another possible related issue: when searching for certain emails using the iPhone Mail search function, the emails do not appear in the results. However, if we manually browse to the folder and scroll through the messages, the email is present.

    Questions:

    1. Is there any known issue with flagged message synchronization between MDaemon WebClient and iOS Mail?

    2. Are there any logs or settings in MDaemon we should review to diagnose why flagged status is not syncing for some messages?



  • There are no known issues wth flagged message synchronization between webmail and iOS.

    If you go to the folder the message is actually stored in, instead of the flagged folder, is it flagged?  

    If you force a refresh on that folder, is the flag added?

    What theme are you using in webmail?

    Are all of the examples of flagged messages not getting the flag synch'd in the same account or are they in different accounts? 

    Are all of the examples of flagged messages not getting the flag synch'd using the same version of iOS?

    Are the messages in the user's mailbox, a shared mailbox, or a public folder?

    If they are in the user's mailbox, what folder are the messages stored in on the server? 

    What version of the ActiveSync protocol is being used by the phone?  (The version is included in the logs, in the examples below protocol version 16.1 was used.)

    Enable debug logging in ActiveSync, (ActiveSync Diagnostics, Set the Log level to Debug).

    Enable XML logging for 1 user that is having the issue.  Or create a new test account, sync it to an iOS device and reproduce the issue.  Once you can consistely reproduce the issue enable XML logging for the user, reproduce the issue again, and then take a look at the logs.  To enable XML logging go to Main | Account Mananger | Select the Account | Edit | ActiveSync Client Settings, Set Archive transactions as XML to YES.  Be aware, this causes every request from the device and response from the server to be logged as XML on disk.  These XML files will include all of the content that is synch'd from the server to the device including message bodies.  When you are done troubleshooting, this should be turned off.

    The session in the AirSync log should look something like this when a message that was already downloaded by the device has the flag enabled in webmail:  (I am testing with a beta version, so it might be slightly different.)

    260311 083724038 I [3DD65349] 0x41330080 Connection: IP:000.000.000.000 SRV:mail.domain.com RM:POST SSL:on UA:Apple-iPhone16C1/2103.66 QS:User=test@user.com&DeviceId=MYID&DeviceType=iPhone&Cmd=Sync LNG:en-US,en;q=0.9 CT=application/vnd.ms-sync.wbxml CL=119 TID:0x000042D0 
    260311 083724038 I [3DD65349] 0x41310044 Connection: Client Info: iPhone (MYID)[16.1]  PK:0 MP:No CMD:0
    260311 083724039 I [3DD65349] 0x41330008 Authenticated: user@domain.com
    260311 083724039 I [3DD65349] 0x41310518 Operation: Sync
    260311 083724040 D [3DD65349] 0x41311836 Options: 0x00006C0E888D
    260311 083724045 D [3DD65349] 0x4131169F CID:CI-00000000000000000000000000002 CSK:2026-03-11T13:18:34.696Z Get:Yes Submit:No Path:Mailbox/Inbox
    260311 083724045 D [3DD65349] 0x41311678 Options: Conflict:Client Delete:Move Filter:5 MIME:0 Window:25
    260311 083724045 D [3DD65349] 0x41311604 BodyPref: Type:Text Trunc:500 AllOrNone:No Preview:0
    260311 083724046 D [3DD65349] 0x41311724 SyncMap Status: CID:CI-00000000000000000000000000002 Records:4 Keys Current:2026-03-11T13:18:34.696Z Expired:2026-03-11T13:15:18.993Z
    260311 083724048 D [3DD65349] 0x41311670 Filter Date:2026-02-08T00:00:00.000L
    260311 083724049 I [3DD65349] 0x4131E005 BETA: Flag Change: ID:md5001000032885.msg IF:0x0029 SF:0x0021 ST:2026-03-11T13:15:11.000Z IT:2026-03-11T13:15:11.000Z MT:2026-03-11T13:15:11.000Z PT:0000-00-00T00:00:00.000Z
    260311 083724049 I [3DD65349] 0x4131160C CID:CI-00000000000000000000000000002 Server Items to Sync:1
    260311 083724049 I [3DD65349] 0x4131160A Change 1 items
    260311 083724049 D [3DD65349] 0x41311616 Change Command:CI-00000000000000000000000000002/md5001000032885.msg
    260311 083724054 D [3DD65349] 0x4131101A Updating Ping Cache for CID: CI-00000000000000000000000000002 HiWater:32885 LastModified:2026-03-11T13:37:13.521Z
    260311 083724055 D [3DD65349] 0x4131165B Saving Partial Sync Request Cache
    260311 083724056 D [3DD65349] 0x4131052C Sent 135 byte response to client (0ms)
    260311 083724056 D [3DD65349] 0x41311725 SyncMap Update: CID:CI-00000000000000000000000000002 Records:4 Keys Current:2026-03-11T13:37:13.521Z Expired:2026-03-11T13:18:34.696Z
    260311 083724058 D [3DD65349] 0x41310530 Status: Sync processing complete
    260311 083724059 I [3DD65349] 0x4131183C Sync session terminating

    And the XML log, which is found in the MDaemon\Logs\AirSync\user@domain.com\MYID\$DATE$\ directory, will look something like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <Sync xmlns="AirSync:" pv="16.1" mv="26.0.0.1" mdas="26.0.0.1rc2" session="3DD65349">
    	<Collections>
    		<Collection xmlns="AirSync:" CollectionId="CI-00000000000000000000000000002" SyncKey="2026-03-11T13:18:34.696Z" Class="Email" Sanitized="1">
    			<SyncKey>2026-03-11T13:37:13.521Z</SyncKey>
    			<CollectionId>CI-00000000000000000000000000002</CollectionId>
    			<Status>1</Status>
    			<Commands>
    				<Change xmlns="AirSync:" ServerId="md5001000032885.msg">
    					<ServerId>md5001000032885.msg</ServerId>
    					<ApplicationData>
    						<Categories xmlns="Email:"/>
    						<Read xmlns="Email:">1</Read>
    						<Flag xmlns="Email:">
    							<FlagStatus xmlns="Email:">2</FlagStatus>
    						</Flag>
    					</ApplicationData>
    				</Change>
    			</Commands>
    		</Collection>
    	</Collections>
    </Sync>

    You can use the session ID from the airsync log to help you find the correct XML request and response.  In my example, the session ID is [3DD65349].

    If you'd like help looking at the logs, please upload your airsync log for the day, along with teh XML logs for the day to https://mdaemon.sharefile.com/r-rc3922c1eed334d4dbf5e34f0bd04ccd6. Please be sure to tell us the email address of the user and if you ahve the sessionID when the flag was set that would be helpful, if not, just let us know the approximate time in the log when it occurs.


  • @Arron

     

    Hi, The user in question has over 237,000 messages, all mainly on inbox. The odd thing is that now that i created a flagged folder and dropped all of his flagged emails into that folder now they appear on iphone. 

     

    Before if i found the email in his inbox on his iphone the email would not be flagged but now that they're in a folder they show the flagged message correctly. 


  • @Arron Update Now the default flagged folder for iphone is now showing all the flagged emails correctly. 


  • I'm glad the flagged emails are working.  Synching 237,000 messags to a mobile device may cause some performance issues on the device.  The only thing I can think of that might have been causing the issue is the Inbox was resynching and could never get caught up, but that is just a guess. 

    Make sure you have Message indexing enabled on the MDaemon server.  In Remote Administration you can find it under Messages and Queues | Message Indexing | Settings.  This will create a search index for every folder in every account and will make searching from ActiveSync clients much faster and better.  With the search working correctly, you don't have to sync the entire Inbox to the device but the user still has access to all the messages vai the search. The user simply searches for messages that are outside of the sync window.  The ActiveSync server uses the message indexing data to find messages in the mailbox and downloads the data it needs to display the search results and message content.


  • @Arron Hi, Indexing was turned off and now its enbled again. I will update if this resolves issues. 


Please login to reply this topic!