none
problem with downloading emails.( sync returns only 100 email.) RRS feed

  • Question

  • <TvsSyncCollections>
    <TvsSyncCollection>
    <TvsSyncSyncKey>709289333</TvsSyncSyncKey>
    <TvsSyncCollectionId>5</TvsSyncCollectionId>
    <TvsSyncGetChanges/>
    <TvsSyncWindowSize>100</TvsSyncWindowSize>
    <TvsSyncOptions>
    <TvsSyncFilterType>0</TvsSyncFilterType>
    <TvsSyncMIMETruncation>1</TvsSyncMIMETruncation>
    <TvsSyncMIMESupport>0</TvsSyncMIMESupport>
    <TvsSyncBodyPreference>
    <TvsSyncType>1</TvsSyncType>
    <TvsSyncTruncationSize>1024</TvsSyncTruncationSize>
    </TvsSyncBodyPreference></TvsSyncOptions>
    </TvsSyncCollection></TvsSyncCollections>
    </TvsSync>


    Hi All

    I have a problem with downloading email.


    here is my request

    problem:
    this request returns my only 100 emails from server but in fact email count is 567.


    Thank You
    Saturday, June 25, 2011 3:51 PM

Answers

  • the problem was in my sync key which I sended. if you want get  another blob of emails you  should send sync email request with last gotten sync key.

     

    Thanks again for your help.

    • Marked as answer by ialeksey Monday, July 4, 2011 5:16 PM
    Monday, July 4, 2011 5:14 PM

