0

Obtaining Message Id's

Hi there,

I am working on a small project and trying out the Yahoo Mail API. What I am trying to do is process a few e-mails my users choose to process. I want to create a browser extension that is able to do so. My plan is via an extension to somehow obtain the selected messages by my users. Once i get those message id, I will pass it to my server that will have a connection with the Yahoo API and actually get the message content and process it.

The problem I'm facing is making that connection, figuring out what the message Id is. My browser extension can parse the dom, and I can see that I am interested in the "_recordId" attribute of an e-mail row. I can't get that attribute however for the life of me, I can get others but that looks like a custom one my javascript just isn't picking up. Do you have any suggestions on how I can work around this? I want the message content and header information and the only way I can do this is through the Mail API, but I can't get the message id that are needed for the call.

Any help is appreciated!

Thanks!

-George

by
1 Reply
  • Hi,

    I am not sure if your app is an OpenMail app or an independent app which uses mail web services. When you do ListMessages you will get a list of mids. To get the selected mids is a client side operation which is to be done in the UI. So I leave this to you on how to get the mid of the selected email. There is no way the apis can help in this. Once you have got the mid you can do GetDisplayMessage on that mid. Thanks

    --R


    QUOTE (George Stavrev @ Sep 10 2010, 02:45 PM) <{POST_SNAPBACK}>
    Hi there,

    I am working on a small project and trying out the Yahoo Mail API. What I am trying to do is process a few e-mails my users choose to process. I want to create a browser extension that is able to do so. My plan is via an extension to somehow obtain the selected messages by my users. Once i get those message id, I will pass it to my server that will have a connection with the Yahoo API and actually get the message content and process it.

    The problem I'm facing is making that connection, figuring out what the message Id is. My browser extension can parse the dom, and I can see that I am interested in the "_recordId" attribute of an e-mail row. I can't get that attribute however for the life of me, I can get others but that looks like a custom one my javascript just isn't picking up. Do you have any suggestions on how I can work around this? I want the message content and header information and the only way I can do this is through the Mail API, but I can't get the message id that are needed for the call.

    Any help is appreciated!

    Thanks!

    -George
    0

Recent Posts

in Yahoo! Mail Web Services API