4.1.3.1 Synchronizing an E-Mail with an Electronic Voice Mail Attachment
The following example shows a Sync command response ([MS-ASCMD] section 2.2.1.21) returned by the server to the client that contains one e-mail item with an electronic voice mail attachment. The e-mail item data is contained within an Add element ([MS-ASCMD] section 2.2.3.7.2), conveying to the client that the e-mail item (with attachment) needs to be created on the client.
-
<?xml version="1.0" encoding="utf-8"?> <Sync xmlns="AirSync:" xmlns:email="Email:" xmlns:airsyncbase="AirSyncBase:" xmlns:email2="Email2:"> <Collections> <Collection> <SyncKey>1336143213</SyncKey> <CollectionId>20</CollectionId> <Status>1</Status> <Commands> <Add> <ServerId>20:2</ServerId> <ApplicationData> <email:To>"Device User" <someone@example.com></email:To> <email:From>"7125550123" <7125550123></email:From> <email:Subject>Voice Mail from 7125550123 (3 seconds)</email:Subject> <email:DateReceived>2007-11-06T23:42:16.829Z</email:DateReceived> <email:DisplayTo>Device User</email:DisplayTo> <email:ThreadTopic>Voice Mail from 7125550123 (3 seconds)</email:ThreadTopic> <email:Importance>1</email:Importance> <email:Read>1</email:Read> <airsyncbase:Attachments> <airsyncbase:Attachment> <airsyncbase:DisplayName>7125550123 (3 seconds) Voice Mail.wma</airsyncbase:DisplayName> <airsyncbase:FileReference>20%3a2%3a0</airsyncbase:FileReference> <airsyncbase:Method>1</airsyncbase:Method> <airsyncbase:EstimatedDataSize>9025</airsyncbase:EstimatedDataSize> <email2:UmAttOrder>1</email2:UmAttOrder> <email2:UmAttDuration>3</email2:UmAttDuration> </airsyncbase:Attachment> </airsyncbase:Attachments> <airsyncbase:Body> <airsyncbase:Type>3</airsyncbase:Type> <airsyncbase:EstimatedDataSize>1512</airsyncbase:EstimatedDataSize> <airsyncbase:Truncated>1</airsyncbase:Truncated> </airsyncbase:Body> <email:MessageClass>IPM.Note.Microsoft.Voicemail.UM.CA</email:MessageClass> <email:InternetCPID>20127</email:InternetCPID> <email:ContentClass>urn:content-classes:message</email:ContentClass> <airsyncbase:NativeBodyType>3</airsyncbase:NativeBodyType> <email2:CallerID>7125550123</email2:CallerID> <email2:UmUserNotes>7125550123</email2:UmUserNotes> </ApplicationData> </Add> </Commands> </Collection> </Collections> </Sync>