All replies

  • Hi ialeksey,

     

         One of our team member will take a look at your question and respond to you soon.

     

    Thanks!

     

     


    Hongwei Sun -MSFT
    Sunday, June 26, 2011 2:05 AM
  • I think this is expected - you should be seeing MoreAvailable in the response. See [MS-ASCMD] Section 2.2.3.172 "WindowSize".

    Brad

     

    Sunday, June 26, 2011 10:49 AM
  • Thanks for replay.

    I try as you mention i.e set WindowSize 512 (max value) and set filter type 0 i.e 0  (  No filter- synchronize all items ) but I still get only 78 email .

    I try send email sync request many times  with same sync key value but after second request server return Status 16 i.e that means that

    status 16 - 16    Retry. Something on the server caused a retriable error.

    so my question is how organize loop for sync all emails from inbox?

     

    Thanks.

    Monday, June 27, 2011 12:31 PM
  • If you set the WindowSize to 512, the server is allowed to send fewer items - see same reference as last time.

    Perhaps you can provide more details? Are you seeing MoreAvailable?

    Also, you probably don't want to be using the same SyncKey in every request if you want the rest of the data (see 2.2.3.156.2 "SyncKey (FolderSync)" for client behaviour in this case)

    Brad


    Tuesday, June 28, 2011 1:34 AM
  • Thanks for replay.
    I will try explain my problem again.

    here is email sync request

    <TvsSyncCollections>
    <TvsSyncCollection>
    <TvsSyncSyncKey>1710347619</TvsSyncSyncKey>
    <TvsSyncCollectionId>5</TvsSyncCollectionId>
    <TvsSyncGetChanges/>
    <TvsSyncWindowSize>100</TvsSyncWindowSize>
    <TvsSyncOptions>
    <TvsSyncFilterType>0</TvsSyncFilterType>
    <TvsSyncMIMETruncation>1</TvsSyncMIMETruncation>
    <TvsSyncMIMESupport>0</TvsSyncMIMESupport>
    <TvsSyncBodyPreference>
    <TvsSyncType>1</TvsSyncType>
    <TvsSyncTruncationSize>1024</TvsSyncTruncationSize>
    </TvsSyncBodyPreference></TvsSyncOptions>
    </TvsSyncCollection></TvsSyncCollections>
    </TvsSync>
     

    here is email retrieving response.
    <TvsSync >
    <TvsSyncCollections >
    <TvsSyncCollection >
    <TvsSyncSyncKey >1221390980</TvsSyncSyncKey>
    <TvsSyncCollectionId >5</TvsSyncCollectionId>
    <TvsSyncSyncStatus >1</TvsSyncSyncStatus>
    <TvsSyncMoreAvailable ></TvsSyncMoreAvailable>
    <TvsSyncCommands >
    <TvsSyncAdd >
    <TvsSyncServerId >5:1</TvsSyncServerId>
    <TvsSyncApplicationData >
    …………..
    …….


    so. but my response include only 100 email.
    I try send sync request again i.e I make sync until I do not get response without <TvsSyncMoreAvailable >.
    but I got same response i.e again 100  email . 

    can you please help me solve this problem.

    Tuesday, June 28, 2011 11:31 AM
  • any idea ?
    Tuesday, June 28, 2011 7:41 PM
  • Are you using the new SyncKey (from the response, which would be 1221390980 in this case) when you resubmit the Sync request?

    How about uploading a full session record somewhere? You're removing information, but since you (and I) don't know exactly what is supposed to be happening, you may be removing stuff that is relevant.

    Tuesday, June 28, 2011 9:01 PM
  • Hi ialeksey,

    Brad has made an important point with this question, "Are you using the new SyncKey (from the response, which would be 1221390980 in this case) when you resubmit the Sync request?" Please confirm.


    If that is not the issue then we will need a network trace of the problem behavior to analyze this issue. You may send a network trace to "dochelp (at) winse (dot) microsoft (dot) com"

    Regards,
    Mark Miller
    Escalation Engineer
    US-CSS DSC PROTOCOL TEAM

    Wednesday, June 29, 2011 1:52 PM
  • thanks for your replay

     

    I am in confuse.

     

    here is first request

    TvsSyncCollections><TvsSyncCollection>
    <TvsSyncSyncKey>426623344</TvsSyncSyncKey><TvsSyncCollectionId>5</TvsSyncCollectionId>
    <TvsSyncGetChanges/><TvsSyncWindowSize>25</TvsSyncWindowSize><TvsSyncOptions>
    <TvsSyncFilterType>1</TvsSyncFilterType><TvsSyncMIMETruncation>1</TvsSyncMIMETruncation>
    <TvsSyncMIMESupport>0</TvsSyncMIMESupport><TvsSyncBodyPreference><TvsSyncType>1</TvsSyncType>
    <TvsSyncTruncationSize>1024</TvsSyncTruncationSize></TvsSyncBodyPreference></TvsSyncOptions></TvsSyncCollection>
    </TvsSyncCollections>
    </TvsSync>
     and response. i .e first 100 email.
    ======= Email Sync Response ==========
    <TvsSync >
    <TvsSyncCollections >
    <TvsSyncCollection >
    <TvsSyncSyncKey >1979154451</TvsSyncSyncKey>
    <TvsSyncCollectionId >5</TvsSyncCollectionId>
    <TvsSyncSyncStatus >1</TvsSyncSyncStatus>
    <TvsSyncCommands >
    <TvsSyncAdd >
    <TvsSyncServerId >5:1</TvsSyncServerId>
    <TvsSyncApplicationData >
    <To >"CIT OE1-Test3" ></
    To>
    <From >....></From>
    <Subject >New E-mail for test</Subject>
    <DateReceived >2011-06-28T06:20:40.317Z</DateReceived>
    <DisplayTo >CIT OE1-Test3</DisplayTo>
    <ThreadTopic >New E-mail for test</ThreadTopic>
    <Importance >1</Importance>
    <Read >1</Read>
    <TvsSyncBody >
    <TvsSyncType >1</TvsSyncType>
    <TvsSyncEstimatedDataSize >345</TvsSyncEstimatedDataSize>
    <TvsSyncData >Secure Mailer testing.
    .......
    <TvsSyncAdd >
    <TvsSyncServerId >5:100</TvsSyncServerId>
    <TvsSyncApplicationData >
    <To >"CIT OE1-Test3" <></
    To>
    <From >"CIT OE1-TEST1" ></From>
    <Subject >test</Subject>
    <DateReceived >2011-06-29T11:54:29.532Z</DateReceived>
    <DisplayTo >CIT OE1-Test3</DisplayTo>
    <ThreadTopic >test</ThreadTopic>
    <Importance >1</Importance>
    .......
    </TvsSyncCollection>
    </TvsSyncCollections>
    </TvsSync>
    so i get sync key form this respons i.e

    <TvsSyncCollections><TvsSyncCollection>
    <TvsSyncSyncKey>1979154451</TvsSyncSyncKey><TvsSyncCollectionId>5</TvsSyncCollectionId>
    <TvsSyncGetChanges/><TvsSyncWindowSize>25</TvsSyncWindowSize><TvsSyncOptions><TvsSyncFilterType>1</TvsSyncFilterType>
    <TvsSyncMIMETruncation>1</TvsSyncMIMETruncation><TvsSyncMIMESupport>0</TvsSyncMIMESupport><TvsSyncBodyPreference><TvsSyncType>1</TvsSyncType><TvsSyncTruncationSize>1024</TvsSyncTruncationSize></TvsSyncBodyPreference></TvsSyncOptions></TvsSyncCollection></TvsSyncCollections></TvsSync>
    and make  new request but  in any case I get same respons

    Thank You

    Wednesday, June 29, 2011 7:31 PM
  • Please show the new request for that exact transaction, and please directly answer the questions that are being asked. We'd like to help, but you're making it very difficult.
    Wednesday, June 29, 2011 9:34 PM
  • thanks for your help.

    problem solved

    Sunday, July 3, 2011 4:35 PM
  • ialeksey,

    Can you add some specific notes on what the problem was, and how you solved it, plus mark appropriate Answers?

    Brad

    Sunday, July 3, 2011 9:41 PM
  • the problem was in my sync key which I sended. if you want get  another blob of emails you  should send sync email request with last gotten sync key.

     

    Thanks again for your help.

    • Marked as answer by ialeksey Monday, July 4, 2011 5:16 PM
    Monday, July 4, 2011 5:14 PM
  • Which we told you twice, and still you mark your bit as the answer :-(
    Monday, July 4, 2011 10:35 PM