0

How to get only emails which are arrived from the Client last sync.

I am working on an application which download emails  in the order of down to top using Yahoo Mail API's. 

Application sync logic works like below 

Lets say Inbox consists of 1000 emails.

1) Initially fetching 100 emails message ID's by using "ListMessages" with parameters startMid = 0 and numMid=100.
2) Processing chunk emails .
3) Now requesting for the next chunk emails by giving the 
startMid = 100 and numMid=100.

The above logic works fine if user is not deleting any emails  during syncing. 

Is there any way to retrieve next chunk emails based on the message ID (string unique value) rather than message number. 

PS: I think it is good to have 
message ID as query parameter for "ListMessages" method

by
2 Replies
  • How can client sync for the emails which are received after a particular email. 
    As client can not rely on  message number (since message number is not meant for uniquely identifier of a message). 

    I am facing the following problem:
     
    Lets say my mailbox consists of 100 emails and application has synced all 100 emails .
    Now  I have deleted 10 emails and received 10 more emails in that deleted emails place (Also I have marked these emails are read).  

    For retrieving the messages which are arrived after 100th email  (last processed message number) sending the request by the following way.

    "Listmessages" method  with parameter startMid=100 and numMid=50. It will not return any results because total number of messages in the Inbox is same as the starting message number.

    How can I solve this problem.

    PS: WIll offsetMid and loc query parameters will help in this case (If it helps please help me how I could use these query problems in order to solve my issue).
    0

  • You need to code a sync layer on top of our APIs to achieve what you want. We don't support this now. 

    --R


    QUOTE(Test @ 4 Nov 2011 4:09 AM)
    How can client sync for the emails which are received after a particular email. 
    As client can not rely on  message number (since message number is not meant for uniquely identifier of a message). 

    I am facing the following problem:
     
    Lets say my mailbox consists of 100 emails and application has synced all 100 emails .
    Now  I have deleted 10 emails and received 10 more emails in that deleted emails place (Also I have marked these emails are read).  

    For retrieving the messages which are arrived after 100th email  (last processed message number) sending the request by the following way.

    "Listmessages" method  with parameter startMid=100 and numMid=50. It will not return any results because total number of messages in the Inbox is same as the starting message number.

    How can I solve this problem.

    PS: WIll offsetMid and loc query parameters will help in this case (If it helps please help me how I could use these query problems in order to solve my issue).
    0

Recent Posts

in Yahoo! Mail Web Services API