0

How do you batch mid's in MoveMessages and DeleteMessages?

I can move or delete one message at a time just fine.

auth.callWebService({  url: 'http://mail.yahooapis.com/ws/mail/v1.1/jsonrpc',  method: 'POST',  headers: ['Content-Type:application/json'],  parameters: {},  body: JSON.stringify({    method: 'MoveMessages',    params: [{      sourceFid: folderId,      destinationFid: 'Trash',      mid: messageId    }]  })}, onDeleted);
But putting in an array of messages (all of which are in the same source folder) doesn't work.

auth.callWebService({  url: 'http://mail.yahooapis.com/ws/mail/v1.1/jsonrpc',  method: 'POST',  headers: ['Content-Type:application/json'],  parameters: {},  body: JSON.stringify({    method: 'MoveMessages',    params: [{      sourceFid: folderId,      destinationFid: 'Trash',      mid: [messageId1, messageId2, ...]    }]  })}, onDeleted);
The docs say that the mid parameter is repeatable, so I'm probably just not doing it right. Anyone know the correct way?
Thanks!

by
2 Replies
  • My delete tab has disappeared from email page. I am unable to delete e-mails. How do I get it back?
    0
  • Dave,

    I'm sorry to hear you are having trouble.  Please contact Yahoo Email Customer Service at help.yahoo.com.

    Robyn
    0

Recent Posts

in Yahoo! Mail Web Services API