0

flag message as read only set read for the first message

I have 4 unread messages under certain folder name. I use Yahoo Mail api (http://developer.yahoo.com/mail/docs/user_guide/SetFlag.html) to flag those unread messages as READ. After I call yahoo api , all the return result is true. Acutally when I check my yahoo mail inbox, only the top one message has been flag as READ. Other three below messages still the UNREAD.

Any issue with yahoo mail api ?

4 Replies
  • the return from yahoo api is like below {"result":{"returnCodes":[]},"error":null}

    0
  • imm.. seem like I need to do it one by one.

    0
  • nvm.. mistake in my logic :D

    0
  • You don't have to do it one by one. A sample would be

    {
        "method": "FlagMessages",
        "params": [
            {
                "fid": "Inbox",
                "mid": [
                    "2_0_0_1_70224337_AimIAAFcmF3aw67hj0p3SQ",
                    "2_0_0_1_70223567_AMlHnURF3jAtuCRkGqMA"
                ],
                "setFlags": {
                    "read": 1
                }
            }
        ]
    }
    
    0

Recent Posts

in Yahoo! Mail Web Services API